/* Smart Training — follows the SmartSchools design standard (kit tokens, site accent). */
:root {
	--sstr-accent: var(--sx-teal, var(--accent, #15294d));
	--sstr-ink: var(--sx-ink, #14262d);
	--sstr-muted: var(--sx-muted, #52666e);
	--sstr-line: var(--sx-line, #dfe5e8);
	--sstr-strip: var(--sx-strip, #f2f5f6);
	--sstr-blue: var(--sx-blue, #14a8dc);
	--sstr-blue-2: var(--sx-blue-2, #0f93c2);
	--sstr-green: #1f7a4d;
	--sstr-green-bg: #e3f4ea;
	--sstr-amber: #8a5a00;
	--sstr-amber-bg: #fff3d6;
	--sstr-red: #b42318;
	--sstr-red-bg: #fdecea;
	--sstr-font: var(--sx-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.sstr-page, .sstr-modal, .sstr-fab-wrap, .sstr-nudge, .sstr-help-link { font-family: var(--sstr-font); color: var(--sstr-ink); }
.sstr-page *, .sstr-modal * { box-sizing: border-box; }

/* Page head, tiles, cards (kit look) */
.sstr-page-head { margin: 0 0 16px; }
.sstr-kicker { margin: 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sstr-muted); font-weight: 600; }
.sstr-title { margin: 2px 0 4px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--sstr-accent); font-family: var(--sstr-font); }
.sstr-sub { margin: 0; font-size: 13px; color: var(--sstr-muted); line-height: 1.5; }
.sstr-section-head { margin: 0 0 12px; }
.sstr-section-title { margin: 0; font-size: 20px; font-weight: 700; color: var(--sstr-accent); font-family: var(--sstr-font); }
.sstr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 0 0 14px; }
.sstr-tile { background: #fff; border: 1px solid var(--sstr-line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.sstr-tile.is-dark { background: var(--sstr-accent); border-color: var(--sstr-accent); color: #fff; }
.sstr-tile-label { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; opacity: .8; }
.sstr-tile-n { font-size: 26px; font-weight: 700; line-height: 1.1; }
.sstr-card { background: #fff; border: 1px solid var(--sstr-line); border-radius: 8px; padding: 16px; margin: 0 0 14px; }
.sstr-empty { text-align: center; padding: 28px 16px; }
.sstr-back { margin: 0 0 8px; font-size: 13px; }
.sstr-back a { color: var(--sstr-accent); text-decoration: none; }
.sstr-flash { background: var(--sstr-green-bg); color: var(--sstr-green); border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; }
.sstr-flash.is-bad { background: var(--sstr-red-bg); color: var(--sstr-red); }
.sstr-inline-help { display: inline-flex; align-items: center; gap: 3px; color: var(--sstr-accent); font-weight: 600; white-space: nowrap; }
.sstr-inline-help .sstr-ico { width: 14px; height: 14px; }

/* Search */
.sstr-search { display: flex; align-items: center; gap: 8px; height: 38px; border: 1px solid var(--sstr-line); border-radius: 6px; padding: 0 10px; background: #fff; margin: 0 0 14px; color: var(--sstr-muted); }
.sstr-search:focus-within { border-color: var(--sstr-accent); box-shadow: 0 0 0 3px rgba(21, 41, 77, .1); }
.sstr-search input { border: 0 !important; outline: 0; box-shadow: none !important; flex: 1; height: 36px; font-size: 14px; background: transparent; padding: 0 !important; margin: 0; font-family: var(--sstr-font); color: var(--sstr-ink); }

/* Paths and lists */
.sstr-path-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sstr-path-name { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--sstr-ink); }
.sstr-bar { height: 6px; background: var(--sstr-strip); border-radius: 999px; margin: 10px 0 6px; overflow: hidden; }
.sstr-bar span { display: block; height: 100%; background: var(--sstr-accent); border-radius: 999px; }
.sstr-list { list-style: none; margin: 6px 0 0; padding: 0; }
.sstr-list li { border-top: 1px solid var(--sstr-line); margin: 0; }
.sstr-list li:first-child { border-top: 0; }
.sstr-list a { display: flex; align-items: center; gap: 10px; padding: 11px 2px; color: var(--sstr-ink); text-decoration: none; min-height: 44px; }
.sstr-list a:hover .sstr-list-title { color: var(--sstr-accent); }
.sstr-list-ico { color: var(--sstr-muted); display: inline-flex; }
.sstr-list-ico.is-seen { color: var(--sstr-green); }
.sstr-list-title { flex: 1; font-size: 14px; }
.sstr-list-meta { font-size: 12px; color: var(--sstr-muted); font-variant-numeric: tabular-nums; }
.sstr-none { color: var(--sstr-muted); font-size: 14px; }

/* Chips and buttons */
.sstr-chip { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 600; background: var(--sstr-strip); color: var(--sstr-accent); white-space: nowrap; }
.sstr-chip.is-ok { background: var(--sstr-green-bg); color: var(--sstr-green); }
.sstr-chip.is-warn { background: var(--sstr-amber-bg); color: var(--sstr-amber); }
.sstr-chip.is-bad { background: var(--sstr-red-bg); color: var(--sstr-red); }
.sstr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--sstr-line); background: #fff; color: var(--sstr-ink); font: 600 14px/1 var(--sstr-font); cursor: pointer; text-decoration: none; }
.sstr-btn:hover { border-color: var(--sstr-accent); }
.sstr-btn.is-primary { background: var(--sstr-blue); border-color: var(--sstr-blue); color: #fff; }
.sstr-btn.is-primary:hover { background: var(--sstr-blue-2); border-color: var(--sstr-blue-2); }
.sstr-btn[disabled] { opacity: .7; cursor: default; }
.sstr-wide { width: 100%; }
.sstr-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: transparent; color: var(--sstr-muted); border-radius: 6px; cursor: pointer; padding: 0; }
.sstr-icon-btn:hover, .sstr-icon-btn.is-on { color: var(--sstr-accent); background: var(--sstr-strip); }
.sstr-ico { flex: none; }

/* Inline "Watch how" link placed next to a screen element */
.sstr-help-link { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 4px 8px; padding: 2px 6px; border: 0; background: transparent; color: var(--sstr-accent); font: 600 13px/1.4 var(--sstr-font); cursor: pointer; border-radius: 6px; vertical-align: middle; }
.sstr-help-link:hover { background: var(--sstr-strip); }
.sstr-help-link .sstr-ico { width: 16px; height: 16px; }

/* Floating Help button */
.sstr-fab-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 99990; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sstr-fab { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sstr-line); background: #fff; color: var(--sstr-accent); font: 600 14px/1 var(--sstr-font); cursor: pointer; box-shadow: 0 2px 8px rgba(20, 38, 45, .12); }
.sstr-fab-menu { width: min(320px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--sstr-line); border-radius: 8px; padding: 10px; box-shadow: 0 8px 24px rgba(20, 38, 45, .14); }
.sstr-fab-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 6px; border: 0; background: transparent; text-align: left; font: 14px/1.3 var(--sstr-font); color: var(--sstr-ink); cursor: pointer; border-radius: 6px; min-height: 40px; }
.sstr-fab-menu button:hover { background: var(--sstr-strip); }
.sstr-fab-menu button span { flex: 1; }
.sstr-fab-menu button em { font-style: normal; font-size: 12px; color: var(--sstr-muted); }
.sstr-fab-menu .sstr-ico { color: var(--sstr-accent); }
.sstr-fab-all { display: block; padding: 8px 6px 2px; font-size: 13px; color: var(--sstr-accent); text-decoration: none; border-top: 1px solid var(--sstr-line); margin-top: 6px; }

/* First-visit hint */
.sstr-nudge { position: fixed; right: 16px; bottom: 68px; z-index: 99991; width: min(320px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--sstr-line); border-left: 4px solid var(--sstr-accent); border-radius: 0; padding: 12px 14px; box-shadow: 0 8px 24px rgba(20, 38, 45, .14); font-size: 14px; }
.sstr-nudge p { margin: 0; }
.sstr-nudge-actions { display: flex; gap: 8px; margin-top: 10px !important; }

/* Pop-up: centred on desktop, bottom sheet on phones */
html.sstr-lock { overflow: hidden; }
.sstr-modal { position: fixed; inset: 0; z-index: 99999; background: rgba(10, 20, 26, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sstr-sheet { background: #fff; border-radius: 8px; width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; overflow: hidden; }
.sstr-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 8px 16px; border-bottom: 1px solid var(--sstr-line); }
.sstr-sheet-head h2 { margin: 0; font: 700 17px/1.3 var(--sstr-font); color: var(--sstr-accent); }
.sstr-sheet-body { padding: 14px 16px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 600px) {
	.sstr-modal { align-items: flex-end; padding: 0; }
	.sstr-sheet { width: 100%; max-height: 92vh; border-radius: 12px 12px 0 0; }
}

/* Guide body */
.sstr-video { position: relative; background: var(--sstr-strip); border-radius: 8px; overflow: hidden; margin: 0 0 6px; }
.sstr-video video { display: block; width: 100%; max-height: 60vh; background: #000; }
.sstr-video.is-embed { aspect-ratio: 16 / 9; }
.sstr-video.is-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sstr-meta { margin: 0 0 12px; font-size: 12px; color: var(--sstr-muted); }
.sstr-steps { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.sstr-steps ol, .sstr-steps ul { margin: 0 0 0 20px; padding: 0; }
.sstr-steps li { margin: 0 0 4px; }
.sstr-steps p { margin: 0 0 8px; }
.sstr-steps img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--sstr-line); }
.sstr-note { background: var(--sstr-strip); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.sstr-note-label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; color: var(--sstr-muted); margin-bottom: 2px; }
.sstr-label { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--sstr-muted); display: block; }
.sstr-faq { border-top: 1px solid var(--sstr-line); padding-top: 10px; margin: 0 0 12px; }
.sstr-faq details { border-bottom: 1px solid var(--sstr-line); padding: 8px 0; }
.sstr-faq summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.sstr-faq details p { margin: 6px 0 0; font-size: 14px; color: var(--sstr-muted); }
.sstr-vote { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--sstr-muted); margin: 0 0 12px; min-height: 36px; }
.sstr-vote-btns { display: inline-flex; gap: 4px; }
.sstr-ask { margin: 0 0 10px; }
.sstr-ask-form textarea { width: 100%; border: 1px solid var(--sstr-line); border-radius: 6px; padding: 8px 10px; font: 14px/1.4 var(--sstr-font); color: var(--sstr-ink); margin: 0 0 6px; resize: vertical; }
.sstr-ask-form textarea:focus { outline: 0; border-color: var(--sstr-accent); box-shadow: 0 0 0 3px rgba(21, 41, 77, .1); }
.sstr-hint { margin: 0 0 10px; font-size: 12px; color: var(--sstr-muted); }
.sstr-error { margin: 0 0 8px; font-size: 13px; color: var(--sstr-red); }
.sstr-ok { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--sstr-green-bg); color: var(--sstr-green); font-size: 14px; }
.sstr-foot { margin: 6px 0 0; font-size: 11px; color: var(--sstr-muted); text-align: center; }
.sstr-page [hidden], .sstr-modal [hidden], .sstr-fab-wrap [hidden] { display: none !important; }
