/**
 * 10 Minutes Lesson Builder: Home and lesson pages.
 *
 * Everything is scoped under .tmqt-lb. Fonts come from the site's theme;
 * colors, spacing and the dashed cut-line style come from the prototype.
 */

.tmqt-lb {
	--tl-ink: #1b2440;
	--tl-muted: #55607a;
	--tl-blue: #2456c8;
	--tl-blue-dark: #173e96;
	--tl-blue-soft: #e9effc;
	--tl-blue-wash: #f3f6fd;
	--tl-ring: #d3def7;
	--tl-line: #d5dbe7;
	--tl-dash: #aeb8ce;
	--tl-bg: #f4f6fa;
	--tl-chip: #eef2f9;
	--tl-sun: #ffc93c;
	--tl-sun-soft: #fff3cc;
	--tl-edit: #fff6d6;
	--tl-focus: #e08a00;
	--tl-white: #fff;

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: 100%;
	max-width: 1040px;
	margin: 0 auto 32px;
	padding: clamp(16px, 3vw, 32px);
	background: var(--tl-bg);
	border-radius: 18px;
	color: var(--tl-ink);
	font-size: 17px;
	line-height: 1.5;
	text-align: left;
	-webkit-text-size-adjust: 100%;
}

.tmqt-lb *,
.tmqt-lb *::before,
.tmqt-lb *::after {
	box-sizing: border-box;
}

/* Theme guard: themes style headings, lists, buttons and fields strongly.
   These few declarations keep the lesson builder looking the same everywhere. */
.tmqt-lb h1,
.tmqt-lb h2,
.tmqt-lb h3 {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--tl-ink) !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-shadow: none;
	border: 0;
	background: none;
}

.tmqt-lb p,
.tmqt-lb ul,
.tmqt-lb ol,
.tmqt-lb li,
.tmqt-lb blockquote,
.tmqt-lb cite {
	margin: 0 !important;
	padding: 0;
	border: 0;
	background: none;
	font-size: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-transform: none;
	quotes: none;
}

.tmqt-lb ul,
.tmqt-lb ol {
	list-style: none !important;
}

.tmqt-lb li::before,
.tmqt-lb blockquote::before,
.tmqt-lb blockquote::after {
	content: none !important;
}

.tmqt-lb button,
.tmqt-lb input {
	margin: 0 !important;
	font: inherit;
	letter-spacing: normal !important;
	text-transform: none !important;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.tmqt-lb button {
	width: auto;
	height: auto;
	cursor: pointer;
	color: inherit;
	line-height: 1.3;
	text-shadow: none;
}

.tmqt-lb a {
	color: var(--tl-blue);
	text-decoration: none;
	box-shadow: none;
}

.tmqt-lb a:hover {
	color: var(--tl-blue-dark);
}

.tmqt-lb img {
	max-width: 100%;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.tmqt-lb [hidden] {
	display: none !important;
}

.tmqt-lb button:focus-visible,
.tmqt-lb a:focus-visible,
.tmqt-lb input:focus-visible {
	outline: 3px solid var(--tl-focus) !important;
	outline-offset: 2px;
}

.tmqt-lb h1:focus,
.tmqt-lb .tmqt-lb-h1:focus {
	outline: none;
}

.tmqt-lb .tmqt-lb-icon {
	flex: none;
	display: block;
}

/* ---------- which screen is showing ---------- */

.tmqt-lb [data-view] {
	display: none;
}

.tmqt-lb[data-show="home"] [data-view="home"],
.tmqt-lb[data-show="class"] [data-view="class"],
.tmqt-lb[data-show="pick"] [data-view="pick"],
.tmqt-lb[data-show="custom"] [data-view="custom"],
.tmqt-lb[data-show="lesson"] [data-view="lesson"] {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

/* A lesson that must be re-drawn for this teacher's class waits out of sight
   for a moment, so the default class never flashes. It appears on its own
   after two seconds if the script could not run. */
.tmqt-lb.tmqt-lb-wait .tmqt-lb-lesson {
	visibility: hidden;
	animation: tmqt-lb-reveal 0s linear 2s forwards;
}

@keyframes tmqt-lb-reveal {
	to {
		visibility: visible;
	}
}

/* ---------- type ---------- */

.tmqt-lb .tmqt-lb-h1 {
	font-size: clamp(30px, 4.4vw, 46px) !important;
	line-height: 1.1 !important;
	text-wrap: balance;
}

.tmqt-lb .tmqt-lb-h2 {
	font-size: 22px !important;
	line-height: 1.2 !important;
}

.tmqt-lb .tmqt-lb-h3 {
	font-size: 16px !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
}

.tmqt-lb .tmqt-lb-intro {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tmqt-lb .tmqt-lb-sub,
.tmqt-lb .tmqt-lb-aside {
	color: var(--tl-muted);
	max-width: 60ch;
}

.tmqt-lb .tmqt-lb-aside {
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-sub strong,
.tmqt-lb .tmqt-lb-myclass strong {
	color: inherit;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-label,
.tmqt-lb .tmqt-lb-tag,
.tmqt-lb .tmqt-lb-pill,
.tmqt-lb .tmqt-lb-eyebrow,
.tmqt-lb .tmqt-lb-stage {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
	line-height: 1.3;
}

.tmqt-lb .tmqt-lb-tag,
.tmqt-lb .tmqt-lb-eyebrow {
	color: var(--tl-blue);
}

.tmqt-lb .tmqt-lb-tag {
	font-size: 12px;
}

.tmqt-lb .tmqt-lb-notice {
	padding: 16px 20px;
	background: var(--tl-sun-soft);
	border-radius: 12px;
	font-weight: 600;
}

/* ---------- buttons ---------- */

.tmqt-lb .tmqt-lb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 8px 28px;
	border: 2px solid transparent;
	border-radius: 999px;
	background: var(--tl-white);
	color: var(--tl-ink);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.tmqt-lb .tmqt-lb-btn--primary {
	background: var(--tl-blue);
	border-color: var(--tl-blue);
	color: var(--tl-white);
}

.tmqt-lb .tmqt-lb-btn--primary:hover {
	background: var(--tl-blue-dark);
	border-color: var(--tl-blue-dark);
	color: var(--tl-white);
}

.tmqt-lb .tmqt-lb-btn--outline {
	border-color: var(--tl-blue);
	color: var(--tl-blue);
}

.tmqt-lb .tmqt-lb-btn--outline:hover {
	background: var(--tl-blue-soft);
	color: var(--tl-blue-dark);
}

.tmqt-lb .tmqt-lb-btn--ghost {
	min-height: 48px;
	padding: 6px 20px;
	border-color: var(--tl-line);
	font-size: 16px;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-btn--ghost:hover {
	border-color: var(--tl-dash);
	color: var(--tl-ink);
}

.tmqt-lb .tmqt-lb-btn--sm {
	min-height: 44px;
	padding: 4px 16px;
	font-size: 15px;
}

.tmqt-lb .tmqt-lb-link {
	min-height: 44px;
	padding: 0 6px;
	border: 0;
	background: none;
	color: var(--tl-blue);
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tmqt-lb .tmqt-lb-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
}

/* ---------- progress line ---------- */

.tmqt-lb .tmqt-lb-progress {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tmqt-lb[data-show="lesson"] .tmqt-lb-progress {
	display: none;
}

.tmqt-lb .tmqt-lb-progress-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
}

.tmqt-lb .tmqt-lb-stage {
	display: none;
	font-size: 15px;
	color: var(--tl-muted);
}

.tmqt-lb .tmqt-lb-back {
	display: none;
	min-height: 44px;
	font-size: 15px;
}

.tmqt-lb[data-show="home"] [data-stage="home"],
.tmqt-lb[data-show="class"] [data-stage="class"],
.tmqt-lb[data-show="pick"] [data-stage="pick"],
.tmqt-lb[data-show="custom"] [data-stage="custom"] {
	display: block;
}

.tmqt-lb[data-show="class"] [data-back="class"],
.tmqt-lb[data-show="pick"] [data-back="pick"],
.tmqt-lb[data-show="custom"] [data-back="custom"] {
	display: inline-flex;
}

.tmqt-lb .tmqt-lb-track {
	--tl-at: 12%;
	position: relative;
	height: 32px;
}

.tmqt-lb[data-show="class"] .tmqt-lb-track {
	--tl-at: 38%;
}

.tmqt-lb[data-show="pick"] .tmqt-lb-track {
	--tl-at: 62%;
}

.tmqt-lb[data-show="custom"] .tmqt-lb-track {
	--tl-at: 86%;
}

.tmqt-lb .tmqt-lb-track-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 15px;
	border-top: 2px dashed var(--tl-dash);
}

.tmqt-lb .tmqt-lb-track-fill {
	position: absolute;
	left: 0;
	top: 14px;
	width: var(--tl-at);
	height: 4px;
	border-radius: 2px;
	background: var(--tl-blue);
	transition: width 0.35s ease;
}

.tmqt-lb .tmqt-lb-track-knob {
	position: absolute;
	top: 0;
	left: var(--tl-at);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: -16px;
	border: 2px solid var(--tl-blue);
	border-radius: 50%;
	background: var(--tl-white);
	color: var(--tl-blue);
	transition: left 0.35s ease;
}

/* ---------- grids and option cards ---------- */

.tmqt-lb .tmqt-lb-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.tmqt-lb .tmqt-lb-grid--4 {
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
}

.tmqt-lb .tmqt-lb-grid--3 {
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
}

.tmqt-lb .tmqt-lb-grid--2 {
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.tmqt-lb .tmqt-lb-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tmqt-lb .tmqt-lb-opt {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 20px;
	border: 2px solid var(--tl-line);
	border-radius: 16px;
	background: var(--tl-white);
	color: var(--tl-ink);
	text-align: left;
	text-decoration: none;
	transition: box-shadow 0.15s ease;
}

.tmqt-lb .tmqt-lb-opt:hover {
	box-shadow: 0 0 0 4px var(--tl-ring);
	color: var(--tl-ink);
}

.tmqt-lb .tmqt-lb-opt.is-on {
	border: 2px dashed var(--tl-blue);
	background: var(--tl-blue-soft);
}

.tmqt-lb .tmqt-lb-opt-title {
	font-size: 22px;
	font-weight: 600;
	line-height: 1.15;
}

.tmqt-lb .tmqt-lb-opt-sub {
	color: var(--tl-muted);
	font-size: 15px;
}

.tmqt-lb .tmqt-lb-opt-cta {
	margin-top: auto;
	color: var(--tl-blue);
	font-size: 15px;
	font-weight: 800;
}

.tmqt-lb .tmqt-lb-badge {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--tl-sun);
	font-size: 13px;
	font-weight: 800;
}

/* ---------- Home ---------- */

.tmqt-lb .tmqt-lb-myclass {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-self: flex-start;
	gap: 8px 14px;
	padding: 10px 16px;
	border: 2px dashed var(--tl-dash);
	border-radius: 12px;
	background: var(--tl-white);
}

.tmqt-lb .tmqt-lb-myclass .tmqt-lb-label {
	color: var(--tl-blue);
}

.tmqt-lb .tmqt-lb-myclass .tmqt-lb-btn {
	color: var(--tl-blue);
}

.tmqt-lb .tmqt-lb-search {
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 420px;
}

/* The second selector in each pair outranks the Enfold theme's own field
   rules, which are written against its #top wrapper. */
.tmqt-lb .tmqt-lb-search label,
#top .tmqt-lb .tmqt-lb-search label {
	margin: 0;
	color: var(--tl-ink);
	font-size: 15px;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-search input,
#top .tmqt-lb .tmqt-lb-search input[type="search"] {
	display: block;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 2px solid var(--tl-dash);
	border-radius: 12px;
	background: var(--tl-white);
	color: var(--tl-ink);
	font: inherit;
	font-size: 17px;
}

.tmqt-lb .tmqt-lb-story {
	min-height: 150px;
}

.tmqt-lb .tmqt-lb-pill {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--tl-blue-soft);
	color: var(--tl-blue);
}

.tmqt-lb .tmqt-lb-story-title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.15;
}

.tmqt-lb .tmqt-lb-story-key {
	color: var(--tl-muted);
	font-size: 15px;
}

.tmqt-lb .tmqt-lb-story-count {
	margin-top: auto;
	font-size: 14px;
	font-weight: 700;
}

.tmqt-lb.tmqt-lb-js .tmqt-lb-more {
	display: none;
}

.tmqt-lb .tmqt-lb-testament {
	grid-column: 1 / -1;
	margin-top: 8px !important;
	color: var(--tl-muted) !important;
	font-size: 15px !important;
	letter-spacing: 0.04em !important;
	text-transform: uppercase !important;
}

.tmqt-lb .tmqt-lb-allrow {
	display: none;
}

.tmqt-lb.tmqt-lb-js .tmqt-lb-allrow {
	display: flex;
}

/* ---------- My class ---------- */

.tmqt-lb .tmqt-lb-opt--age {
	gap: 2px;
	min-height: 84px;
	padding: 16px 18px;
}

.tmqt-lb .tmqt-lb-opt--len {
	flex-direction: row;
	align-items: baseline;
	gap: 8px;
	min-height: 76px;
	padding: 16px 18px;
}

.tmqt-lb .tmqt-lb-num {
	font-size: 36px;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.tmqt-lb .tmqt-lb-opt--len .tmqt-lb-opt-sub {
	font-size: 17px;
	font-weight: 700;
}

/* ---------- Pick a lesson ---------- */

.tmqt-lb .tmqt-lb-ready {
	min-height: 190px;
}

/* ---------- Customize ---------- */

.tmqt-lb #tmqt-lb-custom {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.tmqt-lb .tmqt-lb-printable {
	gap: 8px;
	padding: 12px;
}

.tmqt-lb .tmqt-lb-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 96px;
	overflow: hidden;
	border: 2px dashed var(--tl-dash);
	border-radius: 10px;
	background: var(--tl-chip);
	color: var(--tl-muted);
}

.tmqt-lb .tmqt-lb-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tmqt-lb .tmqt-lb-printable-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 24px;
}

.tmqt-lb .tmqt-lb-added {
	display: none;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--tl-blue);
	color: var(--tl-white);
	font-size: 12px;
	font-weight: 800;
}

.tmqt-lb .is-on .tmqt-lb-added {
	display: inline-block;
}

.tmqt-lb .tmqt-lb-printable-title {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.tmqt-lb .tmqt-lb-check {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	min-height: 60px;
	padding: 12px 16px;
	border-radius: 14px;
}

.tmqt-lb .tmqt-lb-box {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 2px solid var(--tl-blue);
	border-radius: 8px;
	background: var(--tl-white);
	color: var(--tl-white);
}

.tmqt-lb .is-on .tmqt-lb-box {
	background: var(--tl-blue);
}

.tmqt-lb .tmqt-lb-check-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tmqt-lb .tmqt-lb-check .tmqt-lb-opt-title {
	font-size: 17px;
	font-weight: 800;
	line-height: 1.3;
}

.tmqt-lb .tmqt-lb-check .tmqt-lb-opt-sub {
	font-size: 14px;
}

.tmqt-lb .tmqt-lb-level {
	gap: 8px;
	padding: 14px 16px;
}

.tmqt-lb .tmqt-lb-level .tmqt-lb-opt-title {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
}

.tmqt-lb .tmqt-lb-preview {
	padding: 8px 10px;
	border-radius: 8px;
	background: var(--tl-bg);
	font-size: 13px;
	line-height: 1.4;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.tmqt-lb .is-on .tmqt-lb-preview {
	background: var(--tl-white);
}

/* ---------- the lesson ---------- */

.tmqt-lb .tmqt-lb-result {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 24px;
}

.tmqt-lb .tmqt-lb-lesson {
	flex: 999 1 560px;
	display: flex;
	flex-direction: column;
	gap: 26px;
	min-width: 0;
	padding: clamp(20px, 4vw, 44px);
	border: 1px solid var(--tl-line);
	border-radius: 18px;
	background: var(--tl-white);
	overflow-wrap: break-word;
}

.tmqt-lb .tmqt-lb-head {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tmqt-lb .tmqt-lb-lesson .tmqt-lb-h1 {
	font-size: clamp(30px, 4.4vw, 44px) !important;
}

.tmqt-lb .tmqt-lb-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.tmqt-lb .tmqt-lb-chip {
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--tl-chip);
	font-size: 14px;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-hint {
	display: none;
	color: var(--tl-muted);
	font-size: 14px;
	font-weight: 600;
}

.tmqt-lb.tmqt-lb-js .tmqt-lb-hint {
	display: block;
}

.tmqt-lb .tmqt-lb-big {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 16px 20px;
	border-radius: 14px;
	background: var(--tl-sun-soft);
}

.tmqt-lb .tmqt-lb-bigtext {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
}

.tmqt-lb .tmqt-lb-sec {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tmqt-lb .tmqt-lb-sec > p,
.tmqt-lb .tmqt-lb-say,
.tmqt-lb .tmqt-lb-verses,
.tmqt-lb .tmqt-lb-passage,
.tmqt-lb .tmqt-lb-beats,
.tmqt-lb .tmqt-lb-qs {
	max-width: 65ch;
}

.tmqt-lb .tmqt-lb-needs {
	display: grid;
	gap: 6px 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}

.tmqt-lb .tmqt-lb-needs li {
	position: relative;
	padding-left: 28px;
}

.tmqt-lb .tmqt-lb-needs li::after {
	content: "";
	position: absolute;
	left: 0;
	top: 4px;
	width: 18px;
	height: 18px;
	border: 2px solid var(--tl-blue);
	border-radius: 5px;
}

.tmqt-lb .tmqt-lb-plan {
	border-top: 2px dashed var(--tl-dash);
}

.tmqt-lb .tmqt-lb-plan li {
	display: flex;
	align-items: baseline;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 2px dashed var(--tl-line);
}

.tmqt-lb .tmqt-lb-mins {
	flex: none;
	width: 76px;
	color: var(--tl-blue);
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.tmqt-lb .tmqt-lb-planlabel {
	font-weight: 600;
}

.tmqt-lb .tmqt-lb-say {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--tl-blue-soft);
}

.tmqt-lb .tmqt-lb-say .tmqt-lb-label {
	color: var(--tl-blue);
	font-size: 12px;
	letter-spacing: 0.06em !important;
}

.tmqt-lb .tmqt-lb-beats,
.tmqt-lb .tmqt-lb-qs {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-left: 22px;
}

.tmqt-lb .tmqt-lb-beats {
	list-style: disc outside !important;
}

.tmqt-lb .tmqt-lb-qs {
	list-style: decimal outside !important;
}

.tmqt-lb .tmqt-lb-beats li,
.tmqt-lb .tmqt-lb-qs li {
	display: list-item;
}

.tmqt-lb .tmqt-lb-reading {
	color: var(--tl-muted);
	font-size: 15px;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-verses {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tmqt-lb .tmqt-lb-verse {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--tl-bg);
	color: var(--tl-ink);
	font-size: inherit;
	font-style: normal;
}

.tmqt-lb .tmqt-lb-verse p {
	font-style: italic;
}

.tmqt-lb cite {
	display: block;
	color: var(--tl-muted);
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-passage {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--tl-bg);
}

.tmqt-lb .tmqt-lb-vn {
	color: var(--tl-blue);
	font-size: 0.7em;
	font-weight: 800;
}

/* What you need and Class plan sit one above the other on screen and side by
   side on paper; the wrapper only matters in print. */
.tmqt-lb .tmqt-lb-pair {
	display: contents;
}

.tmqt-lb .tmqt-lb-crafts {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tmqt-lb .tmqt-lb-crafts li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	padding: 12px;
	border: 2px dashed var(--tl-blue);
	border-radius: 12px;
	background: var(--tl-blue-wash);
}

.tmqt-lb .tmqt-lb-craftpic {
	flex: none;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border: 1px solid var(--tl-line);
	border-radius: 10px;
	background: var(--tl-white);
}

.tmqt-lb .tmqt-lb-craftpic img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tmqt-lb .tmqt-lb-craftinfo {
	flex: 1 1 220px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tmqt-lb .tmqt-lb-crafttitle {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.25;
}

/* Paper only. */
.tmqt-lb .tmqt-lb-crafturl,
.tmqt-lb .tmqt-lb-craftnote,
.tmqt-lb .tmqt-lb-qr,
.tmqt-lb .tmqt-lb-printlogo,
.tmqt-lb .tmqt-lb-sheets {
	display: none;
}

.tmqt-lb .tmqt-lb-craftbtns {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 20px;
}

.tmqt-lb .tmqt-lb-open,
.tmqt-lb .tmqt-lb-watch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--tl-blue);
	font-size: 15px;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* A small play mark before "Watch the video". */
.tmqt-lb .tmqt-lb-watch::before {
	content: "";
	flex: none;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
}

.tmqt-lb .tmqt-lb-video {
	flex: 1 0 100%;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	background: #000;
}

.tmqt-lb .tmqt-lb-video iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Black and white or color: which form of a printable goes into the print. */
.tmqt-lb .tmqt-lb-alt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin-top: 6px;
}

.tmqt-lb .tmqt-lb-altlabel {
	color: var(--tl-muted);
	font-size: 14px;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-altbtn {
	min-height: 40px;
	padding: 4px 14px;
	border: 2px solid var(--tl-line);
	border-radius: 999px;
	background: var(--tl-white);
	color: var(--tl-ink);
	font-size: 14px;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-altbtn:hover {
	border-color: var(--tl-dash);
	background: var(--tl-white);
	color: var(--tl-ink);
}

.tmqt-lb .tmqt-lb-altbtn.is-on {
	border-color: var(--tl-blue);
	background: var(--tl-blue-soft);
	color: var(--tl-blue-dark);
}

/* While the printables are being added to the print, and if one could not be. */
.tmqt-lb .tmqt-lb-prep {
	color: var(--tl-blue-dark);
	font-size: 15px;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-btn[aria-busy="true"] {
	opacity: 0.6;
	cursor: progress;
}

.tmqt-lb .tmqt-lb-prepfail {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px;
	border: 2px dashed var(--tl-focus);
	border-radius: 12px;
	background: var(--tl-edit);
	font-size: 15px;
	font-weight: 600;
}

.tmqt-lb .tmqt-lb-prepfail a {
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tmqt-lb .tmqt-lb-open:hover,
.tmqt-lb .tmqt-lb-watch:hover,
.tmqt-lb .tmqt-lb-join:hover,
.tmqt-lb .tmqt-lb-link:hover {
	color: var(--tl-blue-dark);
}

.tmqt-lb .tmqt-lb-mv {
	max-width: 34em;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.35;
}

.tmqt-lb .tmqt-lb-mvref {
	color: var(--tl-muted);
	font-size: 15px;
	font-weight: 700;
}

/* Tap to edit. */
.tmqt-lb .tmqt-lb-ed[contenteditable] {
	border-radius: 6px;
	cursor: text;
	transition: background-color 0.15s ease;
}

.tmqt-lb .tmqt-lb-ed[contenteditable]:hover {
	background: var(--tl-edit);
}

.tmqt-lb .tmqt-lb-ed[contenteditable]:focus {
	background: var(--tl-edit);
	outline: 2px dashed var(--tl-focus);
	outline-offset: 3px;
}

/* Printable cards, with dashed cut lines. */
.tmqt-lb .tmqt-lb-cardsec {
	gap: 14px;
}

.tmqt-lb .tmqt-lb-cardset {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tmqt-lb .tmqt-lb-cards {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr));
}

.tmqt-lb .tmqt-lb-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 110px;
	padding: 12px;
	border: 2px dashed var(--tl-dash);
	border-radius: 10px;
	background: var(--tl-white);
}

.tmqt-lb .tmqt-lb-copy {
	display: none;
}

.tmqt-lb .tmqt-lb-cardpic {
	width: 100%;
	height: 72px;
	border-radius: 6px;
	object-fit: contain;
	background: var(--tl-chip);
}

.tmqt-lb .tmqt-lb-cardtext {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.tmqt-lb .tmqt-lb-cardfoot {
	color: var(--tl-muted);
	font-size: 13px;
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-fb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	padding-top: 20px;
	border-top: 1px solid var(--tl-line);
}

.tmqt-lb .tmqt-lb-fbq,
.tmqt-lb .tmqt-lb-fbthanks {
	font-weight: 700;
}

.tmqt-lb .tmqt-lb-fbbtns {
	display: flex;
	gap: 8px;
}

/* The panel beside the lesson (below it on phones). */
.tmqt-lb .tmqt-lb-actions {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 24px;
	border: 1px solid var(--tl-line);
	border-radius: 18px;
	background: var(--tl-white);
}

@media (min-width: 900px) {
	/* Stays in view while a long lesson scrolls. --tl-pinned is the height of
	   anything the theme pins to the top of the screen, measured by the script. */
	.tmqt-lb .tmqt-lb-actions {
		position: sticky;
		top: calc(24px + var(--tl-pinned, 0px));
	}

	/* The Enfold theme clips its page wrapper with "overflow: hidden", which
	   stops anything inside from staying in view. "clip" cuts off the same
	   things without that side effect. Lesson pages only. */
	@supports (overflow: clip) {
		html.responsive body.tmqt-lb-page,
		body.tmqt-lb-page #wrap_all {
			overflow-x: clip;
			overflow-y: visible;
		}
	}
}

.tmqt-lb .tmqt-lb-actions .tmqt-lb-h2 {
	font-size: 24px !important;
	line-height: 1.15 !important;
}

.tmqt-lb .tmqt-lb-actions .tmqt-lb-sub {
	font-size: 15px;
}

.tmqt-lb .tmqt-lb-signin {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px 16px;
	border: 2px dashed var(--tl-blue);
	border-radius: 12px;
	background: var(--tl-blue-wash);
}

/* The one-time note that the builder is in beta. */
.tmqt-lb .tmqt-lb-beta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding: 12px 14px;
	border: 2px dashed var(--tl-blue);
	border-radius: 12px;
	background: var(--tl-blue-wash);
}

.tmqt-lb .tmqt-lb-beta[hidden] {
	display: none;
}

.tmqt-lb .tmqt-lb-beta-tag {
	flex: none;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--tl-blue);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.tmqt-lb .tmqt-lb-beta-text {
	flex: 1;
	margin: 0;
	font-size: 15px;
}

.tmqt-lb .tmqt-lb-beta-text a {
	color: var(--tl-blue);
	font-weight: 700;
	text-decoration: underline;
	white-space: nowrap;
}

.tmqt-lb .tmqt-lb-beta-close {
	flex: none;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.tmqt-lb .tmqt-lb-beta-close:hover,
.tmqt-lb .tmqt-lb-beta-close:focus-visible {
	background: rgba(0, 0, 0, 0.08);
}

/* The site's own sign-in form, dressed to sit in the panel whatever styles it came with. */
.tmqt-lb .tmqt-lb-signin-form {
	padding-top: 4px;
	font-size: 15px;
}

.tmqt-lb .tmqt-lb-signin-form[hidden] {
	display: none;
}

.tmqt-lb .tmqt-lb-signin-form form,
.tmqt-lb .tmqt-lb-signin-form .mp_wrapper {
	margin: 0;
	padding: 0;
	max-width: none;
	width: auto;
	background: none;
	border: 0;
	box-shadow: none;
}

.tmqt-lb .tmqt-lb-signin-form p,
.tmqt-lb .tmqt-lb-signin-form .mp-form-row {
	margin: 0 0 10px;
	padding: 0;
}

.tmqt-lb .tmqt-lb-signin-form label {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
}

.tmqt-lb .tmqt-lb-signin-form input[type="text"],
.tmqt-lb .tmqt-lb-signin-form input[type="email"],
.tmqt-lb .tmqt-lb-signin-form input[type="password"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 8px 12px;
	border: 2px solid #c9d2e6;
	border-radius: 10px;
	background: #fff;
	color: #1c2333;
	font: inherit;
	font-size: 16px;
}

.tmqt-lb .tmqt-lb-signin-form input[type="text"]:focus,
.tmqt-lb .tmqt-lb-signin-form input[type="email"]:focus,
.tmqt-lb .tmqt-lb-signin-form input[type="password"]:focus {
	border-color: var(--tl-blue);
	outline: 2px solid var(--tl-blue);
	outline-offset: 1px;
}

.tmqt-lb .tmqt-lb-signin-form .mp-hide-pw {
	display: block;
	position: static;
	width: auto;
}

/* The show-password button needs the membership plugin's own script and icons, which this page may not have. */
.tmqt-lb .tmqt-lb-signin-form button.mp-hide-pw {
	display: none;
}

.tmqt-lb .tmqt-lb-signin-form input[type="checkbox"] {
	display: inline-block;
	-webkit-appearance: checkbox;
	appearance: auto;
	accent-color: var(--tl-blue);
	padding: 0;
	width: 18px;
	height: 18px;
	margin: 0 6px 0 0;
	vertical-align: -3px;
}

.tmqt-lb .tmqt-lb-signin-form label:has(input[type="checkbox"]) {
	font-weight: 400;
}

.tmqt-lb .tmqt-lb-signin-form .mp-spacer {
	display: none;
}

.tmqt-lb .tmqt-lb-signin-form input[type="submit"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 12px 0 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--tl-blue);
	color: #fff;
	font: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.tmqt-lb .tmqt-lb-signin-form .mepr-login-actions {
	margin-top: 10px;
	text-align: center;
}

.tmqt-lb .tmqt-lb-signin-form a {
	color: var(--tl-blue);
	font-weight: 600;
}

.tmqt-lb .tmqt-lb-signin-text {
	font-size: 15px;
	font-weight: 600;
}

.tmqt-lb .tmqt-lb-join {
	align-self: center;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--tl-blue);
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tmqt-lb .tmqt-lb-reset {
	align-self: center;
}

.tmqt-lb .tmqt-lb-printlock,
.tmqt-lb .tmqt-lb-jsonly {
	display: none;
}

.tmqt-lb.tmqt-lb-js .tmqt-lb-jsonly {
	display: inline;
}

.tmqt-lb .tmqt-lb-chips .tmqt-lb-link {
	display: none;
}

.tmqt-lb.tmqt-lb-js .tmqt-lb-chips .tmqt-lb-link {
	display: inline-block;
}

@media (max-width: 600px) {
	.tmqt-lb {
		gap: 22px;
		padding: 12px;
		border-radius: 14px;
	}

	.tmqt-lb .tmqt-lb-lesson,
	.tmqt-lb .tmqt-lb-actions {
		padding: 18px 14px;
		border-radius: 14px;
	}

	.tmqt-lb .tmqt-lb-cards {
		grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr));
	}

	.tmqt-lb .tmqt-lb-btn--primary,
	.tmqt-lb .tmqt-lb-btn--outline {
		width: 100%;
	}

	.tmqt-lb .tmqt-lb-opt {
		padding: 16px;
	}

	.tmqt-lb .tmqt-lb-mins {
		width: 66px;
	}

	/* Room for the whole hint ("Try Noah, Daniel or Samaritan") on a small phone. */
	.tmqt-lb .tmqt-lb-search input,
	#top .tmqt-lb .tmqt-lb-search input[type="search"] {
		padding: 0 12px;
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tmqt-lb *,
	.tmqt-lb *::before,
	.tmqt-lb *::after {
		transition: none !important;
	}
}

/* ---------- print ---------- */

/* The lettering of the printed lesson. The files are fetched only when a
   lesson is about to be printed; nothing on screen uses them. */
@font-face {
	font-family: "TMQT Baloo";
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url(../fonts/baloo-2-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "TMQT Nunito";
	font-style: normal;
	font-weight: 200 1000;
	font-display: swap;
	src: url(../fonts/nunito-latin.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "TMQT Nunito";
	font-style: italic;
	font-weight: 200 1000;
	font-display: swap;
	src: url(../fonts/nunito-latin-italic.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The printed lesson is made for a black and white printer or a copier: a
   white page, black lettering and outlines, and no filled blocks of color. */
@media print {
	/* Narrow side margins on the paper itself, so the printables' own sheets can
	   be nearly as wide as the paper. The lesson gets its wider side margins
	   from padding (see .tmqt-lb-lesson below). */
	@page {
		margin: 0.5in 0.25in 0.6in;
	}

	/* The page script marks everything outside the lesson builder, whatever the
	   theme. The named selectors below cover the Enfold theme without the script. */
	.tmqt-lb-noprint,
	body.tmqt-lb-page #header,
	body.tmqt-lb-page #footer,
	body.tmqt-lb-page #socket,
	body.tmqt-lb-page #wpadminbar,
	body.tmqt-lb-page .sidebar,
	body.tmqt-lb-page .title_container,
	body.tmqt-lb-page #scroll-top-link,
	body.tmqt-lb-page .post-meta-infos,
	body.tmqt-lb-page .comment-entry,
	body.tmqt-lb-page .related_posts {
		display: none !important;
	}

	.tmqt-lb-printpath {
		position: static !important;
		float: none !important;
		display: block !important;
		width: auto !important;
		max-width: none !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: none !important;
		box-shadow: none !important;
		transform: none !important;
		overflow: visible !important;
	}

	html,
	body {
		background: #fff !important;
	}

	.tmqt-lb {
		display: block !important;
		max-width: none;
		margin: 0;
		padding: 0 !important;
		background: none;
		border-radius: 0;
		color: #111;
		font-family: "TMQT Nunito", Nunito, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
		font-size: 11.5pt;
		font-weight: 500;
		line-height: 1.42;
	}

	.tmqt-lb .tmqt-lb-progress,
	.tmqt-lb .tmqt-lb-actions,
	.tmqt-lb .tmqt-lb-fb,
	.tmqt-lb .tmqt-lb-hint,
	.tmqt-lb .tmqt-lb-craftbtns,
	.tmqt-lb .tmqt-lb-alt,
	.tmqt-lb .tmqt-lb-video,
	.tmqt-lb .tmqt-lb-chips .tmqt-lb-link,
	.tmqt-lb [data-view]:not([data-view="lesson"]) {
		display: none !important;
	}

	.tmqt-lb .tmqt-lb-result {
		display: block;
		position: relative;
	}

	.tmqt-lb .tmqt-lb-lesson {
		display: block;
		padding: 0 0.35in;
		border: 0;
		border-radius: 0;
		counter-reset: tmqt-lb-step;
		visibility: visible !important;
		animation: none !important;
	}

	.tmqt-lb .tmqt-lb-lesson > * {
		margin-bottom: 12pt !important;
	}

	.tmqt-lb h1,
	.tmqt-lb h2,
	.tmqt-lb h3 {
		color: #111 !important;
		font-family: "TMQT Baloo", "TMQT Nunito", Nunito, "Segoe UI", Arial, sans-serif !important;
		font-weight: 800 !important;
	}

	.tmqt-lb .tmqt-lb-label,
	.tmqt-lb .tmqt-lb-tag,
	.tmqt-lb .tmqt-lb-eyebrow,
	.tmqt-lb .tmqt-lb-mins,
	.tmqt-lb .tmqt-lb-vn,
	.tmqt-lb .tmqt-lb-reading,
	.tmqt-lb .tmqt-lb-mvref,
	.tmqt-lb .tmqt-lb-cardfoot,
	.tmqt-lb .tmqt-lb-say .tmqt-lb-label,
	.tmqt-lb cite {
		color: #111;
	}

	.tmqt-lb .tmqt-lb-label,
	.tmqt-lb .tmqt-lb-tag,
	.tmqt-lb .tmqt-lb-eyebrow {
		font-size: 9pt;
		letter-spacing: 0.1em !important;
	}

	/* Title on the left, logo on the right, a rule under both. */
	.tmqt-lb .tmqt-lb-head {
		gap: 5pt;
		padding-bottom: 9pt;
		border-bottom: 2.25pt solid #111;
	}

	.tmqt-lb .tmqt-lb-haslogo .tmqt-lb-head {
		justify-content: flex-end;
		min-height: 0.95in;
		padding-right: 2.2in;
	}

	.tmqt-lb .tmqt-lb-printlogo {
		display: block;
		position: absolute;
		top: 0;
		right: 0.35in;
		width: auto;
		max-width: 2in;
		height: auto;
		max-height: 0.82in;
		font-size: 9pt;
		font-weight: 800;
	}

	.tmqt-lb .tmqt-lb-lesson .tmqt-lb-h1,
	.tmqt-lb .tmqt-lb-h1 {
		font-size: 31pt !important;
		line-height: 1 !important;
	}

	.tmqt-lb .tmqt-lb-chips {
		gap: 5pt;
	}

	.tmqt-lb .tmqt-lb-chip {
		padding: 1pt 9pt;
		border: 1.5pt solid #111;
		background: none;
		font-size: 10pt;
		font-weight: 800;
	}

	/* The big idea, in a dashed frame with a heart. */
	.tmqt-lb .tmqt-lb-big {
		position: relative;
		gap: 0;
		padding: 8pt 14pt 8pt 50pt;
		border: 2.25pt dashed #111;
		border-radius: 14pt;
		background: none;
	}

	.tmqt-lb .tmqt-lb-big::before {
		content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='35' height='32' viewBox='0 0 46 42'%3E%3Cpath d='M23 39C9 29 3 21 3 13 3 7 8 3 13 3c4 0 8 2 10 6 2-4 6-6 10-6 5 0 10 4 10 10 0 8-6 16-20 26z' fill='none' stroke='%23111' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
		position: absolute;
		top: 50%;
		left: 12pt;
		height: 32px;
		line-height: 0;
		transform: translateY(-50%);
	}

	.tmqt-lb .tmqt-lb-bigtext {
		font-family: "TMQT Baloo", "TMQT Nunito", Nunito, Arial, sans-serif;
		font-size: 17pt;
		font-weight: 700;
		line-height: 1.15;
	}

	/* What you need and Class plan, side by side in two outlined boxes. */
	.tmqt-lb .tmqt-lb-pair {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 12pt;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.tmqt-lb .tmqt-lb-panel {
		gap: 5pt;
		padding: 8pt 12pt 9pt;
		border: 1.5pt solid #111;
		border-radius: 13pt;
	}

	.tmqt-lb .tmqt-lb-h2 {
		font-size: 16pt !important;
		line-height: 1.2 !important;
		break-after: avoid;
		page-break-after: avoid;
	}

	.tmqt-lb .tmqt-lb-needs {
		display: flex;
		flex-direction: column;
		gap: 3.5pt;
		font-weight: 600;
		line-height: 1.3;
	}

	.tmqt-lb .tmqt-lb-needs li {
		padding-left: 19pt;
	}

	.tmqt-lb .tmqt-lb-needs li::after {
		top: 1.5pt;
		width: 11.5pt;
		height: 11.5pt;
		border: 1.5pt solid #111;
		border-radius: 3pt;
	}

	.tmqt-lb .tmqt-lb-plan {
		border-top: 0;
	}

	.tmqt-lb .tmqt-lb-plan li {
		gap: 9pt;
		padding: 2.5pt 0;
		border-bottom: 1.25pt dotted #111;
		line-height: 1.3;
	}

	.tmqt-lb .tmqt-lb-plan li:last-child {
		border-bottom: 0;
	}

	.tmqt-lb .tmqt-lb-mins {
		width: 0.85in;
		font-weight: 800;
		white-space: nowrap;
	}

	/* The parts of the class, numbered in a circle. */
	.tmqt-lb .tmqt-lb-step {
		position: relative;
		gap: 4pt;
		padding-left: 33pt;
	}

	.tmqt-lb .tmqt-lb-step > .tmqt-lb-h2 {
		font-size: 17pt !important;
		line-height: 24pt !important;
	}

	.tmqt-lb .tmqt-lb-step > .tmqt-lb-h2::before {
		counter-increment: tmqt-lb-step;
		content: counter(tmqt-lb-step);
		position: absolute;
		top: 0;
		left: 0;
		width: 24pt;
		height: 24pt;
		border: 2pt solid #111;
		border-radius: 50%;
		font-size: 13.5pt;
		line-height: 21pt;
		text-align: center;
	}

	/* A part of the class may run on to the next sheet (keeping each whole
	   would leave half-empty pages), but the small boxes inside stay in one
	   piece and a heading is never left alone at the foot of a page. */
	.tmqt-lb .tmqt-lb-panel,
	.tmqt-lb .tmqt-lb-big,
	.tmqt-lb .tmqt-lb-crafts li,
	.tmqt-lb .tmqt-lb-plan li,
	.tmqt-lb .tmqt-lb-verse,
	.tmqt-lb .tmqt-lb-say,
	.tmqt-lb .tmqt-lb-qs li,
	.tmqt-lb .tmqt-lb-beats li,
	.tmqt-lb .tmqt-lb-mv {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.tmqt-lb .tmqt-lb-mv {
		break-after: avoid;
		page-break-after: avoid;
	}

	.tmqt-lb .tmqt-lb-lesson p,
	.tmqt-lb .tmqt-lb-lesson li {
		orphans: 3;
		widows: 3;
	}

	.tmqt-lb .tmqt-lb-sec > p,
	.tmqt-lb .tmqt-lb-say,
	.tmqt-lb .tmqt-lb-verses,
	.tmqt-lb .tmqt-lb-passage,
	.tmqt-lb .tmqt-lb-beats,
	.tmqt-lb .tmqt-lb-qs {
		max-width: none;
	}

	.tmqt-lb .tmqt-lb-beats,
	.tmqt-lb .tmqt-lb-qs {
		gap: 3pt;
		padding-left: 15pt;
	}

	/* Words to say aloud: a bar down the side instead of a tinted box. */
	.tmqt-lb .tmqt-lb-say {
		gap: 0;
		padding: 1pt 0 1pt 10pt;
		border: 0;
		border-left: 3pt solid #111;
		border-radius: 0;
		background: none;
	}

	.tmqt-lb .tmqt-lb-reading,
	.tmqt-lb cite {
		font-size: 10.5pt;
		font-weight: 800;
	}

	.tmqt-lb .tmqt-lb-verses {
		gap: 6pt;
	}

	.tmqt-lb .tmqt-lb-verse {
		color: #111;
		gap: 1pt;
		padding: 6pt 11pt;
		border: 1.5pt dotted #111;
		border-radius: 11pt;
		background: none;
	}

	.tmqt-lb .tmqt-lb-passage {
		gap: 3pt;
		padding: 8pt 12pt;
		border: 1.25pt solid #111;
		border-radius: 11pt;
		background: none;
	}

	.tmqt-lb .tmqt-lb-ed[contenteditable] {
		background: none !important;
		outline: none !important;
	}

	/* Craft time: the picture, what it is and where it is, and the video code. */
	.tmqt-lb .tmqt-lb-crafts {
		gap: 7pt;
	}

	.tmqt-lb .tmqt-lb-crafts li {
		flex-wrap: nowrap;
		gap: 12pt;
		padding: 7pt;
		border: 1.5pt solid #111;
		border-radius: 13pt;
		background: none;
	}

	.tmqt-lb .tmqt-lb-craftpic {
		width: 1.2in;
		height: 1.2in;
		border: 1pt solid #111;
		border-radius: 8pt;
	}

	.tmqt-lb .tmqt-lb-craftinfo {
		flex: 1 1 auto;
		gap: 1pt;
	}

	.tmqt-lb .tmqt-lb-crafttitle {
		font-family: "TMQT Baloo", "TMQT Nunito", Nunito, Arial, sans-serif;
		font-size: 15pt;
		font-weight: 700;
		line-height: 1.15;
	}

	.tmqt-lb .tmqt-lb-craftnote {
		display: block;
		margin-top: 2pt;
		font-size: 10.5pt;
		font-weight: 800;
	}

	.tmqt-lb .tmqt-lb-crafturl {
		display: block;
		font-size: 9.5pt;
		overflow-wrap: anywhere;
	}

	.tmqt-lb .is-attached .tmqt-lb-crafturl,
	.tmqt-lb .tmqt-lb-qr:empty {
		display: none;
	}

	.tmqt-lb .tmqt-lb-qr {
		flex: none;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 1pt;
		width: 1in;
	}

	.tmqt-lb .tmqt-lb-qrpic {
		display: block;
		width: 0.88in;
		height: 0.88in;
	}

	.tmqt-lb .tmqt-lb-qrcap {
		font-size: 8pt;
		font-weight: 800;
		line-height: 1.15;
		text-align: center;
	}

	/* The memory verse, in a dashed frame of its own. */
	.tmqt-lb .tmqt-lb-mv {
		max-width: none;
		padding: 8pt 14pt 0;
		border: 2.25pt dashed #111;
		border-bottom: 0;
		border-radius: 14pt 14pt 0 0;
		font-family: "TMQT Baloo", "TMQT Nunito", Nunito, Arial, sans-serif;
		font-size: 16pt;
		font-weight: 700;
		line-height: 1.2;
	}

	.tmqt-lb .tmqt-lb-mvref {
		margin-top: -4pt !important;
		padding: 2pt 14pt 8pt;
		border: 2.25pt dashed #111;
		border-top: 0;
		border-radius: 0 0 14pt 14pt;
		font-size: 10.5pt;
		font-weight: 800;
	}

	.tmqt-lb .tmqt-lb-mv:last-child {
		padding-bottom: 8pt;
		border-bottom: 2.25pt dashed #111;
		border-radius: 14pt;
	}

	/* Cards: each set starts a new page, eight cards to a page, dashed cut lines. */
	.tmqt-lb .tmqt-lb-cardsec > .tmqt-lb-h2,
	.tmqt-lb .tmqt-lb-cardsec > .tmqt-lb-sub {
		display: none;
	}

	.tmqt-lb .tmqt-lb-cardsec {
		display: block;
	}

	.tmqt-lb .tmqt-lb-cardset {
		display: block;
		break-before: page;
		page-break-before: always;
	}

	.tmqt-lb .tmqt-lb-cardset .tmqt-lb-h3 {
		margin-bottom: 8pt !important;
		font-size: 12pt !important;
	}

	.tmqt-lb .tmqt-lb-cards {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 2.25in;
		gap: 0;
	}

	.tmqt-lb .tmqt-lb-card,
	.tmqt-lb .tmqt-lb-copy {
		display: flex;
		justify-content: center;
		min-height: 0;
		padding: 0.2in;
		border: 1px dashed #333;
		border-radius: 0;
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.tmqt-lb .tmqt-lb-card:nth-child(8n + 1):not(:first-child) {
		break-before: page;
		page-break-before: always;
	}

	.tmqt-lb .tmqt-lb-cardtext {
		font-size: 14pt;
	}

	.tmqt-lb .tmqt-lb-cardfoot {
		font-size: 11pt;
	}

	.tmqt-lb .tmqt-lb-cardpic {
		height: 0.9in;
		background: none;
	}

	/* The printables themselves, one sheet of paper for each of their pages. */
	.tmqt-lb .tmqt-lb-sheets {
		display: block;
	}

	.tmqt-lb .tmqt-lb-sheet {
		break-before: page;
		page-break-before: always;
		break-inside: avoid;
		page-break-inside: avoid;
		line-height: 0;
	}

	.tmqt-lb .tmqt-lb-sheet img {
		display: block;
		margin: 0 auto;
	}

	/* A visitor who is not allowed to print gets a short note instead of the lesson. */
	.tmqt-lb.tmqt-lb-locked .tmqt-lb-result {
		display: none !important;
	}

	.tmqt-lb.tmqt-lb-locked .tmqt-lb-printlock {
		display: block !important;
		padding: 1in 0;
		font-size: 14pt;
	}
}
