/*
 * iolabs site styles
 *
 * Layout rules that belong to the original "Cover" splash homepage are scoped
 * to `body.homepage`. Pages that don't set that body class (FlexiblePage, the
 * Wagtail admin overrides, etc.) get a clean Bootstrap-default layout and pick
 * up theme variables from `data-bs-theme`.
 */


/*
 * Globals
 */

/* Dark body background. Pairs with `data-bs-theme="dark"` on FlexiblePage's
   <main>, and provides the inherited dark backdrop for the homepage splash. */
html,
body {
	background-color: #0a0a0a;
	font-family: 'Inter Tight', system-ui, sans-serif;
}

:root {
	--bs-body-font-family: 'Inter Tight', system-ui, sans-serif;
	--bs-heading-font-family: 'Inter Tight', system-ui, sans-serif;
}

[data-bs-theme="dark"] {
	--bs-body-bg: #0a0a0a;
	--bs-body-color: #ededed;
	--bs-secondary-color: #a1a1a1;
	--bs-border-color: #262626;
	--bs-tertiary-bg: #141414;
	--bs-secondary-bg: #1a1a1a;
	--bs-primary: #84cc16;
	--bs-primary-rgb: 132, 204, 22;
	--bs-link-color: #a3e635;
	--bs-link-hover-color: #bef264;
	background-color: var(--bs-body-bg);
	color: var(--bs-body-color);
}

[data-bs-theme="dark"] .btn-primary {
	--bs-btn-color: #0a0a0a;
	--bs-btn-bg: #84cc16;
	--bs-btn-border-color: #84cc16;
	--bs-btn-hover-color: #0a0a0a;
	--bs-btn-hover-bg: #a3e635;
	--bs-btn-hover-border-color: #a3e635;
	--bs-btn-active-color: #0a0a0a;
	--bs-btn-active-bg: #bef264;
	--bs-btn-active-border-color: #bef264;
	--bs-btn-focus-shadow-rgb: 132, 204, 22;
}

[data-bs-theme="dark"] .btn-outline-primary {
	--bs-btn-color: #a3e635;
	--bs-btn-border-color: #84cc16;
	--bs-btn-hover-color: #0a0a0a;
	--bs-btn-hover-bg: #84cc16;
	--bs-btn-hover-border-color: #84cc16;
	--bs-btn-active-color: #0a0a0a;
	--bs-btn-active-bg: #bef264;
	--bs-btn-active-border-color: #bef264;
	--bs-btn-focus-shadow-rgb: 132, 204, 22;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] .h1,
[data-bs-theme="dark"] .display-1,
[data-bs-theme="dark"] .display-2,
[data-bs-theme="dark"] .display-3,
[data-bs-theme="dark"] .display-4,
[data-bs-theme="dark"] .display-5,
[data-bs-theme="dark"] .display-6 {
	font-family: 'Instrument Serif', Georgia, serif;
	font-style: italic;
	font-weight: 400;
	letter-spacing: -0.02em;
}

[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
	font-family: 'Inter Tight', system-ui, sans-serif;
	font-weight: 600;
}

code,
pre,
kbd,
samp {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.section-eyebrow {
	display: inline-block;
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #84cc16;
	margin-bottom: 0.5rem;
}

.section-eyebrow::before {
	content: "— ";
}

main[data-bs-theme="dark"] > .container.py-6:has(.section-eyebrow) {
	padding-bottom: 0 !important;
}

main[data-bs-theme="dark"] > .container.py-6:has(.section-eyebrow) + .container.py-6 {
	padding-top: 0.5rem !important;
}

[data-bs-theme="dark"] .hero-section .hero-inner.vh-25,
[data-bs-theme="dark"] .hero-section .hero-inner.vh-50,
[data-bs-theme="dark"] .hero-section .hero-inner.vh-75,
[data-bs-theme="dark"] .hero-section .hero-inner.min-vh-25,
[data-bs-theme="dark"] .hero-section .hero-inner.min-vh-50,
[data-bs-theme="dark"] .hero-section .hero-inner.min-vh-75 {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

[data-bs-theme="dark"] .card {
	background-color: var(--bs-tertiary-bg);
	border: 1px solid var(--bs-border-color);
	border-radius: 4px;
}

[data-bs-theme="dark"] .card-title {
	font-weight: 600;
	letter-spacing: -0.01em;
}

[data-bs-theme="dark"] .card-subtitle {
	color: var(--bs-secondary-color);
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-top: 0.25rem;
}

[data-bs-theme="dark"] .alert {
	background-color: var(--bs-secondary-bg);
	border-color: rgba(132, 204, 22, 0.35);
	color: var(--bs-body-color);
}

[data-bs-theme="dark"] .accordion-item {
	background-color: transparent;
	border: 1px solid var(--bs-border-color);
}

[data-bs-theme="dark"] .accordion-button {
	background-color: transparent;
	color: var(--bs-body-color);
	font-weight: 500;
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
	background-color: var(--bs-secondary-bg);
	color: var(--bs-primary);
	box-shadow: none;
}

[data-bs-theme="dark"] .accordion-button:focus {
	box-shadow: 0 0 0 2px rgba(132, 204, 22, 0.25);
}

[data-bs-theme="dark"] .breadcrumb {
	font-family: 'JetBrains Mono', ui-monospace, monospace;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
	color: var(--bs-primary);
}

.lead {
	font-size: 1.375rem;
	line-height: 1.5;
	letter-spacing: -0.005em;
	font-weight: 400;
}

@media (max-width: 575.98px) {
	[data-bs-theme="dark"] .row {
		--bs-gutter-x: 1.5rem;
	}
}

/* Link color override only applies inside the homepage cover layout - other
   pages let Bootstrap's theme variables handle link styling. */
.homepage a,
.homepage a:focus,
.homepage a:hover {
	color: #fff;
}

.homepage .btn-secondary,
.homepage .btn-secondary:hover,
.homepage .btn-secondary:focus {
	color: #333;
	text-shadow: none;
	background-color: #fff;
	border: .05rem solid #fff;
}


/*
 * Homepage splash layout (Bootstrap "Cover" template)
 */
body.homepage {
	height: 100%;
	display: flex;
	color: #fff;
	text-shadow: none;
	box-shadow: inset 0 0 5rem rgba(0, 0, 0, .5);
}

body.homepage html {
	height: 100%;
}

.cover-container {
	max-width: 42em;
}


/*
 * Header (homepage masthead)
 */
.masthead {
	margin-bottom: 2rem;
}

.masthead-brand {
	margin-bottom: 0;
}

.nav-masthead .nav-link {
	padding: .25rem 0;
	font-weight: 700;
	color: rgba(255, 255, 255, .5);
	background-color: transparent;
	border-bottom: .25rem solid transparent;
}

.nav-masthead .nav-link:hover,
.nav-masthead .nav-link:focus {
	border-bottom-color: rgba(255, 255, 255, .25);
}

.nav-masthead .nav-link + .nav-link {
	margin-left: 1rem;
}

.nav-masthead .active {
	color: #fff;
	border-bottom-color: #fff;
}

@media (min-width: 48em) {
	.masthead-brand {
		float: left;
	}
	.nav-masthead {
		float: right;
	}
}


/*
 * Cover (homepage splash content area)
 */
.cover {
	padding: 0 1.5rem;
}
.cover .btn-lg {
	padding: .75rem 1.25rem;
	font-weight: 700;
}


/*
 * Footer (homepage)
 */
.mastfoot {
	color: rgba(255, 255, 255, .5);
}
