/* Tha-Shed Hub: Skool-style community layer (dark "Nocturne" palette). */
.ths-hub,
.ths-hub-navwrap,
.ths-lv-chip {
	--hub-bg: #0f1119;
	--hub-surface: #161927;
	--hub-surface-2: #1c2033;
	--hub-border: #262b3d;
	--hub-text: #e6edf3;
	--hub-muted: #8b96a5;
	--hub-accent: #9184d9;
	--hub-accent-2: #7264c9;
	--hub-accent-soft: rgba(145, 132, 217, 0.16);
	--hub-green: #3ecf8e;
	--hub-amber: #f5b342;
	--hub-red: #e5484d;
	--hub-radius: 14px;
	--hub-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-family: var(--hub-font);
	color: var(--hub-text);
	box-sizing: border-box;
}
.ths-hub *,
.ths-hub *::before,
.ths-hub *::after { box-sizing: inherit; }
.ths-hub { max-width: 1180px; margin: 0 auto; padding: 0 16px 56px; }
.ths-hub-navwrap { max-width: 1180px; margin: 0 auto 18px; padding: 0 16px; }
.ths-hub a { text-decoration: none; }
.ths-hub h1, .ths-hub h2, .ths-hub h3 { color: var(--hub-text); font-family: var(--hub-font); margin: 0 0 10px; line-height: 1.2; letter-spacing: -0.01em; }
.ths-hub h1 { font-size: 30px; font-weight: 800; }
.ths-hub h2 { font-size: 18px; font-weight: 700; }
.ths-hub h3 { font-size: 16px; font-weight: 700; }
.ths-hub p { margin: 0 0 10px; color: var(--hub-text); line-height: 1.55; }
.ths-muted { color: var(--hub-muted) !important; }
.ths-small { font-size: 13px; }
.ths-link { color: var(--hub-accent); font-weight: 600; }
.ths-link:hover { color: #b3a9ea; }

/* Hub page canvas */
body.ths-hub-page { background: #0f1119; }
body.ths-hub-page #content.site-content { background: #0f1119; padding: 0; margin: 0; }
body.ths-hub-page .ths-hub-main { background: var(--hub-bg, #0f1119); padding: 26px 0 40px; min-height: 60vh; }
body.ths-hub-page .ths-hub-main .ths-hub { padding-top: 0; }
body.ths-hub-page .ths-hub-page-content > p:empty { display: none; }

/* Nav bar */
.ths-hub-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius); padding: 8px 10px 8px 14px; margin-bottom: 22px; }
.ths-hub-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--hub-text) !important; white-space: nowrap; font-size: 15px; }
.ths-hub-brand-dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--hub-accent), #5ad1ff); box-shadow: 0 0 0 3px var(--hub-accent-soft); }
.ths-hub-tabs { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 auto 0 0; padding: 0; }
.ths-hub-tabs li { margin: 0; padding: 0; }
.ths-hub-tab { display: inline-block; padding: 8px 13px; border-radius: 10px; color: var(--hub-muted) !important; font-weight: 600; font-size: 14px; white-space: nowrap; transition: background 0.15s, color 0.15s; }
.ths-hub-tab:hover { color: var(--hub-text) !important; background: var(--hub-surface-2); }
.ths-hub-tab.is-active { color: #fff !important; background: var(--hub-accent-2); }
.ths-hub-nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.ths-hub-navwrap .ths-hub-nav { margin-bottom: 18px; }
/* If a theme/plugin wrapper is a flex row, the bar must still take the full width. */
.members-directory-wrapper > .ths-hub-navwrap, .activity-directory-wrapper > .ths-hub-navwrap, .bp-nouveau-container > .ths-hub-navwrap, #buddypress > .ths-hub-navwrap { flex: 0 0 100%; width: 100%; max-width: 100%; padding: 0; margin: 0 0 16px; }
#buddypress .ths-hub-nav, .tutor-wrap .ths-hub-nav { font-size: 14px; }
#buddypress .ths-hub-nav ul.ths-hub-tabs, #buddypress .ths-hub-nav ul.ths-hub-tabs li { margin: 0; padding: 0; list-style: none; }
.ths-hub-me { display: inline-flex; align-items: center; gap: 8px; color: var(--hub-muted) !important; font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 10px; }
.ths-hub-me:hover { background: var(--hub-surface-2); color: var(--hub-text) !important; }

/* Buttons */
.ths-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; line-height: 1.2; border: 1px solid transparent; cursor: pointer; font-family: var(--hub-font); transition: transform 0.12s, background 0.15s, border-color 0.15s; text-decoration: none !important; }
.ths-btn:active { transform: translateY(1px); }
.ths-btn-primary { background: var(--hub-accent); color: #fff !important; }
.ths-btn-primary:hover { background: #a297e6; color: #fff !important; }
.ths-btn-ghost { background: transparent; color: var(--hub-text) !important; border-color: var(--hub-border); }
.ths-btn-ghost:hover { border-color: var(--hub-accent); color: #fff !important; background: var(--hub-accent-soft); }
.ths-btn-sm { padding: 7px 12px; font-size: 13px; }
.ths-btn-xs { padding: 5px 10px; font-size: 12px; }
.ths-btn-lg { padding: 13px 24px; font-size: 15px; }
.ths-btn[disabled] { opacity: 0.6; cursor: wait; }
.ths-icon-btn { background: transparent; border: 1px solid var(--hub-border); color: var(--hub-muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 18px; line-height: 1; flex: 0 0 auto; }
.ths-icon-btn:hover { color: var(--hub-red); border-color: var(--hub-red); }

/* Layout bits */
.ths-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.ths-page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ths-card { background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius); padding: 20px 22px; margin-bottom: 18px; }
.ths-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ths-grid-2 .ths-card { margin-bottom: 0; }
.ths-grid-2 + .ths-grid-2 { margin-top: 18px; }
.ths-notice { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; border: 1px solid var(--hub-border); background: var(--hub-surface-2); font-size: 14px; }
.ths-notice-ok { border-color: rgba(62, 207, 142, 0.5); }
.ths-notice-warn { border-color: rgba(245, 179, 66, 0.6); }
.ths-notice-err { border-color: rgba(229, 72, 77, 0.6); }
.ths-empty { padding: 40px; text-align: center; border: 1px dashed var(--hub-border); border-radius: var(--hub-radius); color: var(--hub-muted); }
.ths-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.ths-chip { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--hub-border); color: var(--hub-muted) !important; font-size: 13px; font-weight: 600; }
.ths-chip:hover { color: var(--hub-text) !important; border-color: var(--hub-accent); }
.ths-chip.is-active { background: var(--hub-accent-soft); color: #fff !important; border-color: var(--hub-accent); }
.ths-search input { background: var(--hub-surface); border: 1px solid var(--hub-border); color: var(--hub-text); border-radius: 10px; padding: 9px 14px; min-width: 220px; font-family: var(--hub-font); }
.ths-search input:focus { outline: none; border-color: var(--hub-accent); }
.ths-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; background: var(--hub-surface-2); color: var(--hub-muted); border: 1px solid var(--hub-border); }
.ths-tag-level { position: absolute; top: 10px; left: 10px; background: rgba(15, 17, 25, 0.8); color: #fff; border-color: transparent; }
.ths-tag-publish { color: var(--hub-green); }
.ths-tag-pending { color: var(--hub-amber); }
.ths-pagination { margin-top: 22px; }
.ths-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; justify-content: center; }
.ths-pagination .page-numbers { display: inline-block; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--hub-border); color: var(--hub-muted); }
.ths-pagination .page-numbers.current { background: var(--hub-accent); color: #fff; border-color: var(--hub-accent); }
.ths-progress { height: 8px; background: var(--hub-surface-2); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.ths-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--hub-accent), #5ad1ff); border-radius: 999px; }
.ths-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ths-table th, .ths-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hub-border); color: var(--hub-text); vertical-align: middle; }
.ths-table th { color: var(--hub-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.ths-table-actions { white-space: nowrap; }
.ths-table-actions .ths-link + .ths-link { margin-left: 10px; }
.ths-checks, .ths-rules, .ths-links { margin: 0; padding: 0; }
.ths-checks li { list-style: none; padding: 6px 0 6px 26px; position: relative; color: var(--hub-text); }
.ths-checks li::before { content: "\2713"; position: absolute; left: 4px; color: var(--hub-green); font-weight: 800; }
.ths-rules { padding-left: 20px; }
.ths-rules li { padding: 5px 0; color: var(--hub-text); }
.ths-links li { list-style: none; border-top: 1px solid var(--hub-border); }
.ths-links li:first-child { border-top: 0; }
.ths-links a { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; color: var(--hub-text) !important; }
.ths-links a span { color: var(--hub-muted); font-size: 13px; }
.ths-links a:hover strong { color: var(--hub-accent); }

/* Hero (About, Teach) */
.ths-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; background: radial-gradient(1200px 400px at 10% -20%, rgba(145, 132, 217, 0.25), transparent 60%), var(--hub-surface); border: 1px solid var(--hub-border); border-radius: 20px; padding: 36px 32px; margin-bottom: 18px; }
.ths-hero-teach { grid-template-columns: 1fr; }
.ths-eyebrow { color: var(--hub-accent); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px !important; }
.ths-hero h1 { font-size: 38px; margin-bottom: 8px; }
.ths-lead { font-size: 17px; color: var(--hub-muted) !important; max-width: 60ch; }
.ths-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.ths-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ths-stat { background: var(--hub-bg); border: 1px solid var(--hub-border); border-radius: 12px; padding: 16px 12px; text-align: center; }
.ths-stat strong { display: block; font-size: 26px; font-weight: 800; color: var(--hub-text); }
.ths-stat span { color: var(--hub-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.ths-ladder-mini { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 14px; }
.ths-ladder-mini li { display: flex; align-items: center; gap: 8px; color: var(--hub-muted); font-size: 13px; }

/* Level badges */
.ths-lv-wrap { position: relative; display: inline-block; line-height: 0; vertical-align: middle; }
.ths-lv-wrap > img { display: block; }
.ths-lv-badge { position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #9184d9; color: #fff; font: 700 11px/20px Inter, system-ui, sans-serif; text-align: center; border: 2px solid #fff; box-sizing: content-box; z-index: 2; letter-spacing: 0; text-decoration: none; }
.ths-lv-badge-inline { position: static; display: inline-block; vertical-align: middle; border-color: transparent; box-sizing: border-box; padding: 0 6px; }
.ths-lv-badge-lg { min-width: 30px; height: 30px; font-size: 15px; line-height: 30px; border-radius: 15px; right: -2px; bottom: -2px; }
.ths-lv-wrap-lg > img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
body.bp-user .ths-lv-badge, body.ths-hub-page .ths-lv-badge, .ths-hub .ths-lv-badge { border-color: #161927; }
.ths-lv-chip { display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 4px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--hub-surface); border: 1px solid var(--hub-border); color: var(--hub-text) !important; font-size: 13px; font-weight: 600; font-family: var(--hub-font); }
.ths-lv-chip-sep { color: var(--hub-muted); }
.ths-lv-chip-muted { color: var(--hub-muted); font-weight: 500; }
.ths-lv-chip:hover { border-color: var(--hub-accent); }

/* Classroom */
.ths-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.ths-course-card { background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s, border-color 0.15s; }
.ths-course-card:hover { transform: translateY(-2px); border-color: var(--hub-accent); }
.ths-course-card[hidden] { display: none; }
.ths-course-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--hub-surface-2); overflow: hidden; }
.ths-course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ths-course-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-size: 56px; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 250) 45% 38%), hsl(calc(var(--h, 250) + 40) 55% 22%)); }
.ths-course-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(15, 17, 25, 0.6); }
.ths-course-progress i { display: block; height: 100%; background: var(--hub-green); }
.ths-lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(15, 17, 25, 0.72); color: #fff; font-weight: 700; font-size: 14px; backdrop-filter: blur(2px); }
.ths-lock-icon { font-size: 20px; }
.ths-course-card.is-locked .ths-course-cover img, .ths-course-card.is-locked .ths-course-placeholder { filter: grayscale(0.7); }
.ths-course-card.is-locked h3 a { color: var(--hub-muted) !important; cursor: default; }
.ths-course-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ths-course-body h3 { margin: 0; font-size: 16px; }
.ths-course-body h3 a { color: var(--hub-text) !important; }
.ths-course-body h3 a:hover { color: var(--hub-accent) !important; }
.ths-course-body p { color: var(--hub-muted); font-size: 13px; margin: 0; line-height: 1.5; }
.ths-course-meta { color: var(--hub-muted); font-size: 12px; margin-top: auto; }
.ths-course-body .ths-btn { align-self: flex-start; margin-top: 4px; }

/* Calendar */
.ths-cal-layout { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.ths-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius); padding: 10px; }
.ths-cal-dow { color: var(--hub-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; padding: 6px 0; font-weight: 700; }
.ths-cal-cell { min-height: 92px; background: var(--hub-bg); border: 1px solid var(--hub-border); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 3px; }
.ths-cal-cell.is-out { opacity: 0.45; }
.ths-cal-cell.is-today { border-color: var(--hub-accent); box-shadow: inset 0 0 0 1px var(--hub-accent); }
.ths-cal-daynum { font-size: 12px; font-weight: 700; color: var(--hub-muted); }
.ths-cal-cell.is-today .ths-cal-daynum { color: var(--hub-accent); }
.ths-cal-item { display: block; font-size: 11.5px; line-height: 1.3; color: var(--hub-text) !important; background: var(--hub-accent-soft); border-left: 3px solid var(--hub-accent); border-radius: 4px; padding: 3px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ths-cal-item:hover { background: var(--hub-accent-2); color: #fff !important; }
.ths-cal-item-time { color: var(--hub-muted); font-weight: 600; }
.ths-cal-item:hover .ths-cal-item-time { color: #eee; }
.ths-cal-more { font-size: 11px; color: var(--hub-muted); }
.ths-month-nav { display: flex; align-items: center; gap: 12px; }
.ths-month-nav strong { min-width: 150px; text-align: center; font-size: 16px; }
.ths-cal-side .ths-card { margin-bottom: 14px; }
.ths-upcoming { list-style: none; margin: 0; padding: 0; }
.ths-upcoming li { border-top: 1px solid var(--hub-border); }
.ths-upcoming li:first-child { border-top: 0; }
.ths-upcoming a { display: flex; flex-direction: column; padding: 9px 0; color: var(--hub-text) !important; }
.ths-upcoming a span { color: var(--hub-muted); font-size: 12.5px; }
.ths-upcoming a:hover strong { color: var(--hub-accent); }
.ths-ev-add summary { cursor: pointer; font-weight: 700; color: var(--hub-accent); list-style: none; }
.ths-ev-add summary::-webkit-details-marker { display: none; }
.ths-ev-add[open] summary { margin-bottom: 12px; }
.ths-ev-list { margin-top: 24px; }
.ths-ev-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; background: var(--hub-surface); border: 1px solid var(--hub-border); border-radius: var(--hub-radius); padding: 18px 20px; margin-bottom: 12px; scroll-margin-top: 90px; }
.ths-ev-card:target { border-color: var(--hub-accent); box-shadow: 0 0 0 3px var(--hub-accent-soft); }
.ths-ev-card.is-past { opacity: 0.6; }
.ths-ev-date { text-align: center; background: var(--hub-bg); border: 1px solid var(--hub-border); border-radius: 12px; padding: 10px 4px; align-self: start; }
.ths-ev-day { display: block; font-size: 26px; font-weight: 800; line-height: 1; }
.ths-ev-mon { display: block; font-size: 12px; text-transform: uppercase; color: var(--hub-accent); font-weight: 700; margin-top: 4px; }
.ths-ev-main h3 { margin-bottom: 4px; }
.ths-ev-when { color: var(--hub-muted) !important; font-size: 13.5px; margin-bottom: 2px; }
.ths-ev-host { color: var(--hub-muted) !important; font-size: 13px; }
.ths-ev-desc { color: var(--hub-text); font-size: 14px; margin: 8px 0 4px; }
.ths-ev-desc p { color: var(--hub-text); }
.ths-ev-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }

/* Leaderboards */
.ths-lb-layout { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
.ths-me-top { display: flex; align-items: center; gap: 16px; }
.ths-me-name { font-size: 18px; display: block; }
.ths-me-level { color: var(--hub-accent); font-weight: 800; font-size: 15px; }
.ths-ladder { list-style: none; margin: 0; padding: 0; }
.ths-ladder li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-top: 1px solid var(--hub-border); border-radius: 8px; }
.ths-ladder li:first-child { border-top: 0; }
.ths-ladder li.is-me { background: var(--hub-accent-soft); }
.ths-ladder-main { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.ths-ladder-unlocks { font-size: 12.5px; color: var(--hub-muted); }
.ths-ladder-unlocks a { color: var(--hub-accent); margin-left: 4px; }
.ths-lb-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ths-lb-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 8px 6px; border-top: 1px solid var(--hub-border); border-radius: 8px; }
.ths-lb-row:first-child { border-top: 0; }
.ths-lb-row.is-me { background: var(--hub-accent-soft); }
.ths-lb-pos { font-weight: 800; color: var(--hub-muted); text-align: center; }
.ths-lb-row.is-top .ths-lb-pos { color: var(--hub-amber); }
.ths-lb-user { display: flex; align-items: center; gap: 10px; color: var(--hub-text) !important; min-width: 0; }
.ths-lb-user img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.ths-lb-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ths-lb-user:hover .ths-lb-name { color: var(--hub-accent); }
.ths-lb-pts { font-weight: 800; color: var(--hub-green); }
.ths-lb-you { margin: 10px 0 0; color: var(--hub-muted); font-size: 13px; }

/* Forms (calendar add, teach) */
.ths-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--hub-muted); margin-bottom: 12px; }
.ths-form input[type="text"], .ths-form input[type="url"], .ths-form input[type="date"], .ths-form input[type="datetime-local"], .ths-form input[type="number"], .ths-form select, .ths-form textarea { width: 100%; background: var(--hub-bg); border: 1px solid var(--hub-border); color: var(--hub-text); border-radius: 10px; padding: 10px 12px; font-family: var(--hub-font); font-size: 14px; font-weight: 400; }
.ths-form input:focus, .ths-form select:focus, .ths-form textarea:focus { outline: none; border-color: var(--hub-accent); box-shadow: 0 0 0 3px var(--hub-accent-soft); }
.ths-form textarea { resize: vertical; }
.ths-form input[type="file"] { color: var(--hub-muted); }
.ths-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.ths-form .ths-radios label { flex-direction: row; align-items: center; gap: 8px; color: var(--hub-text); font-weight: 500; }
.ths-file img { max-width: 260px; border-radius: 10px; border: 1px solid var(--hub-border); }
.ths-step { border-top: 1px solid var(--hub-border); padding-top: 18px; margin-top: 18px; }
.ths-step:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.ths-step-num { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--hub-accent); color: #fff; align-items: center; justify-content: center; font-size: 13px; margin-right: 6px; }
.ths-ai-panel { background: var(--hub-bg); border: 1px dashed var(--hub-accent); border-radius: 12px; padding: 16px 18px; }
.ths-ai-panel #ths-ai-status { margin-left: 10px; }
.ths-module { border: 1px solid var(--hub-border); border-radius: 12px; padding: 14px; margin: 0 0 12px; background: var(--hub-bg); }
.ths-module-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ths-module-label { color: var(--hub-accent); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.ths-module-head input { flex: 1; }
.ths-lesson { border-top: 1px solid var(--hub-border); padding: 10px 0; }
.ths-lesson-row { display: grid; grid-template-columns: 26px 1.2fr 1fr 32px; gap: 8px; align-items: center; margin-bottom: 6px; }
.ths-lesson-n { color: var(--hub-muted); font-weight: 700; font-size: 12px; text-align: center; }
.ths-form .ths-lesson-notes { font-size: 13px; }
.ths-created { border-color: var(--hub-green); }

/* Responsive */
@media (max-width: 900px) {
	.ths-hero, .ths-grid-2, .ths-cal-layout, .ths-lb-layout { grid-template-columns: 1fr; }
	.ths-hero { padding: 26px 20px; }
	.ths-hero h1 { font-size: 30px; }
	.ths-hub-tabs { order: 3; width: 100%; margin: 4px 0 0; }
	.ths-cal-cell { min-height: 64px; padding: 4px; }
	.ths-cal-item { font-size: 10px; padding: 2px 4px; }
	.ths-lesson-row { grid-template-columns: 22px 1fr 32px; }
	.ths-lesson-row .ths-lesson-video { grid-column: 2 / span 2; }
	.ths-ev-card { grid-template-columns: 60px 1fr; gap: 12px; padding: 14px; }
	.ths-table th:nth-child(3), .ths-table td:nth-child(3), .ths-table th:nth-child(4), .ths-table td:nth-child(4) { display: none; }
}

/* 1.1.3: single course pages. Tutor's tutor_course/single/before/wrap hook prints the nav INSIDE the Reign
   theme's flex row (.wb-grid.site-content-grid) as a sibling of .tutor-wrap, so the two shared the width
   50/50 and the course sidebar was crushed. Give the nav a full-width row of its own and let the course
   wrap take the rest (next to a theme sidebar when one is present). */
body.single-courses .site-content-grid { flex-wrap: wrap; }
body.single-courses .site-content-grid > .ths-hub-navwrap { flex: 0 0 100%; width: 100%; max-width: 100%; margin: 0 0 24px; }
body.single-courses .site-content-grid > .tutor-wrap { flex: 1 1 0%; min-width: 0; width: auto; }
