/*
Theme Name: Recluse
Theme URI: https://www.witbusa.com/
Author: WITB
Description: Clean studio theme for Whats In the Box — user accounts, LifterLMS courses, admin create-course path.
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.2.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recluse
*/

:root {
	--ink: #1a1a1a;
	--paper: #ffffff;
	--paper-2: #f2f3f5;
	--tape: #3f3f46;
	--moss: #27272a;
	--line: rgba(24, 24, 27, 0.12);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Schibsted Grotesk", system-ui, sans-serif;
	--wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
}
a { color: var(--moss); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(var(--wrap), calc(100% - 2.5rem)); margin-inline: auto; }
.skip-link {
	position: absolute; left: 1rem; top: -40px; background: var(--ink); color: var(--paper); padding: 0.5rem 0.8rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
	border-bottom: 1px solid var(--line);
	background: #ffffff;
	position: sticky; top: 0; z-index: 20;
}
.header-inner {
	display: flex; align-items: center; gap: 1.5rem; justify-content: space-between;
	padding: 1rem 0;
}
.brand-mark { display: flex; flex-direction: row; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; line-height: 1.1; }
.brand-text { display: flex; flex-direction: column; gap: 0.15rem; }
.brand-icon { display: flex; }
.brand-kicker {
	font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: #52525b; font-weight: 600;
}
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: inherit; font-weight: 500; }
.header-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.header-avatar {
	display: inline-flex; width: 2.6rem; height: 2.6rem; border-radius: 999px; overflow: hidden;
	border: 1px solid var(--line); flex: 0 0 auto; text-decoration: none;
}
.header-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px; display: block; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 2.6rem; padding: 0.45rem 1rem; border-radius: 999px;
	font-weight: 600; text-decoration: none; border: 1px solid transparent; font-size: 0.92rem;
}
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-solid:active { background: var(--tape); color: #fff; }
.btn-ghost:active { border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
	.btn-solid:hover { background: var(--tape); color: #fff; }
	.btn-ghost:hover { border-color: var(--ink); }
}

.hero { padding: 4.5rem 0 3.5rem; background: #ffffff; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 0.8fr; gap: 2.5rem; align-items: end; }
.eyebrow {
	font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: #52525b; margin: 0 0 0.8rem; font-weight: 600;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 0.8rem; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.lede { font-size: 1.15rem; max-width: 38rem; color: #52525b; }
.hero-actions { display: flex; gap: 0.7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero-card {
	background: #18181b; color: #fafafa; padding: 1.6rem 1.5rem; border-radius: 1.25rem;
}
.hero-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.hero-card li { display: grid; grid-template-columns: auto 1fr; gap: 0.8rem; align-items: baseline; }
.hero-card span { font-family: var(--font-display); color: #a1a1aa; font-size: 1.1rem; }

.band { padding: 2.5rem 0 4.5rem; background: var(--paper-2); }
.section-head { margin-bottom: 1.6rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.card {
	background: #ffffff; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden;
}
.card a { display: block; padding: 1rem 1rem 1.2rem; text-decoration: none; color: inherit; }
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; margin: -1rem -1rem 0.9rem; max-width: calc(100% + 2rem); }
.card h3 { font-size: 1.25rem; }
.empty-note { color: rgba(28,25,21,0.7); }

.prose-wrap { padding: 3rem 0 4.5rem; max-width: 860px; }
.wrap.dashboard-shell {
	width: min(1240px, calc(100% - 2.5rem));
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
}
.wp-block-group.band.is-layout-constrained {
	--wp--style--global--content-size: 1240px;
	max-width: none;
}
.wp-block-group.band.is-layout-constrained > .dashboard-shell,
.wp-block-group.band.is-layout-constrained > .entry-body,
.wp-block-group.band.is-layout-constrained > .wp-block-post-content {
	max-width: min(1240px, calc(100vw - 3rem));
	width: min(1240px, calc(100vw - 3rem));
	margin-left: auto;
	margin-right: auto;
}

.entry-head { margin-bottom: 1.5rem; }
.entry-body :where(p, ul, ol) { margin: 0 0 1rem; }
.llms-student-dashboard, .lifterlms {
	background: #ffffff; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.4rem 1.4rem 1.8rem;
}
.dashboard-shell .llms-form-heading,
.llms-sd-title {
	font-family: var(--font-display); font-weight: 500; font-size: 1.8rem; letter-spacing: -0.03em; margin: 0 0 1rem;
}
.logged-in .llms-student-dashboard.llms-sd-layout-columns {
	display: grid;
	grid-template-columns: 11.5rem minmax(0, 1fr);
	grid-template-areas: "nav main";
	grid-template-rows: auto;
	column-gap: 1.75rem;
	row-gap: 0;
	align-items: start;
}
.logged-in .llms-student-dashboard.llms-sd-layout-columns > .llms-sd-nav {
	grid-area: nav;
	align-self: start;
	z-index: 1;
}
.logged-in .llms-student-dashboard.llms-sd-layout-columns > .witb-sd-main {
	grid-area: main;
	min-width: 0;
	align-self: start;
	position: relative;
	z-index: 2;
}
.logged-in .llms-sd-layout-columns .llms-sd-nav .llms-sd-items,
.llms-sd-nav ul {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0.4rem;
	list-style: none;
	padding: 0;
	margin: 0;
}
.llms-sd-nav .llms-sd-item {
	display: block;
	float: none;
	width: 100%;
}
.llms-sd-nav a {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 2.3rem;
	padding: 0.35rem 0.7rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
	color: inherit;
	font-size: 0.9rem;
	font-weight: 500;
}
@media (max-width: 700px) {
	.logged-in .llms-student-dashboard.llms-sd-layout-columns {
		grid-template-columns: 1fr;
		grid-template-areas: "nav" "main";
	}
	.logged-in .llms-student-dashboard.llms-sd-layout-columns > .llms-sd-nav,
	.logged-in .llms-student-dashboard.llms-sd-layout-columns > .witb-sd-main {
		grid-column: auto;
		grid-row: auto;
	}
}
.llms-sd-nav .current a { background: var(--ink); color: #fff; border-color: var(--ink); }
.llms-sd-nav a:active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
	.llms-sd-nav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
}
.llms-sep { display: none; }
.llms-sd-nav select { display: none; }
@media (max-width: 700px) {
	.logged-in .llms-student-dashboard.llms-sd-layout-columns .llms-sd-nav .llms-sd-items,
	.logged-in .llms-student-dashboard .llms-sd-nav ul {
		display: none;
	}
	.logged-in .llms-student-dashboard .llms-sd-nav select {
		display: block;
		width: 100%;
		box-sizing: border-box;
		margin: 0 0 1rem;
		min-height: 2.7rem;
		padding: 0.45rem 0.8rem;
		border: 1px solid var(--line);
		border-radius: 0.7rem;
		background: #fafafa;
		font: inherit;
		color: inherit;
	}
}
.llms-form-field { margin-bottom: 0.9rem; }
.llms-form-field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; color: #52525b; }
.llms-field-input, .llms-form-field input[type="email"], .llms-form-field input[type="password"], .llms-form-field input[type="text"] {
	width: 100%; border: 1px solid var(--line); border-radius: 0.7rem; min-height: 2.7rem; padding: 0.45rem 0.8rem;
	background: #fafafa; font: inherit;
}
.llms-button-action, .llms-button-primary, .llms-field-button, .llms-button-secondary, .wp-element-button.llms-button-action {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 2.6rem; padding: 0.45rem 1.1rem; border-radius: 999px !important;
	background: var(--ink) !important; color: #fff !important; border: 0 !important; font-weight: 600;
}

.llms-student-dashboard a:not(.llms-sd-nav a):not(.witb-user-course__media):not(.witb-user-course a):not(.witb-courses-aside__link):not(.witb-course-tabs a),
.llms-student-dashboard button.button,
.llms-student-dashboard input.button,
.dashboard-shell a.button,
.dashboard-shell button.button,
.dashboard-shell input.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 2.6rem;
	margin: 0.2rem 0.35rem 0.2rem 0;
	padding: 0.45rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
}
.llms-student-dashboard a.button-primary,
.llms-student-dashboard button.button-primary,
.llms-student-dashboard input.button-primary,
.dashboard-shell a.button-primary,
.dashboard-shell button.button-primary,
.dashboard-shell input.button-primary {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}
.llms-student-dashboard a:not(.llms-sd-nav a):not(.witb-user-course__media):not(.witb-user-course a):not(.witb-courses-aside__link):not(.witb-course-tabs a),
.llms-student-dashboard button.button,
.llms-student-dashboard input.button,
.dashboard-shell a.button,
.dashboard-shell button.button,
.dashboard-shell input.button,
.btn {
	-webkit-tap-highlight-color: transparent;
}
.llms-student-dashboard a:not(.llms-sd-nav a):not(.witb-user-course__media):not(.witb-user-course a):not(.witb-courses-aside__link):not(.witb-course-tabs a):active,
.llms-student-dashboard button.button:active,
.llms-student-dashboard input.button:active,
.dashboard-shell a.button:active,
.dashboard-shell button.button:active,
.dashboard-shell input.button:active {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
	.llms-student-dashboard a:not(.llms-sd-nav a):not(.witb-user-course__media):not(.witb-user-course a):not(.witb-courses-aside__link):not(.witb-course-tabs a):hover,
	.llms-student-dashboard button.button:hover,
	.llms-student-dashboard input.button:hover,
	.dashboard-shell a.button:hover,
	.dashboard-shell button.button:hover,
	.dashboard-shell input.button:hover {
		background: var(--ink);
		color: #fff;
		border-color: var(--ink);
	}
}
.llms-student-dashboard button.button,
.llms-student-dashboard input.button,
.dashboard-shell button.button,
.dashboard-shell input.button,
.dashboard-shell .btn {
	font-family: var(--font-body);
}
.llms-student-dashboard button.button-link-delete,
.dashboard-shell button.button-link-delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 2.2rem;
	margin: 0;
	padding: 0.3rem 0.85rem;
	border: 1px solid #fecaca;
	border-radius: 999px;
	background: #fff;
	color: #991b1b;
	font-family: var(--font-body);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.llms-student-dashboard button.button-link-delete:active,
.dashboard-shell button.button-link-delete:active {
	background: #991b1b;
	color: #fff;
	border-color: #991b1b;
}
@media (hover: hover) and (pointer: fine) {
	.llms-student-dashboard button.button-link-delete:hover,
	.dashboard-shell button.button-link-delete:hover {
		background: #991b1b;
		color: #fff;
		border-color: #991b1b;
	}
}
.llms-student-dashboard input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]),
.llms-student-dashboard textarea,
.llms-student-dashboard select,
.dashboard-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]),
.dashboard-shell textarea,
.dashboard-shell select {
	box-sizing: border-box;
	max-width: 100%;
	border: 1px solid var(--line);
	border-radius: 999px;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	background: #fff;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 0.98rem;
	line-height: 1.3;
	box-shadow: none;
}
.llms-student-dashboard textarea,
.dashboard-shell textarea {
	border-radius: 1rem;
	min-height: 7rem;
	padding: 0.75rem 1rem;
	line-height: 1.45;
}
.llms-student-dashboard select,
.dashboard-shell select {
	appearance: none;
	padding-right: 2.4rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M1.2 1.4 6 6.2 10.8 1.4'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
}
.llms-student-dashboard input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):focus,
.llms-student-dashboard textarea:focus,
.llms-student-dashboard select:focus,
.dashboard-shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):focus,
.dashboard-shell textarea:focus,
.dashboard-shell select:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}
.llms-student-dashboard .witb-field > input:not([type="checkbox"]):not([type="radio"]),
.llms-student-dashboard .witb-field > select,
.llms-student-dashboard .witb-field > textarea,
.llms-student-dashboard .llms-form-field input:not([type="checkbox"]):not([type="radio"]),
.llms-student-dashboard .llms-form-field select,
.llms-student-dashboard .llms-form-field textarea {
	width: 100%;
}
.llms-student-dashboard .quicktags-toolbar input.button,
.llms-student-dashboard .mce-toolbar .mce-btn button,
.llms-student-dashboard .quicktags-toolbar input.button:hover,
.llms-student-dashboard .mce-toolbar .mce-btn button:hover {
	min-height: 0;
	margin: 0;
	padding: 0.2rem 0.45rem;
	border-radius: 0.45rem;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	background: #f4f4f5;
	color: var(--ink);
	border-color: var(--line);
}
.llms-student-dashboard .wp-editor-wrap textarea,
.llms-student-dashboard .wp-editor-wrap input,
.llms-student-dashboard .wp-editor-wrap select,
.llms-student-dashboard .mce-toolbar button,
.llms-student-dashboard .quicktags-toolbar input {
	border-radius: 0.45rem;
	min-height: 0;
	font-size: 13px;
	box-shadow: none;
	background-image: none;
}
.llms-sd-section {
	border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1.2rem;
}
.hero .wp-block-buttons { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero .wp-block-button__link {
	border-radius: 999px; padding: 0.5rem 1.1rem; font-weight: 600; background: var(--ink); color: #fff;
}
.hero .is-style-outline .wp-block-button__link {
	background: transparent; color: var(--ink); border: 1px solid var(--line);
}
.wp-block-group.hero { padding-top: 3.5rem; padding-bottom: 2rem; }
.wp-block-group.band { padding-top: 2rem; padding-bottom: 4rem; background: var(--paper-2); }
.wp-block-template-part header.site-header, header.wp-block-template-part { display: contents; }


.site-footer {
	border-top: 1px solid var(--line); padding: 2.4rem 0 2.8rem; background: #eceef1;
}
.footer-inner { display: grid; gap: 1rem; }
.footer-kicker { letter-spacing: 0.24em; font-size: 0.7rem; text-transform: uppercase; margin: 0; color: var(--tape); }
.footer-lede { font-family: var(--font-display); font-size: 1.6rem; margin: 0.2rem 0; }
.footer-copy, .footer-meta { margin: 0; color: rgba(28,25,21,0.7); font-size: 0.92rem; }

.login #login { font-family: var(--font-body); }

@media (max-width: 820px) {
	.hero-grid, .header-inner { grid-template-columns: 1fr; display: grid; }
	.site-nav ul { flex-wrap: wrap; }
}

.llms-sd-header:not(:has(.witb-view-switch-wrap)){display:none}

.llms-student-dashboard form.llms-lost-password-form {
	width: min(26rem, 100%);
	margin-left: auto;
	margin-right: auto;
}
.llms-student-dashboard form.llms-lost-password-form .llms-form-field {
	float: none;
	clear: both;
	width: 100%;
	padding-left: 0;
	padding-right: 0;
}

@media (max-width: 700px) {
	.llms-student-dashboard, .lifterlms { padding: 0.85rem 0.7rem 1.1rem; border-radius: 0.9rem; }
	.wrap.dashboard-shell { width: min(1240px, calc(100% - 1rem)); }
	.wp-block-group.band.is-layout-constrained > .dashboard-shell,
	.wp-block-group.band.is-layout-constrained > .entry-body,
	.wp-block-group.band.is-layout-constrained > .wp-block-post-content {
		max-width: min(1240px, calc(100vw - 1rem));
		width: min(1240px, calc(100vw - 1rem));
	}
	.llms-sd-title { font-size: 1.45rem; }
}
