/* TFG Learner Tracker — inherits the theme's fonts. Override the --tlt-* variables in Appearance > Customize > Additional CSS to match brand colors. */
.tlt-app {
	--tlt-ink: #16323f;
	--tlt-muted: #56707b;
	--tlt-accent: #0f4c5c;
	--tlt-accent-ink: #ffffff;
	--tlt-line: #d3dfe2;
	--tlt-soft: #f1f6f7;
	--tlt-ok: #2c7a57;
	--tlt-warn: #9a4318;
	color: var(--tlt-ink);
	font-family: inherit;
	line-height: 1.55;
	margin: 1.5rem 0;
}
.tlt-app *, .tlt-app *::before, .tlt-app *::after { box-sizing: border-box; }

.tlt-facts { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.75rem; padding: .85rem 1.1rem; background: var(--tlt-soft); border-left: 4px solid var(--tlt-accent); font-size: .95rem; color: var(--tlt-muted); }
.tlt-facts strong { color: var(--tlt-ink); }

.tlt-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 2.5rem; align-items: start; }

/* Step rail: a real sequence, so it is numbered. The line fills as steps are done. */
.tlt-steps { position: sticky; top: 1.5rem; }
.tlt-steps ol { --tlt-progress: 0; list-style: none; margin: 0; padding: 0; position: relative; }
.tlt-steps ol::before, .tlt-steps ol::after { content: ""; position: absolute; left: 13px; top: 14px; width: 2px; bottom: 14px; background: var(--tlt-line); }
.tlt-steps ol::after { background: var(--tlt-accent); bottom: auto; height: calc((100% - 28px) * var(--tlt-progress)); transition: height .4s ease; }
.tlt-step { position: relative; z-index: 1; margin: 0 0 .35rem; }
.tlt-step a, .tlt-step > span { display: flex; align-items: center; gap: .75rem; padding: .3rem 0; color: var(--tlt-muted); text-decoration: none; font-size: .95rem; }
.tlt-step a:hover .tlt-step-label { color: var(--tlt-accent); text-decoration: underline; }
.tlt-step a:focus-visible { outline: 2px solid var(--tlt-accent); outline-offset: 3px; border-radius: 3px; }
.tlt-step-mark { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--tlt-line); font-size: .8rem; font-weight: 600; color: var(--tlt-muted); }
.tlt-step.is-done .tlt-step-mark { background: var(--tlt-accent); border-color: var(--tlt-accent); }
.tlt-step.is-done .tlt-step-mark::before { content: ""; width: 9px; height: 5px; border: solid var(--tlt-accent-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.tlt-step.is-active .tlt-step-mark { border-color: var(--tlt-accent); color: var(--tlt-accent); }
.tlt-step.is-active .tlt-step-label { color: var(--tlt-ink); font-weight: 600; }
.tlt-step.is-locked { opacity: .55; }

.tlt-panel { min-width: 0; }
.tlt-head h2 { margin: 0 0 .35rem; font-size: 1.6rem; line-height: 1.2; }
.tlt-head p { margin: 0 0 1.5rem; color: var(--tlt-muted); max-width: 65ch; }
.tlt-loading { color: var(--tlt-muted); }

.tlt-form { max-width: 72ch; }
.tlt-q { border: 0; border-top: 1px solid var(--tlt-line); margin: 0; padding: 1.25rem 0 1.4rem; }
.tlt-q legend { padding: 0; margin-bottom: .75rem; font-weight: 600; float: left; width: 100%; }
.tlt-q legend + * { clear: both; }
.tlt-q-n { color: var(--tlt-muted); font-weight: 400; margin-right: .2rem; }
.tlt-q.is-incorrect { border-top-color: var(--tlt-warn); }
.tlt-q-flag { clear: both; margin: 0 0 .6rem; color: var(--tlt-warn); font-size: .9rem; }
.tlt-options { display: grid; gap: .4rem; clear: both; }
.tlt-likert { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.tlt-option { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .75rem; border: 1px solid var(--tlt-line); border-radius: 6px; cursor: pointer; background: #fff; }
.tlt-likert .tlt-option { flex-direction: column; align-items: center; text-align: center; font-size: .88rem; }
.tlt-option:hover { border-color: var(--tlt-accent); }
.tlt-option input { margin-top: .3rem; accent-color: var(--tlt-accent); }
.tlt-option:has(input:checked) { border-color: var(--tlt-accent); background: var(--tlt-soft); }
.tlt-option:has(input:disabled) { cursor: default; }
.tlt-option:has(input:focus-visible) { outline: 2px solid var(--tlt-accent); outline-offset: 2px; }
.tlt-q textarea, .tlt-claim input, .tlt-claim select { width: 100%; padding: .6rem .7rem; border: 1px solid var(--tlt-line); border-radius: 6px; font: inherit; color: inherit; background: #fff; }
.tlt-optional { font-weight: 400; color: var(--tlt-muted); font-size: .88em; }

.tlt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; margin-bottom: 1.25rem; }
.tlt-grid label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.tlt-attest { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1rem; background: var(--tlt-soft); border-radius: 6px; }
.tlt-attest input { margin-top: .3rem; accent-color: var(--tlt-accent); }

.tlt-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.tlt-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1.4rem; border: 2px solid var(--tlt-accent); border-radius: 6px; background: #fff; color: var(--tlt-accent); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.tlt-btn.tlt-primary { background: var(--tlt-accent); color: var(--tlt-accent-ink); }
.tlt-btn:hover { filter: brightness(1.1); }
.tlt-btn:focus-visible { outline: 3px solid var(--tlt-accent); outline-offset: 2px; }
.tlt-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

.tlt-form-msg:not(:empty), .tlt-error { color: var(--tlt-warn); font-weight: 600; margin: 1rem 0 0; }
.tlt-banner { padding: .85rem 1rem; border-radius: 6px; margin: 0 0 1.25rem; }
.tlt-warn { background: #fbefe8; color: var(--tlt-warn); }

.tlt-video { position: relative; aspect-ratio: 16 / 9; background: #0b1e26; border-radius: 6px; overflow: hidden; }
.tlt-video-frame, .tlt-video iframe, .tlt-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tlt-meter { height: 6px; background: var(--tlt-line); border-radius: 3px; margin-top: 1rem; overflow: hidden; }
.tlt-meter span { display: block; height: 100%; width: 0; background: var(--tlt-ok); transition: width .4s ease; }
.tlt-meter-label { margin: .4rem 0 0; font-size: .9rem; color: var(--tlt-muted); }

.tlt-app .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 782px) {
	.tlt-layout { grid-template-columns: 1fr; gap: 1.5rem; }
	.tlt-steps { position: static; overflow-x: auto; }
	.tlt-steps ol { display: flex; gap: 1rem; padding-bottom: .5rem; }
	.tlt-steps ol::before, .tlt-steps ol::after { display: none; }
	.tlt-step { margin: 0; flex: 0 0 auto; }
	.tlt-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.tlt-steps ol::after, .tlt-meter span { transition: none; }
}

/* Required question left blank */
.tlt-q.is-missing { border-left: 3px solid #b5432a; padding-left: 14px; }
.tlt-q.is-missing legend::after { content: " Required"; color: #b5432a; font-size: 0.85em; font-weight: 600; }

.tlt-note { margin: -0.75rem 0 1.25rem; color: var(--tlt-muted); }
.tlt-lic { margin-top: -0.25rem; }

.tlt-auth-tabs { display: flex; gap: .5rem; margin: 0 0 1rem; border-bottom: 1px solid var(--tlt-line); }
.tlt-auth-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: .5rem .25rem; margin-bottom: -1px; font: inherit; font-weight: 600; color: var(--tlt-muted); cursor: pointer; }
.tlt-auth-tab.is-active { color: var(--tlt-accent); border-bottom-color: var(--tlt-accent); }
.tlt-auth input { width: 100%; padding: .6rem .7rem; border: 1px solid var(--tlt-line); border-radius: 6px; font: inherit; color: inherit; background: #fff; }
.tlt-small { font-size: .9rem; margin: -.5rem 0 0; }
.tlt-small a { color: var(--tlt-accent); }

.tlt-skip { margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--tlt-line); }
.tlt-link { background: none; border: 0; padding: 0; font: inherit; color: var(--tlt-muted); text-decoration: underline; cursor: pointer; }
.tlt-link:hover { color: var(--tlt-accent); }
.tlt-complete-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--tlt-ok); position: relative; margin-bottom: 1rem; }
.tlt-complete-mark::after { content: ""; position: absolute; left: 17px; top: 14px; width: 16px; height: 9px; border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg); }

.tlt-mail-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--tlt-accent); position: relative; margin-bottom: 1rem; }
.tlt-mail-mark::after { content: ""; position: absolute; left: 14px; top: 17px; width: 24px; height: 16px; border: 2px solid #fff; border-radius: 2px; }
.tlt-claim input[readonly] { background: var(--tlt-soft); }

.tlt-pdf { position: relative; height: 80vh; min-height: 480px; border: 1px solid var(--tlt-line); border-radius: 6px; overflow: hidden; background: var(--tlt-soft); }
.tlt-pdf iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Theme guards: some themes number every <ol> and underline links with pseudo-elements. */
.tlt-app .tlt-steps ol > li::before,
.tlt-app .tlt-steps a::after,
.tlt-app .tlt-steps a::before { content: none !important; display: none !important; }
.tlt-app .tlt-steps ol > li { list-style: none !important; }

/* TFG theme: hide blog-only sections (Share this post, Related posts) on activity pages. */
body.single-tfg_course .share-post-box,
body.single-tfg_course .blog-post-related { display: none !important; }
