/* ==========================================================================
   robotix-ui.css – Robotix LMS 2026 (child of TutorStarter)
   Generated from the final mockups (design/final/mockups) + the hand-written layer at the end.
   Every class is prefixed rx-; page rules are scoped by .rx-pg-* so nothing leaks into Tutor / Elementor.
   Tokens (colors, sizes) live in tokens.css.
   ========================================================================== */

/* ---- Heebo: local, variable (wght 100-900), hebrew + latin subsets ---- */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/heebo-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;
}

/* ---- Map the design to the parent theme, Tutor and the Elementor Kit (loaded after all of them) ---- */
:root {
  --body-font: var(--rx-font);
  --heading-font: var(--rx-font);
  --body-font-size: 18px;
  --body-font-size-tablet: 18px;
  --body-font-size-mobile: 18px;
  --tutor-color-primary: var(--rx-primary);
  --tutor-color-primary-rgb: 123, 44, 191;
  --tutor-color-primary-hover: var(--rx-primary-hover);
  --tutor-color-primary-hover-rgb: 106, 36, 168;
  --tutor-body-color: var(--rx-text);
  --tutor-body-color-rgb: 30, 26, 46;
  --tutor-border-color: var(--rx-border-strong);
  --tutor-color-gray: var(--rx-tint-2);
  --tutor-color-success: var(--rx-success);
  --e-global-color-primary: var(--rx-primary);
  --e-global-color-secondary: var(--rx-primary-deep);
  --e-global-color-text: var(--rx-text);
  --e-global-color-accent: var(--rx-accent);
  --e-global-typography-primary-font-family: "Heebo";
  --e-global-typography-secondary-font-family: "Heebo";
  --e-global-typography-text-font-family: "Heebo";
  --e-global-typography-accent-font-family: "Heebo";
}
html body, html body button, html body input, html body select, html body textarea { font-family: var(--rx-font); }
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 { font-family: var(--rx-font); }
html body { font-size: var(--rx-fs-body); line-height: var(--rx-lh-body); color: var(--rx-text); background: var(--rx-bg); }

/* ===== shared components (from mockups/tokens.css) ===== */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-block: 96px; }
body { margin: 0; font-family: var(--rx-font); font-size: var(--rx-fs-body); line-height: var(--rx-lh-body); color: var(--rx-text); background: var(--rx-bg); direction: rtl; overflow-wrap: break-word; }
:where(.rx-ui) img,
:where(.rx-ui) svg { max-width: 100%; display: block; }
:where(.rx-ui) h1,
:where(.rx-ui) h2,
:where(.rx-ui) h3,
:where(.rx-ui) h4,
:where(.rx-ui) p,
:where(.rx-ui) ul,
:where(.rx-ui) ol,
:where(.rx-ui) figure,
:where(.rx-ui) blockquote { margin: 0; }
:where(.rx-ui) ul,
:where(.rx-ui) ol { padding: 0; list-style: none; }
:where(.rx-ui) a { color: var(--rx-primary); text-underline-offset: 3px; }
:where(.rx-ui) button,
:where(.rx-ui) input,
:where(.rx-ui) select,
:where(.rx-ui) textarea { font: inherit; color: inherit; }
:where(.rx-ui) button { cursor: pointer; }
:where(.rx-ui) bdi,
.rx-ltr { unicode-bidi: isolate; }
.rx-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rx-icon-sm { width: 18px; height: 18px; }
html[dir="rtl"] .rx-i-flip { transform: scaleX(-1); }
.rx-sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rx-container { width: 100%; max-width: var(--rx-container); margin-inline: auto; padding-inline: var(--rx-s6); }
@media (max-width: 600px) {
  .rx-container { padding-inline: var(--rx-s4); }
}
:focus-visible { outline: 3px solid var(--rx-focus); outline-offset: 2px; box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(255, 255, 255, .92); border-radius: 4px; }
.rx-btn:focus-visible { border-radius: var(--rx-r-pill); }
/* Yellow ring ONLY on dark surfaces (on white it is ~1.6:1). The header nav is white on desktop and dark only in the mobile drawer (see the 900px block). */
.rx-on-dark :focus-visible,
.rx-site-footer :focus-visible,
.rx-mnav :focus-visible { outline-color: var(--rx-focus-on-dark); box-shadow: 0 0 0 2px var(--rx-primary-ink); }
.rx-skip-links { position: absolute; inset-inline-start: 16px; top: 0; z-index: 1000; display: flex; gap: 8px; }
.rx-skip-link { position: absolute; inset-inline-start: 0; top: -120px; white-space: nowrap; background: var(--rx-primary-ink); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--rx-r-field) var(--rx-r-field); font-weight: 700; text-decoration: none; }
.rx-skip-link:focus { top: 0; }
.rx-skip-link:nth-child(2):focus { top: 0; }
:where(.rx-ui) h1,
:where(.rx-ui) h2,
:where(.rx-ui) h3,
:where(.rx-ui) h4 { line-height: var(--rx-lh-tight); font-weight: 700; color: var(--rx-text); text-wrap: balance; }
.rx-h-display { font-size: var(--rx-fs-hero); }
.rx-h1 { font-size: var(--rx-fs-h1); }
.rx-h2 { font-size: var(--rx-fs-h2); }
.rx-h3 { font-size: var(--rx-fs-h3); line-height: var(--rx-lh-snug); }
.rx-lead { font-size: var(--rx-fs-lead); color: var(--rx-text-muted); line-height: var(--rx-lh-read); }
.rx-muted { color: var(--rx-text-muted); }
:where(.rx-ui) p { text-wrap: pretty; }
@media (max-width: 600px) {
  .rx-h-display { font-size: 32px; }
  .rx-h1 { font-size: 28px; }
  .rx-h2 { font-size: 24px; }
  .rx-lead { font-size: var(--rx-fs-body); }
}
.rx-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--rx-s2); min-height: var(--rx-btn-h); padding: 10px 24px; border: 2px solid transparent; border-radius: var(--rx-r-pill); font-weight: 700; font-size: var(--rx-fs-sm); line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: background var(--rx-dur) var(--rx-ease), border-color var(--rx-dur) var(--rx-ease), box-shadow var(--rx-dur) var(--rx-ease), transform var(--rx-dur) var(--rx-ease); }
.rx-btn-sm { min-height: var(--rx-touch); padding: 8px 18px; }
.rx-btn-lg { min-height: var(--rx-btn-h-lg); padding: 14px 32px; font-size: var(--rx-fs-body); }
.rx-btn-block { display: flex; width: 100%; }
.rx-btn-primary { background: var(--rx-primary); color: #fff; }
.rx-btn-secondary { background: var(--rx-surface); color: var(--rx-primary); border-color: var(--rx-primary); }
.rx-btn-ghost { background: transparent; color: var(--rx-primary); }
.rx-btn-cta { background: var(--rx-cta); color: var(--rx-on-cta); box-shadow: 0 6px 18px rgba(255, 197, 61, .28); }
.rx-btn-outline-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .85); }
.rx-btn .rx-icon { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .rx-btn-primary:hover { background: var(--rx-primary-hover); box-shadow: var(--rx-sh-md); }
  .rx-btn-secondary:hover { background: var(--rx-tint); }
  .rx-btn-ghost:hover { background: var(--rx-tint); }
  .rx-btn-cta:hover { background: var(--rx-cta-hover); box-shadow: 0 10px 24px rgba(255, 197, 61, .38); }
  .rx-btn-outline-light:hover { background: rgba(255, 255, 255, .16); }
  .rx-btn:hover .rx-icon-arrow { transform: translateX(-4px); }
}
.rx-btn .rx-icon-arrow { transition: transform var(--rx-dur) var(--rx-ease); }
.rx-chips { display: flex; flex-wrap: wrap; gap: var(--rx-s2); }
.rx-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: var(--rx-r-pill); background: var(--rx-tint); color: var(--rx-primary-press); font-size: var(--rx-fs-label); font-weight: 500; line-height: 1.3; }
:where(.rx-ui) a.rx-chip-filter,
.rx-chip-filter { min-height: var(--rx-touch); padding: 8px 18px; font-size: var(--rx-fs-sm); background: var(--rx-surface); color: var(--rx-text); border: 1.5px solid var(--rx-border-strong); text-decoration: none; font-weight: 500; gap: 8px; transition: background var(--rx-dur) var(--rx-ease), border-color var(--rx-dur) var(--rx-ease); }
.rx-chip-filter small { font-size: var(--rx-fs-label); color: var(--rx-text-muted); font-weight: 400; }
.rx-chip-filter[aria-current="true"] { background: var(--rx-primary); color: #fff; border-color: var(--rx-primary); font-weight: 700; }
.rx-chip-filter[aria-current="true"] small { color: var(--rx-on-dark-muted); }
.rx-chip-filter .rx-icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  :where(.rx-ui) a.rx-chip-filter:hover { background: var(--rx-tint); border-color: var(--rx-primary); }
  .rx-chip-filter[aria-current="true"]:hover { background: var(--rx-primary-hover); }
}
.rx-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 14px; border-radius: var(--rx-r-pill); background: var(--rx-tint); color: var(--rx-primary-deep); font-size: var(--rx-fs-sm); font-weight: 700; }
.rx-course-card { position: relative; display: flex; flex-direction: column; background: var(--rx-surface); border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); overflow: hidden; box-shadow: var(--rx-sh-sm); transition: transform var(--rx-dur) var(--rx-ease), box-shadow var(--rx-dur) var(--rx-ease), border-color var(--rx-dur) var(--rx-ease); }
.rx-cc-media { display: block; aspect-ratio: 16 / 9; background: var(--rx-tint-2); overflow: hidden; }
.rx-cc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--rx-dur-slow) var(--rx-ease); }
.rx-cc-body { display: flex; flex-direction: column; gap: var(--rx-s3); padding: var(--rx-s4) var(--rx-s4) var(--rx-s2); flex: 1; }
.rx-cc-title { font-size: var(--rx-fs-body); line-height: var(--rx-lh-snug); font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.35em); }
.rx-cc-foot { padding: var(--rx-s2) var(--rx-s4) var(--rx-s4); display: grid; gap: var(--rx-s2); }
.rx-cc-foot .rx-stretch::after { content: ""; position: absolute; inset: 0; }
.rx-course-card:has(.rx-stretch:focus-visible) { outline: 3px solid var(--rx-focus); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; }
.rx-course-card .rx-stretch:focus-visible { outline: 0; box-shadow: none; }
.rx-cc-progress { display: grid; gap: 6px; }
.rx-cc-progress p { font-size: var(--rx-fs-sm); color: var(--rx-text-muted); }
.rx-bar { height: 10px; border-radius: var(--rx-r-pill); background: var(--rx-tint-2); overflow: hidden; }
.rx-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--rx-primary); }
@media (hover: hover) and (pointer: fine) {
  .rx-course-card:hover { transform: translateY(-4px); box-shadow: var(--rx-sh-lg); border-color: var(--rx-accent); }
  .rx-course-card:hover .rx-cc-media img { transform: scale(1.04); }
}
.rx-section { padding-block: var(--rx-s20); }
.rx-section-head { display: grid; gap: var(--rx-s3); max-width: 680px; margin-bottom: var(--rx-s10); }
.rx-section-head .rx-eyebrow { color: var(--rx-primary); font-weight: 700; font-size: var(--rx-fs-sm); }
.rx-on-dark .rx-section-head .rx-eyebrow,
.rx-on-dark .rx-eyebrow { color: var(--rx-cta); }
@media (max-width: 600px) {
  .rx-section { padding-block: var(--rx-s12); }
  .rx-section-head { margin-bottom: var(--rx-s6); }
}
.rx-crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: var(--rx-fs-sm); color: var(--rx-text-muted); }
.rx-crumbs a { color: inherit; display: inline-flex; min-height: var(--rx-touch); align-items: center; padding-inline: 4px; }
.rx-on-dark .rx-crumbs,
.rx-on-dark .rx-crumbs a { color: var(--rx-on-dark-muted); }
.rx-f { display: grid; gap: 6px; }
.rx-f label { font-weight: 700; font-size: var(--rx-fs-sm); }
.rx-hint { font-size: var(--rx-fs-sm); color: var(--rx-text-muted); }
.rx-input { width: 100%; min-height: 52px; padding: 10px 14px; border: 1.5px solid var(--rx-border-strong); border-radius: var(--rx-r-field); background: #fff; font-size: var(--rx-fs-body); color: var(--rx-text); }
.rx-input::placeholder { color: var(--rx-text-muted); opacity: 1; }
.rx-input[aria-invalid="true"] { border-color: var(--rx-danger); border-width: 2px; }
.rx-check { display: inline-flex; align-items: center; gap: 10px; min-height: var(--rx-touch); font-size: var(--rx-fs-sm); cursor: pointer; }
.rx-check input { width: 24px; height: 24px; accent-color: var(--rx-primary); }
.rx-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--rx-r-card); font-size: var(--rx-fs-sm); font-weight: 500; }
.rx-alert .rx-icon { margin-top: 2px; width: 20px; height: 20px; }
.rx-alert strong { display: block; }
.rx-alert-error { background: var(--rx-danger-bg); color: var(--rx-danger-text); }
.rx-alert-error .rx-icon { color: var(--rx-danger); }
.rx-alert-info { background: var(--rx-tint); color: var(--rx-primary-ink); }
.rx-alert-info .rx-icon { color: var(--rx-primary); }
.rx-alert-ok { background: var(--rx-success-bg); color: #0D4A22; }
.rx-alert-ok .rx-icon { color: var(--rx-success); }
.rx-site-header { position: sticky; top: 0; z-index: 50; background: var(--rx-surface); border-bottom: 3px solid var(--rx-primary); }
.rx-hdr { display: flex; align-items: center; gap: var(--rx-s6); min-height: var(--rx-header-h); }
.rx-brand { display: flex; align-items: center; gap: var(--rx-s3); text-decoration: none; color: var(--rx-text); min-height: var(--rx-touch); }
.rx-brand img { height: 44px; width: auto; }
.rx-brand-text { display: grid; line-height: 1.1; }
.rx-brand-text b { font-size: 20px; color: var(--rx-primary); font-weight: 700; }
.rx-brand-text small { font-size: var(--rx-fs-label); color: var(--rx-text-muted); }
.rx-nav { display: flex; align-items: center; gap: var(--rx-s1); margin-inline-start: var(--rx-s4); }
.rx-nav-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--rx-touch); padding: 8px 14px; border-radius: var(--rx-r-field); color: var(--rx-text); font-weight: 500; font-size: var(--rx-fs-sm); text-decoration: none; }
.rx-nav-link[aria-current="page"] { color: var(--rx-primary); font-weight: 700; box-shadow: inset 0 -3px 0 var(--rx-primary); border-radius: var(--rx-r-field) var(--rx-r-field) 0 0; }
.rx-hdr-actions { display: flex; align-items: center; gap: var(--rx-s2); margin-inline-start: auto; }
.rx-who { display: grid; line-height: 1.2; text-align: start; padding-inline: var(--rx-s2); }
.rx-who small { font-size: var(--rx-fs-label); color: var(--rx-text-muted); }
.rx-who strong { font-size: var(--rx-fs-sm); }
.rx-menu-btn { display: none; align-items: center; gap: 8px; min-height: var(--rx-touch); padding: 8px 14px; border: 1.5px solid var(--rx-primary); background: var(--rx-surface); color: var(--rx-primary); border-radius: var(--rx-r-pill); font-weight: 700; font-size: var(--rx-fs-sm); }
html.rx-menu-open .rx-menu-btn { background: var(--rx-primary); color: #fff; }
.rx-drawer-only { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rx-nav-link:hover { background: var(--rx-tint); }
}
@media (max-width: 900px) {
  .rx-hdr { gap: var(--rx-s2); }
  .rx-brand-text small,
  .rx-who { display: none; }
  .rx-menu-btn { display: inline-flex; }
  .rx-hide-sm { display: none !important; }
  .rx-nav { display: none; position: absolute; top: calc(100% + 3px); inset-inline: 0; margin: 0; padding: var(--rx-s4) var(--rx-s4) var(--rx-s6); flex-direction: column; align-items: stretch; gap: var(--rx-s1); background: var(--rx-primary-ink); box-shadow: var(--rx-sh-lg); max-height: calc(100vh - var(--rx-header-h)); overflow: auto; }
  html.rx-menu-open .rx-nav { display: flex; }
  .rx-nav-link { min-height: 52px; font-size: var(--rx-fs-body); color: #fff; }
  .rx-nav :focus-visible { outline-color: var(--rx-focus-on-dark); box-shadow: 0 0 0 2px var(--rx-primary-ink); outline-offset: -3px; }
  .rx-nav-link[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .14); box-shadow: inset 4px 0 0 var(--rx-cta); border-radius: var(--rx-r-field); }
  .rx-nav .rx-drawer-who { display: block; padding: 8px 14px 12px; color: var(--rx-on-dark-muted); font-size: var(--rx-fs-sm); border-bottom: 1px solid rgba(255, 255, 255, .16); margin-bottom: 8px; }
  .rx-nav .rx-drawer-who b { display: block; color: #fff; font-size: var(--rx-fs-body); }
  .rx-drawer-only { display: inline-flex; margin-top: var(--rx-s3); }
}
.rx-drawer-who { display: none; }
@media (max-width: 430px) {
  .rx-brand-text { display: none; }
  .rx-brand img { height: 40px; }
  .rx-hdr-actions .rx-btn-sm,
  .rx-menu-btn { padding-inline: 14px; }
}
.rx-site-footer { background: var(--rx-primary-ink); color: var(--rx-on-dark); }
.rx-site-footer a:not(.rx-btn) { color: var(--rx-on-dark); text-decoration-color: rgba(255, 255, 255, .45); }
.rx-ft-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rx-s6); padding-block: var(--rx-s12) var(--rx-s8); border-bottom: 1px solid rgba(255, 255, 255, .16); }
.rx-ft-brand { display: flex; align-items: center; gap: var(--rx-s4); }
.rx-ft-logo { background: #fff; border-radius: var(--rx-r-card); padding: 6px 10px; }
.rx-ft-logo img { height: 44px; width: auto; }
.rx-ft-brand p { color: var(--rx-on-dark-muted); max-width: 340px; font-size: var(--rx-fs-sm); }
.rx-ft-brand b { display: block; font-size: var(--rx-fs-body); color: #fff; }
.rx-ft-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rx-s10); padding-block: var(--rx-s10); }
.rx-ft-h { font-size: var(--rx-fs-body); color: #fff; margin-bottom: var(--rx-s3); }
.rx-ft-list { display: grid; gap: 2px; }
.rx-ft-list a,
.rx-ft-list span { display: inline-flex; align-items: center; gap: var(--rx-s2); min-height: var(--rx-touch); font-size: var(--rx-fs-sm); color: var(--rx-on-dark-muted); }
.rx-ft-list a { color: #fff; }
.rx-ft-list .rx-icon { width: 18px; height: 18px; color: var(--rx-cta); }
.rx-ft-bottom { display: flex; flex-wrap: wrap; gap: var(--rx-s2) var(--rx-s6); justify-content: space-between; padding-block: var(--rx-s5); border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--rx-fs-label); color: var(--rx-on-dark-muted); }
@media (max-width: 800px) {
  .rx-ft-grid { grid-template-columns: 1fr; gap: var(--rx-s6); padding-block: var(--rx-s6); }
  .rx-ft-top { padding-block: var(--rx-s8) var(--rx-s6); }
  .rx-ft-top .rx-btn { width: 100%; }
  .rx-site-footer .rx-container { padding-bottom: var(--rx-uw-safe); }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .rx-course-card:hover,
  .rx-course-card:hover .rx-cc-media img { transform: none !important; }
}
@media (forced-colors: active) {
  .rx-btn,
  .rx-chip-filter,
  .rx-input,
  .rx-course-card { border: 2px solid ButtonText; }
  .rx-btn-primary { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}

/* ===== 01-home.html -> .rx-pg-home ===== */
.rx-pg-home .rx-hero { background: var(--rx-grad-hero); color: #fff; position: relative; overflow: hidden; padding-block: 72px 128px; }
.rx-pg-home .rx-hero::before { content: ""; position: absolute; width: 640px; height: 640px; inset-inline-start: -160px; top: -200px; background: radial-gradient(closest-side, rgba(164, 103, 234, .38), transparent); pointer-events: none; }
.rx-pg-home .rx-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.4px); background-size: 28px 28px; mask-image: linear-gradient(to left, #000, transparent 70%); -webkit-mask-image: linear-gradient(to left, #000, transparent 70%); pointer-events: none; }
.rx-pg-home .rx-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.rx-pg-home .rx-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 500; font-size: 14px; margin-bottom: 20px; }
.rx-pg-home .rx-hero-eyebrow .rx-icon { width: 18px; height: 18px; color: var(--rx-cta); }
.rx-pg-home .rx-hero h1 { color: #fff; font-size: 48px; line-height: 1.15; margin-bottom: 20px; letter-spacing: -.01em; }
.rx-pg-home .rx-hero h1 em { font-style: normal; color: var(--rx-cta); }
.rx-pg-home .rx-hero-lead { font-size: 20px; line-height: 1.6; color: var(--rx-on-dark-muted); max-width: 560px; margin-bottom: 32px; }
.rx-pg-home .rx-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.rx-pg-home .rx-hero-note { font-size: 16px; color: var(--rx-on-dark-muted); margin-bottom: 28px; }
.rx-pg-home .rx-hero-points { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; color: #fff; }
.rx-pg-home .rx-hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.rx-pg-home .rx-hero-points .rx-icon { width: 18px; height: 18px; color: var(--rx-cta); }
.rx-pg-home .rx-hero-visual { position: relative; height: 400px; }
.rx-pg-home .rx-poster { position: absolute; margin: 0; border-radius: 18px; overflow: hidden; border: 5px solid #fff; box-shadow: 0 24px 48px rgba(10, 2, 30, .45); background: var(--rx-tint-2); }
.rx-pg-home .rx-poster img { width: 100%; height: 100%; object-fit: cover; }
.rx-pg-home .rx-poster-a { width: 330px; height: 206px; inset-inline-end: 0; top: 0; transform: rotate(2.5deg); }
.rx-pg-home .rx-poster-b { width: 300px; height: 188px; inset-inline-start: 0; top: 112px; transform: rotate(-3deg); z-index: 2; }
.rx-pg-home .rx-poster-c { width: 250px; height: 156px; inset-inline-end: 56px; bottom: 0; transform: rotate(1.5deg); z-index: 3; }
.rx-pg-home .rx-hero-badge { position: absolute; z-index: 4; inset-inline-start: 24px; bottom: 28px; background: #fff; color: var(--rx-primary-ink); border-radius: 16px; padding: 12px 18px; box-shadow: var(--rx-sh-lg); display: grid; line-height: 1.2; }
.rx-pg-home .rx-hero-badge b { font-size: 28px; color: var(--rx-primary); }
.rx-pg-home .rx-hero-badge span { font-size: 14px; color: var(--rx-text-muted); }
.rx-pg-home .rx-stats-wrap { position: relative; z-index: 5; margin-top: -64px; }
.rx-pg-home .rx-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--rx-surface); border-radius: var(--rx-r-lg); box-shadow: var(--rx-sh-lg); border: 1px solid var(--rx-line); }
.rx-pg-home .rx-stat { padding: 24px 28px; display: grid; gap: 2px; border-inline-start: 1px solid var(--rx-line); }
.rx-pg-home .rx-stat:first-child { border-inline-start: 0; }
.rx-pg-home .rx-stat b { font-size: 28px; line-height: 1.15; color: var(--rx-primary); }
.rx-pg-home .rx-stat span { font-size: 16px; color: var(--rx-text-muted); }
.rx-pg-home .rx-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; position: relative; }
.rx-pg-home .rx-step { background: var(--rx-surface); border: 1px solid var(--rx-line); border-radius: var(--rx-r-lg); padding: 28px; display: grid; gap: 12px; align-content: start; position: relative; box-shadow: var(--rx-sh-sm); }
.rx-pg-home .rx-step-n { width: 44px; height: 44px; border-radius: 50%; background: var(--rx-grad-brand); color: #fff; font-weight: 700; font-size: 20px; display: grid; place-items: center; }
.rx-pg-home .rx-step h3 { font-size: 20px; }
.rx-pg-home .rx-step p { color: var(--rx-text-muted); }
.rx-pg-home .rx-step .rx-step-ic { position: absolute; inset-inline-end: 24px; top: 24px; width: 40px; height: 40px; color: var(--rx-accent); opacity: .9; }
.rx-pg-home .rx-steps-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.rx-pg-home .rx-bg-soft { background: var(--rx-grad-soft); }
.rx-pg-home .rx-inst-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rx-pg-home .rx-inst { display: grid; gap: 8px; align-content: start; padding: 22px; background: var(--rx-surface); border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); text-decoration: none; color: var(--rx-text); box-shadow: var(--rx-sh-sm); min-height: 168px; position: relative; transition: transform var(--rx-dur) var(--rx-ease), box-shadow var(--rx-dur) var(--rx-ease), border-color var(--rx-dur) var(--rx-ease); }
.rx-pg-home .rx-inst-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--rx-tint); color: var(--rx-primary); display: grid; place-items: center; margin-bottom: 4px; }
.rx-pg-home .rx-inst h3 { font-size: 20px; }
.rx-pg-home .rx-inst p { font-size: 16px; color: var(--rx-text-muted); line-height: 1.5; }
.rx-pg-home .rx-inst .rx-go { position: absolute; inset-inline-start: 20px; top: 24px; color: var(--rx-primary); opacity: 0; transition: opacity var(--rx-dur) var(--rx-ease), transform var(--rx-dur) var(--rx-ease); transform: translateX(6px); }
.rx-pg-home .rx-inst-all { background: var(--rx-grad-brand); border-color: transparent; color: #fff; align-content: center; justify-items: start; }
.rx-pg-home .rx-inst-all h3 { color: #fff; }
.rx-pg-home .rx-inst-all p { color: var(--rx-on-dark-muted); }
.rx-pg-home .rx-inst-all .rx-inst-ic { background: rgba(255, 255, 255, .16); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .rx-pg-home .rx-inst:hover { transform: translateY(-4px); box-shadow: var(--rx-sh-lg); border-color: var(--rx-accent); }
  .rx-pg-home .rx-inst:hover .rx-go { opacity: 1; transform: none; }
}
.rx-pg-home .rx-feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rx-pg-home .rx-more-row { display: flex; justify-content: center; margin-top: 36px; }
.rx-pg-home .rx-teachers { background: var(--rx-grad-hero); color: #fff; position: relative; overflow: hidden; }
.rx-pg-home .rx-teachers::before { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -140px; bottom: -220px; background: radial-gradient(closest-side, rgba(164, 103, 234, .35), transparent); }
.rx-pg-home .rx-teachers-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.rx-pg-home .rx-teachers h2 { color: #fff; margin-bottom: 16px; }
.rx-pg-home .rx-teachers .rx-lead { color: var(--rx-on-dark-muted); margin-bottom: 28px; }
.rx-pg-home .rx-teachers .rx-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.rx-pg-home .rx-t-card { background: #fff; color: var(--rx-text); border-radius: var(--rx-r-lg); padding: 28px; box-shadow: var(--rx-sh-lg); display: grid; gap: 4px; }
.rx-pg-home .rx-t-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin-bottom: 12px; }
.rx-pg-home .rx-t-card h3 .rx-icon { color: var(--rx-primary); }
.rx-pg-home .rx-t-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--rx-line); }
.rx-pg-home .rx-t-row:first-of-type { border-top: 0; }
.rx-pg-home .rx-t-row .rx-dot { width: 36px; height: 36px; border-radius: 10px; background: var(--rx-tint); color: var(--rx-primary); display: grid; place-items: center; flex: none; }
.rx-pg-home .rx-t-row b { display: block; }
.rx-pg-home .rx-t-row span { font-size: 16px; color: var(--rx-text-muted); }
.rx-pg-home .rx-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rx-pg-home .rx-pillar { display: grid; gap: 10px; align-content: start; }
.rx-pg-home .rx-pillar .rx-p-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--rx-tint); color: var(--rx-primary); display: grid; place-items: center; }
.rx-pg-home .rx-pillar h3 { font-size: 20px; }
.rx-pg-home .rx-pillar p { color: var(--rx-text-muted); }
.rx-pg-home .rx-quote { margin-top: 48px; padding: 32px 36px; background: var(--rx-tint); border-radius: var(--rx-r-lg); border-inline-start: 6px solid var(--rx-primary); display: grid; gap: 8px; }
.rx-pg-home .rx-quote p { font-size: 22px; line-height: 1.5; font-weight: 500; color: var(--rx-primary-ink); }
.rx-pg-home .rx-quote cite { font-style: normal; font-size: 16px; color: var(--rx-text-muted); }
.rx-pg-home .rx-final { background: var(--rx-grad-brand); color: #fff; text-align: center; padding-block: 72px; position: relative; overflow: hidden; }
.rx-pg-home .rx-final::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1.2px, transparent 1.4px); background-size: 28px 28px; }
.rx-pg-home .rx-final .rx-container { position: relative; display: grid; gap: 16px; justify-items: center; }
.rx-pg-home .rx-final h2 { color: #fff; font-size: 36px; }
.rx-pg-home .rx-final p { color: var(--rx-on-dark-muted); font-size: 18px; max-width: 560px; }
.rx-pg-home .rx-final .rx-cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.rx-pg-home .rx-final small { color: var(--rx-on-dark-muted); font-size: 16px; }
@media (max-width: 1000px) {
  .rx-pg-home .rx-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .rx-pg-home .rx-hero-visual { height: 260px; max-width: 520px; width: 100%; margin-inline: auto; }
  .rx-pg-home .rx-poster-a { width: 58%; height: auto; aspect-ratio: 16/10; }
  .rx-pg-home .rx-poster-b { width: 54%; height: auto; aspect-ratio: 16/10; top: 70px; }
  .rx-pg-home .rx-poster-c { width: 44%; height: auto; aspect-ratio: 16/10; inset-inline-end: 8%; }
  .rx-pg-home .rx-hero-badge { inset-inline-start: 8px; bottom: 10px; padding: 8px 14px; }
  .rx-pg-home .rx-hero-badge b { font-size: 22px; }
  .rx-pg-home .rx-stats { grid-template-columns: repeat(2, 1fr); }
  .rx-pg-home .rx-stat:nth-child(3) { border-inline-start: 0; }
  .rx-pg-home .rx-stat:nth-child(n+3) { border-top: 1px solid var(--rx-line); }
  .rx-pg-home .rx-steps { grid-template-columns: 1fr; }
  .rx-pg-home .rx-inst-grid,
  .rx-pg-home .rx-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .rx-pg-home .rx-teachers-grid { grid-template-columns: 1fr; gap: 32px; }
  .rx-pg-home .rx-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rx-pg-home .rx-hero { padding-block: 40px 96px; }
  .rx-pg-home .rx-hero h1 { font-size: 32px; }
  .rx-pg-home .rx-hero-lead { font-size: 17px; margin-bottom: 24px; }
  .rx-pg-home .rx-hero-cta .rx-btn { width: 100%; }
  .rx-pg-home .rx-hero-visual { height: 200px; }
  .rx-pg-home .rx-poster { border-width: 3px; border-radius: 12px; }
  .rx-pg-home .rx-poster-b { top: 54px; }
  .rx-pg-home .rx-stats-wrap { margin-top: -56px; }
  .rx-pg-home .rx-stat { padding: 16px; }
  .rx-pg-home .rx-stat b { font-size: 22px; }
  .rx-pg-home .rx-inst-grid,
  .rx-pg-home .rx-feat-grid { gap: 12px; }
  .rx-pg-home .rx-inst { padding: 16px; min-height: 0; }
  .rx-pg-home .rx-inst h3 { font-size: 17px; }
  .rx-pg-home .rx-inst p { font-size: 14px; }
  .rx-pg-home .rx-inst .rx-go { display: none; }
  .rx-pg-home .rx-feat-grid .rx-cc-body { padding: 12px 12px 4px; }
  .rx-pg-home .rx-feat-grid .rx-cc-title { font-size: 16px; }
  .rx-pg-home .rx-feat-grid .rx-cc-title a { -webkit-line-clamp: 3; min-height: 44px; }
  .rx-pg-home .rx-feat-grid .rx-cc-foot { padding: 8px 12px 12px; }
  .rx-pg-home .rx-final h2 { font-size: 28px; }
  .rx-pg-home .rx-final .rx-cta-row .rx-btn { width: 100%; }
  .rx-pg-home .rx-teachers .rx-cta-row .rx-btn { width: 100%; }
  .rx-pg-home .rx-steps-cta .rx-btn { width: 100%; }
  .rx-pg-home .rx-quote { padding: 24px 20px; }
  .rx-pg-home .rx-quote p { font-size: 18px; }
}
.rx-pg-home .rx-hero-badge span,
.rx-pg-home .rx-stat span { font-size: 14px; }
.rx-pg-home .rx-stat span { color: var(--rx-text-muted); }
.rx-pg-home .rx-inst p { font-size: 16px; }
.rx-pg-home .rx-inst .rx-cnt { font-size: 14px; font-weight: 700; color: var(--rx-primary); margin-top: 4px; }
.rx-pg-home .rx-inst-all .rx-cnt { color: var(--rx-cta); }
.rx-pg-home .rx-find { display: flex; gap: 8px; max-width: 680px; margin-bottom: 32px; }
.rx-pg-home .rx-find .rx-f { flex: 1; }
.rx-pg-home .rx-find .rx-input { min-height: 56px; }
.rx-pg-home .rx-find .rx-btn { min-height: 56px; }
.rx-pg-home .rx-hero-note { font-size: 16px; }
.rx-pg-home .rx-hero h1 { font-size: var(--rx-fs-hero); }
.rx-pg-home .rx-on-dark .rx-eyebrow { display: block; margin-bottom: 12px; font-weight: 700; font-size: 16px; }
@media (max-width: 600px) {
  .rx-pg-home .rx-find { flex-direction: column; }
  .rx-pg-home .rx-inst h3 { font-size: 18px; }
  .rx-pg-home .rx-inst p { font-size: 16px; }
  .rx-pg-home .rx-feat-grid .rx-cc-title { font-size: 16px; }
  .rx-pg-home .rx-hero h1 { font-size: 32px; }
}
@media (max-width: 1000px) {
  .rx-pg-home .rx-inst-grid,
  .rx-pg-home .rx-feat-grid { grid-template-columns: repeat(2, 1fr); }
}
.rx-pg-home .rx-hero { padding-block: 64px 120px; }
/* "Featured courses" (mockup 01): 4 columns on desktop, 2 up to 1000px incl. phones (2 per row, titles clamp to 2 lines with ellipsis). Must keep min-width so it does not override the media queries above. */
@media (min-width: 1001px) {
  .rx-pg-home .rx-feat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .rx-pg-home .rx-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rx-pg-home .rx-feat-grid .rx-cc-title { font-size: 16px; line-height: 1.35; -webkit-line-clamp: 2; min-height: calc(2 * 1.35em); overflow-wrap: anywhere; }
  .rx-pg-home .rx-feat-grid .rx-cc-foot .rx-btn { min-width: 0; padding-inline: 12px; }
}

/* ===== 02-courses.html -> .rx-pg-courses ===== */
.rx-pg-courses .rx-page-head { background: var(--rx-grad-soft); padding-block: 40px 28px; border-bottom: 1px solid var(--rx-line); }
.rx-pg-courses .rx-crumbs { display: flex; gap: 8px; align-items: center; font-size: 16px; color: var(--rx-text-muted); margin-bottom: 4px; }
.rx-pg-courses .rx-crumbs a { color: var(--rx-text-muted); display: inline-flex; min-height: 44px; align-items: center; padding-inline: 4px; }
.rx-pg-courses .rx-page-head h1 { font-size: 36px; margin-bottom: 8px; }
.rx-pg-courses .rx-page-head .rx-lead { margin-bottom: 24px; }
.rx-pg-courses .rx-search { display: flex; gap: 8px; max-width: 640px; }
.rx-pg-courses .rx-field { position: relative; flex: 1; }
.rx-pg-courses .rx-field .rx-icon { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--rx-text-muted); pointer-events: none; }
.rx-pg-courses .rx-input { width: 100%; min-height: 48px; padding: 10px 16px; padding-inline-start: 44px; border: 1.5px solid var(--rx-border-strong); border-radius: var(--rx-r-field); background: #fff; font-size: 16px; color: var(--rx-text); }
.rx-pg-courses .rx-input::placeholder { color: var(--rx-text-muted); opacity: 1; }
.rx-pg-courses .rx-input:focus-visible { outline: 3px solid var(--rx-focus); outline-offset: 2px; border-color: var(--rx-focus); }
.rx-pg-courses .rx-filters { margin-top: 24px; }
.rx-pg-courses .rx-filters-label { font-weight: 700; font-size: 16px; color: var(--rx-text-muted); margin-bottom: 10px; display: block; }
.rx-pg-courses .rx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 28px 20px; }
.rx-pg-courses .rx-count { font-size: 16px; color: var(--rx-text-muted); }
.rx-pg-courses .rx-count b { color: var(--rx-text); }
.rx-pg-courses .rx-sort { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--rx-text-muted); }
.rx-pg-courses .rx-select { min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--rx-border-strong); border-radius: var(--rx-r-field); background: #fff; font-size: 16px; font-weight: 500; }
.rx-pg-courses .rx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rx-pg-courses .rx-promo { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border-radius: var(--rx-r-lg); background: var(--rx-grad-hero); color: #fff; position: relative; overflow: hidden; }
.rx-pg-courses .rx-promo::after { content: ""; position: absolute; inset-inline-start: -60px; top: -60px; width: 240px; height: 240px; background: radial-gradient(closest-side, rgba(164, 103, 234, .45), transparent); }
.rx-pg-courses .rx-promo > * { position: relative; z-index: 1; }
.rx-pg-courses .rx-promo h2 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.rx-pg-courses .rx-promo p { color: var(--rx-on-dark-muted); }
.rx-pg-courses .rx-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.rx-pg-courses .rx-pager-nums { display: flex; gap: 8px; }
.rx-pg-courses .rx-pg { min-width: 44px; min-height: 44px; padding: 8px 14px; border-radius: var(--rx-r-field); border: 1.5px solid var(--rx-border-strong); background: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--rx-text); gap: 6px; }
.rx-pg-courses .rx-pg[aria-current="page"] { background: var(--rx-primary); border-color: var(--rx-primary); color: #fff; }
.rx-pg-courses .rx-empty { display: none; text-align: center; padding: 64px 16px; background: #fff; border: 1px dashed var(--rx-border-strong); border-radius: var(--rx-r-lg); }
.rx-pg-courses .rx-empty .rx-icon { width: 48px; height: 48px; color: var(--rx-accent); margin: 0 auto 12px; }
.rx-pg-courses .rx-empty h2 { font-size: 22px; margin-bottom: 8px; }
.rx-pg-courses .rx-empty p { color: var(--rx-text-muted); margin-bottom: 20px; }
.rx-pg-courses .rx-main-pad { padding-bottom: 80px; }
@media (hover: hover) and (pointer: fine) {
  .rx-pg-courses .rx-pg:hover { background: var(--rx-tint); }
  .rx-pg-courses .rx-pg[aria-current="page"]:hover { background: var(--rx-primary-hover); }
}
@media (max-width: 1000px) {
  .rx-pg-courses .rx-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .rx-pg-courses .rx-page-head { padding-block: 24px 20px; }
  .rx-pg-courses .rx-page-head h1 { font-size: 28px; }
  .rx-pg-courses .rx-grid { grid-template-columns: 1fr; gap: 16px; }
  .rx-pg-courses .rx-chips.rx-filter-row { gap: 8px; }
  .rx-pg-courses .rx-chip-filter { padding: 8px 14px; }
  .rx-pg-courses .rx-search .rx-btn { padding-inline: 16px; }
  .rx-pg-courses .rx-promo { padding: 24px 20px; }
  .rx-pg-courses .rx-promo .rx-btn { width: 100%; }
  .rx-pg-courses .rx-pager { justify-content: center; }
  .rx-pg-courses .rx-sort { width: 100%; }
  .rx-pg-courses .rx-sort .rx-select { flex: 1; }
  .rx-pg-courses .rx-toolbar { padding-top: 20px; }
}
.rx-pg-courses .rx-page-head h1 { font-size: var(--rx-fs-h1); }
.rx-pg-courses .rx-search { max-width: 720px; align-items: end; }
.rx-pg-courses .rx-search .rx-f { flex: 1; }
.rx-pg-courses .rx-search label { display: block; margin-bottom: 6px; }
.rx-pg-courses .rx-search .rx-field { position: relative; }
.rx-pg-courses .rx-search .rx-input { padding-inline-start: 44px; }
.rx-pg-courses .rx-search .rx-btn { min-height: 52px; }
.rx-pg-courses .rx-filters-label { font-size: 16px; }
.rx-pg-courses .rx-pager { align-items: center; }
.rx-pg-courses .rx-pager-status { font-weight: 700; }
.rx-pg-courses .rx-pg[aria-disabled="true"] { color: var(--rx-text-muted); border-color: var(--rx-line); background: transparent; pointer-events: none; }
.rx-pg-courses .rx-promo .rx-btn { flex: none; }
.rx-pg-courses .rx-empty .rx-btn { margin-inline: auto; }
.rx-pg-courses .rx-count { font-size: var(--rx-fs-sm); }
@media (max-width: 640px) {
  .rx-pg-courses .rx-pager { justify-content: center; }
  .rx-pg-courses .rx-pager-status { width: 100%; text-align: center; order: -1; }
  .rx-pg-courses .rx-pager .rx-pg { flex: 1; }
  .rx-pg-courses .rx-sort select { flex: 1; }
}
@media (max-width: 600px) {
  .rx-pg-courses .rx-uwpad { padding-bottom: var(--rx-uw-safe); }
}
.rx-pg-courses .rx-grid > li { display: flex; }
.rx-pg-courses .rx-grid > li > .rx-course-card,
.rx-pg-courses .rx-grid > li > .rx-promo { width: 100%; }
.rx-pg-courses .rx-grid > .rx-promo-li { grid-column: 1 / -1; }

/* ===== 03-course.html -> .rx-pg-course ===== */
.rx-pg-course .rx-band { background: var(--rx-grad-hero); color: #fff; padding-block: 28px 150px; position: relative; overflow: hidden; }
.rx-pg-course .rx-band::before { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-start: -120px; top: -220px; background: radial-gradient(closest-side, rgba(164, 103, 234, .35), transparent); }
.rx-pg-course .rx-band-grid,
.rx-pg-course .rx-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 48px; position: relative; }
.rx-pg-course .rx-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 16px; color: var(--rx-on-dark-muted); margin-bottom: 8px; }
.rx-pg-course .rx-crumbs a { color: var(--rx-on-dark-muted); display: inline-flex; min-height: 44px; align-items: center; padding-inline: 4px; }
.rx-pg-course .rx-band h1 { color: #fff; font-size: 40px; line-height: 1.2; margin-bottom: 16px; }
.rx-pg-course .rx-band .rx-chip { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.rx-pg-course .rx-band .rx-chips { margin-bottom: 20px; }
.rx-pg-course .rx-band .rx-lead { color: var(--rx-on-dark-muted); max-width: 640px; }
.rx-pg-course .rx-band-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 16px; color: #fff; }
.rx-pg-course .rx-band-facts li { display: inline-flex; align-items: center; gap: 8px; }
.rx-pg-course .rx-band-facts .rx-icon { width: 18px; height: 18px; color: var(--rx-cta); }
.rx-pg-course .rx-main-grid { padding-bottom: 80px; align-items: start; }
.rx-pg-course .rx-buy { margin-top: -118px; grid-column: 2; grid-row: 1; position: sticky; top: 88px; background: #fff; border-radius: var(--rx-r-lg); overflow: hidden; box-shadow: var(--rx-sh-lg); border: 1px solid var(--rx-line); }
.rx-pg-course .rx-buy-poster { aspect-ratio: 16 / 9; background: var(--rx-tint-2); }
.rx-pg-course .rx-buy-poster img { width: 100%; height: 100%; object-fit: cover; }
.rx-pg-course .rx-buy-dark { background: var(--rx-grad-hero); color: #fff; padding: 24px; display: grid; gap: 14px; }
.rx-pg-course .rx-buy-dark h2 { color: #fff; font-size: 22px; }
.rx-pg-course .rx-buy-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--rx-cta); }
.rx-pg-course .rx-buy-tag .rx-icon { width: 16px; height: 16px; }
.rx-pg-course .rx-buy-list { display: grid; gap: 8px; font-size: 16px; }
.rx-pg-course .rx-buy-list li { display: flex; gap: 10px; align-items: flex-start; color: #fff; }
.rx-pg-course .rx-buy-list .rx-icon { width: 20px; height: 20px; color: var(--rx-cta); margin-top: 2px; }
.rx-pg-course .rx-buy-note { font-size: 14px; color: var(--rx-on-dark-muted); text-align: center; }
.rx-pg-course .rx-buy-foot { padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; align-items: center; font-size: 16px; background: #fff; }
.rx-pg-course .rx-buy-foot a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.rx-pg-course .rx-buy-foot span { color: var(--rx-text-muted); }
.rx-pg-course .rx-go-card { padding: 24px; display: grid; gap: 14px; }
.rx-pg-course .rx-go-card h2 { font-size: 22px; }
.rx-pg-course .rx-go-card p { color: var(--rx-text-muted); font-size: 16px; }
.rx-pg-course .rx-content { grid-column: 1; grid-row: 1; display: grid; gap: 56px; padding-top: 48px; }
.rx-pg-course .rx-content section { display: grid; gap: 16px; }
.rx-pg-course .rx-content h2 { font-size: 28px; }
.rx-pg-course .rx-panel { background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-lg); padding: 32px; box-shadow: var(--rx-sh-sm); }
.rx-pg-course .rx-about p { font-size: 18px; line-height: 1.75; color: var(--rx-text); max-width: 68ch; }
.rx-pg-course .rx-for-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rx-pg-course .rx-for { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); font-weight: 500; }
.rx-pg-course .rx-for .rx-icon { color: var(--rx-success); width: 20px; height: 20px; }
.rx-pg-course .rx-need { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--rx-tint); border-radius: var(--rx-r-card); color: var(--rx-primary-ink); }
.rx-pg-course .rx-need .rx-icon { color: var(--rx-primary); margin-top: 2px; }
.rx-pg-course .rx-outline-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--rx-text-muted); font-size: 16px; }
.rx-pg-course .rx-outline-meta span { display: inline-flex; gap: 6px; align-items: center; }
.rx-pg-course .rx-outline-meta .rx-icon { width: 18px; height: 18px; }
.rx-pg-course .rx-topic { background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); overflow: hidden; }
.rx-pg-course .rx-topic + .rx-topic { margin-top: 10px; }
.rx-pg-course .rx-topic summary { min-height: 60px; display: flex; align-items: center; gap: 14px; padding: 12px 18px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.rx-pg-course .rx-topic summary::-webkit-details-marker { display: none; }
.rx-pg-course .rx-topic .rx-n { width: 32px; height: 32px; border-radius: 50%; background: var(--rx-tint); color: var(--rx-primary-press); display: grid; place-items: center; font-size: 16px; flex: none; }
.rx-pg-course .rx-topic .rx-cnt { margin-inline-start: auto; font-weight: 500; font-size: 16px; color: var(--rx-text-muted); }
.rx-pg-course .rx-topic .rx-chev { transition: transform var(--rx-dur) var(--rx-ease); color: var(--rx-text-muted); }
.rx-pg-course .rx-topic[open] .rx-chev { transform: rotate(180deg); }
.rx-pg-course .rx-topic ul { border-top: 1px solid var(--rx-line); }
.rx-pg-course .rx-item { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px; color: var(--rx-text); }
.rx-pg-course .rx-item + .rx-item { border-top: 1px solid var(--rx-line); }
.rx-pg-course .rx-item .rx-t-ic { width: 20px; height: 20px; color: var(--rx-primary); }
.rx-pg-course .rx-item .rx-dur { margin-inline-start: auto; font-size: 16px; color: var(--rx-text-muted); }
.rx-pg-course .rx-item .rx-lk { width: 18px; height: 18px; color: var(--rx-text-muted); }
.rx-pg-course a.rx-item { text-decoration: none; }
.rx-pg-course .rx-lock-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: var(--rx-r-card); background: var(--rx-warning-bg); color: #5B2D05; font-weight: 500; }
.rx-pg-course .rx-lock-note .rx-icon { color: var(--rx-warning); }
.rx-pg-course .rx-lock-note div { display: flex; gap: 10px; align-items: center; }
.rx-pg-course .rx-access { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: a; }
.rx-pg-course .rx-access li { padding: 20px; background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); display: grid; gap: 6px; }
.rx-pg-course .rx-access b { color: var(--rx-primary); font-size: 16px; }
.rx-pg-course .rx-access h3 { font-size: 18px; }
.rx-pg-course .rx-access p { color: var(--rx-text-muted); font-size: 16px; }
.rx-pg-course .rx-faq details { background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-card); }
.rx-pg-course .rx-faq details + details { margin-top: 10px; }
.rx-pg-course .rx-faq summary { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 12px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.rx-pg-course .rx-faq summary::-webkit-details-marker { display: none; }
.rx-pg-course .rx-faq summary .rx-icon { margin-inline-start: auto; color: var(--rx-text-muted); transition: transform var(--rx-dur) var(--rx-ease); }
.rx-pg-course .rx-faq details[open] summary .rx-icon { transform: rotate(180deg); }
.rx-pg-course .rx-faq p { padding: 0 18px 18px; color: var(--rx-text-muted); font-size: 16px; max-width: 64ch; }
.rx-pg-course .rx-sticky-buy { display: none; }
@media (hover: hover) and (pointer: fine) {
  .rx-pg-course .rx-topic summary:hover,
  .rx-pg-course .rx-faq summary:hover { background: var(--rx-tint); }
  .rx-pg-course a.rx-item:hover { background: var(--rx-tint); }
}
@media (max-width: 1000px) {
  .rx-pg-course .rx-band-grid,
  .rx-pg-course .rx-main-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rx-pg-course .rx-band { padding-block: 20px 140px; }
  .rx-pg-course .rx-band h1 { font-size: 30px; }
  .rx-pg-course .rx-buy { grid-column: 1; grid-row: 1; position: static; }
  .rx-pg-course .rx-content { grid-column: 1; grid-row: 2; gap: 40px; padding-top: 8px; }
  .rx-pg-course .rx-buy { margin-top: -112px; }
  .rx-pg-course .rx-for-grid { grid-template-columns: repeat(2, 1fr); }
  .rx-pg-course .rx-access { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .rx-pg-course .rx-content h2 { font-size: 24px; }
  .rx-pg-course .rx-panel { padding: 20px; }
  .rx-pg-course .rx-about p { font-size: 17px; }
  .rx-pg-course .rx-item { padding-inline: 14px; }
  body.rx-has-buy { padding-bottom: 84px; }
  .rx-pg-course .rx-sticky-buy { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--rx-line); padding: 12px 16px; box-shadow: 0 -8px 24px rgba(36, 11, 69, .12); gap: 12px; align-items: center; }
  .rx-pg-course .rx-sticky-buy .rx-btn { flex: 1; }
}
.rx-pg-course .rx-buy-tag { font-size: 14px; }
.rx-pg-course .rx-buy-note { font-size: 16px; }
.rx-pg-course .rx-band h1 { font-size: var(--rx-fs-h1); }
.rx-pg-course .rx-band-facts { font-size: 16px; }
.rx-pg-course .rx-topic .rx-cnt,
.rx-pg-course .rx-item .rx-dur { font-size: 16px; }
.rx-pg-course .rx-topic .rx-n { font-size: 16px; }
.rx-pg-course .rx-access b { font-size: 16px; }
.rx-pg-course .rx-item .rx-t-kind { font-size: 14px; color: var(--rx-text-muted); font-weight: 500; }
.rx-pg-course .rx-item .rx-lk-w { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--rx-text-muted); }
.rx-pg-course .rx-item .rx-name { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .rx-pg-course .rx-band h1 { font-size: 28px; }
  .rx-pg-course .rx-sticky-buy { padding-inline-end: var(--rx-uw-safe); }
  body.rx-has-buy { padding-bottom: 84px; }
}
.rx-pg-course .rx-topic-t { font-size: inherit; font-weight: 700; margin: 0; }
.rx-pg-course .rx-topic summary { gap: 14px; }
.rx-pg-course .rx-topic .rx-cnt { margin-inline-start: auto; }

/* ===== 04-lesson.html -> .rx-pg-lesson ===== */
.rx-pg-lesson .rx-ls-top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 3px solid var(--rx-primary); min-height: var(--topbar-h, 64px); display: flex; align-items: center; gap: 16px; padding: 8px 16px; --topbar-h: 64px; }
.rx-pg-lesson .rx-ls-top .rx-back { min-height: 48px; padding-inline: 16px; white-space: nowrap; }
.rx-pg-lesson .rx-ls-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.rx-pg-lesson .rx-ls-title strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--rx-fs-body); }
.rx-pg-lesson .rx-ls-title small { color: var(--rx-text-muted); font-size: var(--rx-fs-sm); }
.rx-pg-lesson .rx-ls-top .rx-end { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
.rx-pg-lesson .rx-prog { display: grid; gap: 6px; min-width: 210px; font-size: var(--rx-fs-sm); }
.rx-pg-lesson .rx-prog .rx-bar { height: 10px; }
.rx-pg-lesson .rx-list-btn { display: none; }
.rx-pg-lesson .rx-ls-wrap { display: grid; grid-template-columns: var(--rx-sidebar-w) minmax(0, 1fr); align-items: start; }
.rx-pg-lesson .rx-ls-side { position: sticky; top: 67px; height: calc(100vh - 67px); overflow: auto; background: #fff; border-inline-end: 1px solid var(--rx-line); padding-bottom: var(--rx-uw-safe); }
.rx-pg-lesson .rx-side-head { padding: 16px 20px; border-bottom: 1px solid var(--rx-line); display: grid; gap: 2px; }
.rx-pg-lesson .rx-side-title { font-size: var(--rx-fs-lead); line-height: 1.3; font-weight: 700; }
.rx-pg-lesson .rx-side-head small { color: var(--rx-text-muted); font-size: var(--rx-fs-sm); }
.rx-pg-lesson .rx-side-note { margin: 12px 16px 0; }
.rx-pg-lesson .rx-drawer-close { display: none; }
.rx-pg-lesson .rx-topic summary { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 20px; background: var(--rx-bg); font-weight: 700; font-size: var(--rx-fs-body); cursor: pointer; list-style: none; border-bottom: 1px solid var(--rx-line); }
.rx-pg-lesson .rx-topic summary::-webkit-details-marker { display: none; }
.rx-pg-lesson .rx-topic summary::before { content: ""; width: 10px; height: 10px; border-inline-end: 3px solid var(--rx-primary); border-bottom: 3px solid var(--rx-primary); transform: rotate(45deg); transition: transform var(--rx-dur-fast); flex: none; }
.rx-pg-lesson .rx-topic[open] summary::before { transform: rotate(-135deg); }
.rx-pg-lesson .rx-tn { color: var(--rx-text-muted); font-weight: 500; }
.rx-pg-lesson .rx-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px 8px 16px; text-decoration: none; color: var(--rx-text); border-inline-start: 6px solid transparent; border-bottom: 1px solid var(--rx-line); }
.rx-pg-lesson .rx-row:hover { background: var(--rx-tint); }
.rx-pg-lesson .rx-row .rx-num { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--rx-border-strong); display: grid; place-items: center; font-weight: 700; font-size: var(--rx-fs-sm); flex: none; color: var(--rx-text); }
.rx-pg-lesson .rx-row .rx-ck { display: none; line-height: 0; }
.rx-pg-lesson .rx-row .rx-ck .rx-icon { width: 20px; height: 20px; stroke-width: 3; }
.rx-pg-lesson .rx-row .rx-txt { flex: 1; display: grid; min-width: 0; line-height: 1.3; }
.rx-pg-lesson .rx-row .rx-nm { font-size: var(--rx-fs-body); font-weight: 500; }
.rx-pg-lesson .rx-row .rx-sub { font-size: var(--rx-fs-sm); color: var(--rx-text-muted); }
.rx-pg-lesson .rx-row .rx-here { display: none; font-weight: 700; }
.rx-pg-lesson .rx-row .rx-ti { color: var(--rx-text-muted); }
.rx-pg-lesson .rx-row[aria-current="page"] { background: var(--rx-tint); border-inline-start-color: var(--rx-primary); color: var(--rx-primary-deep); }
.rx-pg-lesson .rx-row[aria-current="page"] .rx-nm { font-weight: 700; }
.rx-pg-lesson .rx-row[aria-current="page"] .rx-num { background: var(--rx-primary); border-color: var(--rx-primary); color: #fff; }
.rx-pg-lesson .rx-row[aria-current="page"] .rx-sub,
.rx-pg-lesson .rx-row[aria-current="page"] .rx-ti { color: var(--rx-primary-deep); }
.rx-pg-lesson .rx-row[aria-current="page"] .rx-here { display: inline; }
.rx-pg-lesson .rx-ls-main { display: flex; flex-direction: column; gap: 20px; padding: 24px 32px 0; min-height: calc(100vh - 67px); }
.rx-pg-lesson .rx-ls-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rx-pg-lesson .rx-ls-head h1 { font-size: 30px; line-height: 1.25; flex: 1; }
.rx-pg-lesson .rx-ls-head p { width: 100%; color: var(--rx-text-muted); font-size: var(--rx-fs-lead); margin-top: -8px; }
.rx-pg-lesson .rx-prog-inline { display: none; }
.rx-pg-lesson .rx-stage-video { position: relative; width: min(100%, calc((100vh - 290px) * 16 / 9)); aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #111827; }
.rx-pg-lesson .rx-stage-video img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.rx-pg-lesson .rx-play { position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--rx-sh-md); color: var(--rx-primary); }
.rx-pg-lesson .rx-play .rx-icon { width: 44px; height: 44px; fill: currentColor; stroke: none; }
.rx-pg-lesson .rx-dur-line { color: var(--rx-text-muted); font-size: var(--rx-fs-sm); margin-top: -8px; }
.rx-pg-lesson .rx-stage-int { position: relative; flex: 1; min-height: 440px; border: 2px solid var(--rx-border-strong); border-radius: 16px; overflow: hidden; background: #fff; }
.rx-pg-lesson .rx-stage-int:focus-within { outline: 3px solid var(--rx-focus); outline-offset: 2px; }
.rx-pg-lesson .rx-stage-int iframe:focus-visible { outline: 3px solid var(--rx-focus); outline-offset: -6px; box-shadow: none; }
.rx-pg-lesson .rx-stage-int iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rx-pg-lesson .rx-stage-int .rx-fb { position: absolute; inset: 0; display: grid; place-items: center; color: var(--rx-text-muted); font-size: var(--rx-fs-lead); }
.rx-pg-lesson .rx-ls-text { font-size: var(--rx-fs-lead); line-height: 1.75; max-width: 34em; display: grid; gap: 12px; padding-bottom: 16px; }
.rx-pg-lesson .rx-ls-text h2 { font-size: 24px; margin-top: 12px; }
.rx-pg-lesson .rx-ls-text ul { display: grid; gap: 8px; padding-inline-start: 28px; list-style: disc; }
.rx-pg-lesson .rx-transcript { max-width: 34em; border: 1.5px solid var(--rx-border-strong); border-radius: var(--rx-r-card); background: #fff; }
.rx-pg-lesson .rx-transcript summary { min-height: 52px; display: flex; align-items: center; padding: 0 16px; font-weight: 700; cursor: pointer; font-size: var(--rx-fs-sm); }
.rx-pg-lesson .rx-transcript p { padding: 0 16px 16px; font-size: var(--rx-fs-body); }
.rx-pg-lesson .rx-done-btn { justify-self: start; }
.rx-pg-lesson .rx-skip-sim { align-self: flex-start; }
.rx-pg-lesson .rx-ls-nav { position: sticky; bottom: 0; margin-top: auto; margin-inline: -32px; padding: 12px 32px 16px; background: var(--rx-bg); border-top: 1px solid var(--rx-line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; z-index: 30; }
.rx-pg-lesson .rx-nav-btn { min-height: var(--rx-nav-h); justify-content: flex-start; gap: 14px; padding-inline: 20px; text-align: start; border-radius: 20px; }
.rx-pg-lesson .rx-nav-btn .rx-tx { display: grid; gap: 2px; min-width: 0; line-height: 1.25; }
.rx-pg-lesson .rx-nav-btn small { font-size: var(--rx-fs-sm); font-weight: 500; }
.rx-pg-lesson .rx-nav-btn strong { font-size: var(--rx-fs-lead); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-pg-lesson .rx-nav-btn.rx-next { justify-content: space-between; }
.rx-pg-lesson .rx-nav-btn .rx-icon { width: 32px; height: 32px; stroke-width: 2.6; }
.rx-pg-lesson .rx-scrim { display: none; }
.rx-pg-lesson .rx-shared-inline { display: none; align-self: flex-start; }
@media (max-width: 1100px) {
  .rx-pg-lesson .rx-prog { display: none; }
  .rx-pg-lesson .rx-prog-inline { display: grid; min-width: 0; max-width: 420px; }
}
@media (max-width: 900px) {
  .rx-pg-lesson .rx-ls-wrap { grid-template-columns: minmax(0, 1fr); }
  .rx-pg-lesson .rx-ls-title { display: none; }
  .rx-pg-lesson .rx-list-btn { display: inline-flex; }
  .rx-pg-lesson .rx-ls-top { --topbar-h: 56px; padding: 6px 12px; gap: 8px; }
  .rx-pg-lesson .rx-ls-top .rx-back { padding-inline: 12px; }
  .rx-pg-lesson .rx-ls-top .rx-tag { display: none; }
  .rx-pg-lesson .rx-shared-inline { display: inline-flex; }
  .rx-pg-lesson .rx-ls-side { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(88vw, 380px); height: 100vh; z-index: 80; transform: translateX(100%); visibility: hidden; transition: transform var(--rx-dur), visibility 0s linear var(--rx-dur); box-shadow: var(--rx-sh-lg); padding-bottom: 24px; }
  html.rx-drawer-open .rx-ls-side { transform: none; visibility: visible; transition: transform var(--rx-dur); }
  html.rx-drawer-open .rx-scrim { display: block; position: fixed; inset: 0; background: rgba(30, 26, 46, .6); z-index: 70; }
  .rx-pg-lesson .rx-drawer-close { display: inline-flex; margin: 12px 16px 0; }
  .rx-pg-lesson .rx-ls-main { padding: 16px 16px 0; gap: 16px; }
  .rx-pg-lesson .rx-ls-head h1 { font-size: 26px; flex: 1 1 180px; }
  .rx-pg-lesson .rx-ls-head p { margin-top: 0; font-size: var(--rx-fs-body); }
  .rx-pg-lesson .rx-ls-nav { margin-inline: -16px; padding: 10px 16px 12px; padding-inline-end: var(--rx-uw-safe); gap: 12px; }
  .rx-pg-lesson .rx-nav-btn { min-height: 64px; padding-inline: 14px; justify-content: center; gap: 8px; }
  .rx-pg-lesson .rx-nav-btn .rx-tx small { font-size: var(--rx-fs-lead); font-weight: 700; }
  .rx-pg-lesson .rx-nav-btn strong { display: none; }
  .rx-pg-lesson .rx-nav-btn.rx-next { justify-content: center; }
  .rx-pg-lesson .rx-nav-btn .rx-long { display: none; }
  .rx-pg-lesson .rx-play { width: 72px; height: 72px; }
  .rx-pg-lesson .rx-play .rx-icon { width: 34px; height: 34px; }
  .rx-pg-lesson .rx-stage-int { min-height: 400px; }
  .rx-pg-lesson .rx-ls-text { font-size: var(--rx-fs-body); }
  .rx-pg-lesson .rx-ls-top .rx-back .rx-lbl { font-size: var(--rx-fs-sm); }
}
@media (min-width: 901px) {
  .rx-pg-lesson .rx-ls-nav { padding-inline-end: calc(32px + var(--rx-uw-safe) - 32px); }
}

/* ===== 05-my-courses.html -> .rx-pg-my ===== */
.rx-pg-my .rx-dash { padding-block: 32px 64px; }
.rx-pg-my .rx-dash-head { display: grid; gap: 16px; }
.rx-pg-my .rx-dash h1 { font-size: var(--rx-fs-h1); }
.rx-pg-my .rx-tools-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-block: 28px 16px; }
.rx-pg-my .rx-tools-row h2 { font-size: var(--rx-fs-h2); }
.rx-pg-my .rx-tools-row h2 .rx-count { font-size: var(--rx-fs-body); font-weight: 400; color: var(--rx-text-muted); }
.rx-pg-my .rx-seg { display: inline-flex; border: 2px solid var(--rx-primary); border-radius: var(--rx-r-pill); overflow: hidden; }
.rx-pg-my .rx-seg a { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 24px; font-weight: 700; color: var(--rx-primary); text-decoration: none; background: #fff; }
.rx-pg-my .rx-seg a[aria-current="true"] { background: var(--rx-primary); color: #fff; }
.rx-pg-my .rx-search { display: flex; gap: 8px; max-width: 560px; margin-bottom: 24px; align-items: end; }
.rx-pg-my .rx-search .rx-f { flex: 1; }
.rx-pg-my .rx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rx-pg-my .rx-grid > li { display: flex; }
.rx-pg-my .rx-grid > li > .rx-course-card { width: 100%; }
.rx-pg-my .rx-cc-foot .rx-quiet { position: relative; z-index: 2; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--rx-text-muted); font-size: var(--rx-fs-sm); }
.rx-pg-my .rx-foot-links { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.rx-pg-my .rx-foot-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--rx-text-muted); }
.rx-pg-my .rx-empty { display: none; text-align: center; padding: 56px 16px; background: #fff; border: 1px dashed var(--rx-border-strong); border-radius: var(--rx-r-lg); margin-top: 8px; }
.rx-pg-my .rx-empty .rx-icon { width: 48px; height: 48px; color: var(--rx-accent); margin: 0 auto 12px; }
.rx-pg-my .rx-empty h2 { font-size: var(--rx-fs-h3); margin-bottom: 8px; }
.rx-pg-my .rx-empty p { color: var(--rx-text-muted); margin: 0 auto 20px; max-width: 46ch; }
@media (max-width: 1000px) {
  .rx-pg-my .rx-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  .rx-pg-my .rx-dash { padding-block: 20px 48px; padding-bottom: var(--rx-uw-safe); }
  .rx-pg-my .rx-dash h1 { font-size: 28px; }
  .rx-pg-my .rx-grid { grid-template-columns: 1fr; gap: 16px; }
  .rx-pg-my .rx-search { flex-direction: column; align-items: stretch; max-width: none; }
  .rx-pg-my .rx-seg { width: 100%; }
  .rx-pg-my .rx-seg a { flex: 1; justify-content: center; }
}

/* ===== 06-login.html -> .rx-pg-auth ===== */
.rx-pg-auth .rx-auth { padding-block: 48px 80px; }
.rx-pg-auth .rx-auth-grid { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 48px; align-items: stretch; max-width: 1040px; margin-inline: auto; }
.rx-pg-auth .rx-auth-card { background: #fff; border: 1px solid var(--rx-line); border-radius: var(--rx-r-lg); box-shadow: var(--rx-sh-lg); padding: 36px; display: grid; gap: 20px; align-content: start; }
.rx-pg-auth .rx-auth-logo { display: flex; align-items: center; gap: 12px; }
.rx-pg-auth .rx-auth-logo img { height: 44px; width: auto; }
.rx-pg-auth .rx-auth-logo b { color: var(--rx-primary); font-size: 20px; }
.rx-pg-auth .rx-auth-card h1 { font-size: 28px; }
.rx-pg-auth .rx-auth-card .rx-sub { color: var(--rx-text-muted); margin-top: -8px; }
.rx-pg-auth form { display: grid; gap: 18px; }
.rx-pg-auth .rx-f { display: grid; gap: 6px; }
.rx-pg-auth .rx-f label { font-weight: 700; font-size: 16px; }
.rx-pg-auth .rx-f .rx-hint { font-size: 14px; color: var(--rx-text-muted); }
.rx-pg-auth .rx-input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--rx-border-strong); border-radius: var(--rx-r-field); background: #fff; font-size: 16px; color: var(--rx-text); }
.rx-pg-auth .rx-input:focus-visible { outline: 3px solid var(--rx-focus); outline-offset: 2px; border-color: var(--rx-focus); }
.rx-pg-auth .rx-pw { position: relative; }
.rx-pg-auth .rx-pw .rx-input { padding-inline-end: 96px; }
.rx-pg-auth .rx-pw-btn { position: absolute; inset-inline-end: 4px; top: 2px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--rx-primary); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 6px; border-radius: var(--rx-r-field); }
.rx-pg-auth .rx-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; }
.rx-pg-auth .rx-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.rx-pg-auth .rx-check input { width: 22px; height: 22px; accent-color: var(--rx-primary); }
.rx-pg-auth .rx-row a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 700; font-size: 16px; }
.rx-pg-auth .rx-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--rx-r-card); font-size: 16px; font-weight: 500; }
.rx-pg-auth .rx-alert .rx-icon { margin-top: 2px; width: 20px; height: 20px; }
.rx-pg-auth .rx-alert-error { background: var(--rx-danger-bg); color: #7A1710; }
.rx-pg-auth .rx-alert-error .rx-icon { color: var(--rx-danger); }
.rx-pg-auth .rx-alert-info { background: var(--rx-tint); color: var(--rx-primary-ink); }
.rx-pg-auth .rx-alert-info .rx-icon { color: var(--rx-primary); }
.rx-pg-auth .rx-help { border-top: 1px solid var(--rx-line); padding-top: 18px; display: grid; gap: 4px; }
.rx-pg-auth .rx-help p { color: var(--rx-text-muted); font-size: 16px; }
.rx-pg-auth .rx-help a.rx-buy { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-height: 44px; }
.rx-pg-auth .rx-sent { text-align: center; justify-items: center; }
.rx-pg-auth .rx-sent .rx-big { width: 64px; height: 64px; border-radius: 50%; background: var(--rx-success-bg); color: var(--rx-success); display: grid; place-items: center; }
.rx-pg-auth .rx-sent .rx-big .rx-icon { width: 32px; height: 32px; }
.rx-pg-auth .rx-side { background: var(--rx-grad-hero); color: #fff; border-radius: var(--rx-r-lg); padding: 40px; position: relative; overflow: hidden; display: grid; gap: 20px; align-content: center; }
.rx-pg-auth .rx-side::before { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-end: -140px; bottom: -180px; background: radial-gradient(closest-side, rgba(164, 103, 234, .4), transparent); }
.rx-pg-auth .rx-side > * { position: relative; }
.rx-pg-auth .rx-side h2 { color: #fff; font-size: 32px; }
.rx-pg-auth .rx-side p { color: var(--rx-on-dark-muted); font-size: 18px; }
.rx-pg-auth .rx-side ul { display: grid; gap: 10px; }
.rx-pg-auth .rx-side li { display: flex; gap: 10px; align-items: center; }
.rx-pg-auth .rx-side .rx-icon { color: var(--rx-cta); width: 20px; height: 20px; }
.rx-pg-auth .rx-side .rx-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.rx-pg-auth .rx-side .rx-mini img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 12px 28px rgba(10, 2, 30, .4); }
.rx-pg-auth .rx-side .rx-btn { justify-self: start; }
@media (max-width: 900px) {
  .rx-pg-auth .rx-auth { padding-block: 24px 48px; }
  .rx-pg-auth .rx-auth-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rx-pg-auth .rx-side { padding: 28px 20px; }
  .rx-pg-auth .rx-side .rx-mini { display: none; }
  .rx-pg-auth .rx-side h2 { font-size: 24px; }
  .rx-pg-auth .rx-side p { font-size: 16px; }
}
@media (max-width: 600px) {
  .rx-pg-auth .rx-auth-card { padding: 24px 20px; }
  .rx-pg-auth .rx-auth-card h1 { font-size: 24px; }
}
.rx-pg-auth .rx-input { min-height: 52px; font-size: var(--rx-fs-body); }
.rx-pg-auth .rx-auth-card h1 { font-size: var(--rx-fs-h2); }
.rx-pg-auth .rx-auth-card .rx-sub { font-size: var(--rx-fs-body); }
.rx-pg-auth .rx-f label { font-size: var(--rx-fs-sm); }
.rx-pg-auth .rx-check-pw { margin-top: -6px; }
.rx-pg-auth .rx-f .rx-hint { font-size: 16px; }
.rx-pg-auth .rx-remember small { display: block; font-size: var(--rx-fs-sm); color: var(--rx-text-muted); }
.rx-pg-auth .rx-remember { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; }
.rx-pg-auth .rx-remember input { width: 24px; height: 24px; accent-color: var(--rx-primary); margin-top: 2px; }
.rx-pg-auth .rx-row-end { display: flex; justify-content: flex-start; }
.rx-pg-auth .rx-alert strong { margin-bottom: 2px; }
.rx-pg-auth .rx-help a.rx-buy { font-size: var(--rx-fs-body); }
.rx-pg-auth .rx-auth-card { padding: 32px; }
.rx-pg-auth .rx-side .rx-mini { align-items: start; }
.rx-pg-auth .rx-side .rx-mini img { height: auto; }
@media (max-width: 900px) {
  .rx-pg-auth .rx-auth { padding-block: 16px 40px; }
  .rx-pg-auth .rx-side .rx-btn { justify-self: stretch; }
}
@media (max-width: 600px) {
  .rx-pg-auth .rx-auth-card { padding: 20px 16px; }
  .rx-pg-auth .rx-auth-card h1 { font-size: 26px; }
  .rx-pg-auth .rx-auth { padding-bottom: var(--rx-uw-safe); }
}

/* ==========================================================================
   Hand-written layer: what the mockups do with JS/role switches, and Tutor adaptations
   ========================================================================== */

/* ---- generic ---- */
:where(.rx-ui) h1 { font-size: var(--rx-fs-h1); }
:where(.rx-ui) h2 { font-size: var(--rx-fs-h2); }
:where(.rx-ui) h3 { font-size: var(--rx-fs-h3); }
.rx-btn[aria-disabled="true"], .rx-pg[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.rx-grid > li[hidden] { display: none; }
#tutor-pn-permission, .tutor-pn-permission-wrap { display: none !important; }
.rx-content { min-height: 40vh; }
.rx-ui .rx-skip-links { z-index: 1000; }
.rx-pg-home, .rx-pg-courses, .rx-pg-course, .rx-pg-my, .rx-pg-auth { background: transparent; }
.rx-prose > * + * { margin-top: 1em; }
.rx-prose ul, .rx-prose ol { padding-inline-start: 1.5em; list-style: revert; }
.rx-prose a { color: var(--rx-link); text-decoration: underline; }
.rx-prose img { max-width: 100%; height: auto; }
/* links inside lesson / course / quiz text (replaces the robotix-content-links snippet CSS) */
.rx-ls-text a:not(.rx-btn), .tutor-lesson-wrapper a:not(.rx-btn), .tutor-quiz-wrapper .tutor-quiz-question-desc a, .tutor-assignment-description a:not(.rx-btn) { color: var(--rx-link); text-decoration: underline; }
/* ".rx-final" small print on the dark closing strip */
.rx-pg-home .rx-final small a { color: #fff; }

/* ---- pager (archive, my courses) ---- */
.rx-pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.rx-pg { min-width: 44px; min-height: 44px; padding: 8px 14px; border-radius: var(--rx-r-field); border: 1.5px solid var(--rx-border-strong); background: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: var(--rx-text); gap: 6px; }
.rx-pager-status { font-weight: 700; }
@media (max-width: 640px) { .rx-pager { justify-content: center; } .rx-pager-status { width: 100%; text-align: center; order: -1; } .rx-pager .rx-pg { flex: 1; } }

/* ---- home: logged-in visitors ---- */
@media (max-width: 600px) { .rx-pg-home.rx-is-user .rx-hero { padding-block: 40px 48px; } }
.rx-pg-home.rx-is-user .rx-hero { padding-block: 64px 80px; }

/* ---- archive ---- */
.rx-pg-courses .rx-empty { display: block; }
.rx-pg-courses > .rx-results .rx-grid { margin: 0; }

/* ---- my courses ---- */
.rx-pg-my .rx-empty { display: block; }
.rx-pg-my .rx-dash-nav { display: flex; flex-wrap: wrap; gap: 8px; }
/* One menu for everybody (built by the ui-rules snippet). If Tutor's own dashboard chrome, the teacher bar or the settings tabs ever
   reach the page (a plugin update, a Pro add-on), keep them out of sight: only the whitelisted links above are the menu. */
.rx-pg-my .rx-teach,
.rx-pg-my .tutor-dashboard-left-menu,
.rx-pg-my .tutor-dashboard-menu-divider,
.rx-pg-my .tutor-dashboard-menu-divider-header,
.rx-pg-my .tutor-dashboard-content-inner .tutor-nav-link[href*="settings/social-profile"],
.rx-pg-my .tutor-dashboard-content-inner .tutor-nav-link[href*="settings/withdraw-settings"] { display: none !important; }
.rx-pg-my .rx-dash-content { min-width: 0; }
.rx-pg-my .rx-dash-content > .tutor-dashboard-content-inner, .rx-pg-my .rx-dash-content .tutor-dashboard-content-inner { padding: 0; }
.rx-pg-my .rx-settings-head { display: grid; gap: 16px; margin-bottom: 24px; }
.rx-pg-my .rx-pw-form { display: grid; gap: 18px; max-width: 520px; }
.rx-pg-my .rx-f { display: grid; gap: 6px; }
.rx-pg-my .rx-f label { font-weight: 700; font-size: var(--rx-fs-sm); }
.rx-unenroll { position: relative; z-index: 2; text-align: center; }
.rx-unenroll form { margin: 0 !important; display: block; }
.rx-unenroll button, .rx-unenroll a, .rx-unenroll input[type="submit"] { background: none !important; border: 0 !important; color: var(--rx-text-muted) !important; font-size: var(--rx-fs-sm) !important; text-decoration: underline; min-height: 44px; padding: 0 8px; cursor: pointer; font-family: inherit; }

/* ---- login / reset ---- */
.rx-pg-auth .rx-v-sent { display: grid; gap: 16px; justify-items: center; text-align: center; }
.rx-pg-auth .rx-sent .rx-big { width: 64px; height: 64px; border-radius: 50%; background: var(--rx-success-bg); color: var(--rx-success); display: grid; place-items: center; }
.rx-pg-auth .rx-sent .rx-big .rx-icon { width: 32px; height: 32px; }
.rx-pg-auth .rx-sent .rx-alert { text-align: start; }
.rx-pg-auth .rx-pw-form { display: grid; gap: 18px; }
.rx-pg-auth .rx-check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.rx-pg-auth .rx-check input { width: 24px; height: 24px; accent-color: var(--rx-primary); }
.rx-pg-auth .rx-help .rx-buy { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; min-height: 44px; font-size: var(--rx-fs-body); }
.rx-pg-auth .rx-help a { color: var(--rx-primary); }
.rx-pg-auth .rx-help a[href^="tel"] { color: inherit; font-weight: 700; }
.rx-pg-auth.rx-auth-force .rx-auth-grid { grid-template-columns: minmax(0, 520px); justify-content: center; }
.rx-pg-auth .rx-auth-card form { display: grid; gap: 18px; }
.rx-pg-auth .rx-input[aria-invalid="true"] { border-color: var(--rx-danger); border-width: 2px; }
.rx-pg-auth .rx-auth-card .rx-alert a { color: inherit; }
.rx-pg-auth .rx-auth-card .tutor-login-error:empty { display: none; }

/* ---- course page ---- */
.rx-pg-course .rx-buy-dark { margin: 0; }
.rx-pg-course .rx-go-card .rx-bar { margin-block: 2px 6px; }

/* ---- lesson frame (Tutor markup lives inside .rx-entry) ---- */
.rx-pg-lesson { background: var(--rx-bg); min-height: 100vh; }
.rx-pg-lesson .rx-ls-main { display: block; padding: 0; min-height: 0; gap: 0; min-width: 0; }
.rx-pg-lesson #tutor-single-entry-content.rx-entry { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 24px 32px 0; min-height: calc(100vh - 67px); width: 100%; }
.rx-pg-lesson.rx-kind-int #tutor-single-entry-content.rx-entry { height: calc(100vh - 67px); min-height: 0; }
.rx-pg-lesson .rx-ls-side ul { padding: 0; margin: 0; }
.rx-pg-lesson .rx-ls-side a { text-decoration: none; }
.rx-pg-lesson .rx-ls-head h1 { font-size: 30px; }
.rx-pg-lesson .rx-ls-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.rx-pg-lesson .rx-ls-actions .rx-done-btn { min-height: var(--rx-btn-h); font-size: var(--rx-fs-sm); }
.rx-pg-lesson .rx-done-form { margin: 0; }
.rx-pg-lesson .rx-tag-ok { background: var(--rx-success-bg); color: var(--rx-success); justify-self: start; }
.rx-pg-lesson .rx-row.rx-done .rx-n { display: none; }
.rx-pg-lesson .rx-row.rx-done .rx-ck { display: block; color: #fff; }
.rx-pg-lesson .rx-row.rx-done .rx-num { background: var(--rx-success); border-color: var(--rx-success); }
.rx-pg-lesson .rx-row.rx-locked { opacity: .65; cursor: not-allowed; }
.rx-pg-lesson .rx-row.rx-locked:hover { background: transparent; }
.rx-pg-lesson .rx-ls-nav { margin-top: auto; }
.rx-pg-lesson .rx-nav-btn[aria-disabled="true"] { opacity: .5; }
.rx-pg-lesson .rx-nav-btn.rx-prev { flex-direction: row; }
/* video stage: 16:9, at most 70vh tall */
.rx-pg-lesson .rx-stage-video { width: min(100%, calc(min(70vh, 100vh - 290px) * 16 / 9)); background: #111827; }
.rx-pg-lesson .rx-stage-video .tutor-video-player-wrapper, .rx-pg-lesson .rx-stage-video .tutor-video-player, .rx-pg-lesson .rx-stage-video .plyr, .rx-pg-lesson .rx-stage-video .tutor-ratio { width: 100%; height: 100%; }
.rx-pg-lesson .rx-stage-video video { width: 100%; height: 100%; object-fit: contain; }
.rx-pg-lesson .rx-stage-video .tutor-ratio { position: relative; }
.rx-pg-lesson .rx-stage-video iframe { width: 100%; height: 100%; border: 0; }
.rx-pg-lesson .rx-stage-video .plyr { --plyr-color-main: var(--rx-primary); --plyr-font-family: var(--rx-font); --plyr-font-size-base: 16px; }
.rx-pg-lesson .rx-stage-video .plyr__control--overlaid { width: 96px; height: 96px; display: grid; place-items: center; padding: 0; background: #fff; color: var(--rx-primary); box-shadow: var(--rx-sh-md); }
.rx-pg-lesson .rx-stage-video .plyr__control--overlaid svg { width: 44px; height: 44px; left: 0; }
@media (max-width: 900px) {
  .rx-pg-lesson #tutor-single-entry-content.rx-entry { padding: 16px 16px 0; gap: 16px; }
  .rx-pg-lesson.rx-kind-int #tutor-single-entry-content.rx-entry { height: auto; min-height: calc(100vh - 60px); }
  .rx-pg-lesson .rx-stage-video .plyr__control--overlaid { width: 72px; height: 72px; }
  .rx-pg-lesson .rx-stage-video .plyr__control--overlaid svg { width: 34px; height: 34px; }
}
/* iframe produced by video/external_url.php or embedded.php inside the stage */
.rx-pg-lesson .rx-stage-int .rx-frame-wrap { position: absolute; inset: 0; }
.rx-pg-lesson .rx-stage-int .rx-frame { width: 100%; height: 100%; border: 0; }
/* quiz / assignment pages keep Tutor's own markup */
.rx-pg-lesson .tutor-quiz-wrapper, .rx-pg-lesson .tutor-assignment-wrapper { max-width: 100%; }
.rx-pg-lesson .tutor-quiz-wrapper { margin-top: 24px; }

/* ---- Tutor leftovers on pages we do not redesign (settings, profile): keep them on the palette ---- */
.tutor-btn-primary, .tutor-btn.tutor-btn-primary { background-color: var(--rx-primary); border-color: var(--rx-primary); color: #fff; }
.tutor-btn-primary:hover { background-color: var(--rx-primary-hover); border-color: var(--rx-primary-hover); }
.tutor-form-control, .tutor-form-select { border-color: var(--rx-border-strong); min-height: 48px; font-size: 16px; }
.tutor-dashboard-content { padding: 0; }

/* ---- forced colors (Windows high contrast) ---- */
@media (forced-colors: active) {
  .rx-btn-cta, .rx-btn-outline-light { forced-color-adjust: none; border: 2px solid ButtonText; background: ButtonFace; color: ButtonText; }
}

/* ==========================================================================
   QA round 1 fixes
   ========================================================================== */

/* QA-002: UserWay accessibility widget -> bottom, end side (left in RTL), inside the reserved 88x88 area.
   (Also pinned by assets/js/robotix-ui.js in case the widget writes inline !important styles.) */
html body .userway_buttons_wrapper,
html body .userway_buttons_wrapper[style] {
  top: auto !important;
  right: auto !important;
  bottom: 16px !important;
  left: 16px !important;
  inset-block-start: auto !important;
  /* QA-002 (round 2): UserWay adds translateX(-44px) in RTL, which pushed the 44px icon half off-screen. */
  transform: none !important;
  translate: none !important;
}
/* The icon (#userwayAccessibilityIcon) is position:relative inside the fixed wrapper: it follows the wrapper, no offsets of its own. */
html body #userwayAccessibilityIcon { top: auto !important; right: auto !important; bottom: auto !important; left: auto !important; margin: 0 !important; }
/* Lesson top bar: not glued to the top-right corner (the "הקורסים שלי" button keeps clear air). */
.rx-pg-lesson .rx-ls-top { padding-inline: 24px; }
@media (max-width: 900px) {
  .rx-pg-lesson .rx-ls-top { padding-inline: 16px; }
}

/* QA-006: focus on the (white) desktop header = dark ring + white halo; yellow only in the dark mobile drawer. */
.rx-site-header .rx-nav-link:focus-visible,
.rx-site-header .rx-brand:focus-visible,
.rx-site-header .rx-hdr-actions :focus-visible {
  outline: 3px solid var(--rx-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(255, 255, 255, .92);
}
@media (max-width: 900px) {
  .rx-site-header .rx-nav .rx-nav-link:focus-visible,
  .rx-site-header .rx-nav .rx-btn:focus-visible {
    outline-color: var(--rx-focus-on-dark);
    outline-offset: -3px;
    box-shadow: 0 0 0 2px var(--rx-primary-ink);
  }
}

/* QA-013: phone links inside sentences are real 44px touch targets. */
.rx-ui a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: var(--rx-touch, 44px);
}

/* ==========================================================================
   QA round 2 fixes
   ========================================================================== */

/* QA-019: the course hero sits flush under the header (mockup 03). A ~40px strip of page background showed between the
   header border and the hero. Nothing of ours sets it, so the usual sources are zeroed on the course page only:
   padding/margin of the #content wrapper, margins of <main> and the band, and any wrapper a plugin prints before the page. */
body.single-courses #content,
body.single-courses .site-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
body.single-courses #content > :not(.rx-pg-course):not(script):not(style):not(link) {
  margin-block: 0 !important;
  padding-block: 0 !important;
  min-height: 0 !important;
}
.rx-pg-course,
.rx-pg-course > main,
.rx-pg-course > main > .rx-band {
  margin-top: 0 !important;
}
.rx-pg-course > main { padding-top: 0 !important; }

/* Gemini course-import page (shortcode markup is inline-styled by the snippet, so !important is needed). */
.robotix-course-import button[type="submit"],
.robotix-course-import a[download] {
  background: var(--rx-primary) !important;
  color: #fff !important;
  border-radius: var(--rx-r-pill, 999px) !important;
  text-decoration: none !important;
  transition: background-color .15s ease;
}
.robotix-course-import button[type="submit"]:hover,
.robotix-course-import a[download]:hover { background: var(--rx-primary-hover) !important; }
.robotix-course-import textarea {
  border: 1px solid var(--rx-border-strong) !important;
  border-radius: var(--rx-r-md, 12px) !important;
}
.robotix-course-import textarea:focus { border-color: var(--rx-primary) !important; }


/* ---- staff edit shortcuts (course page, lesson top bar, my courses cards, teacher dashboard) ---- */
.rx-edit-btn { min-height: 44px; }
.rx-edit-btn .rx-icon { width: 18px; height: 18px; }
.rx-staff-edit { margin-top: 20px; }
.rx-on-dark .rx-edit-btn { color: #fff; border-color: rgba(255, 255, 255, .55); }
@media (hover: hover) and (pointer: fine) { .rx-on-dark .rx-edit-btn:hover { background: rgba(255, 255, 255, .16); } }
.rx-course-card .rx-edit-btn { position: relative; z-index: 2; }
.rx-edit-menu { position: relative; }
.rx-edit-menu > summary { list-style: none; }
.rx-edit-menu > summary::-webkit-details-marker { display: none; }
.rx-edit-menu[open] > summary { background: var(--rx-tint); }
.rx-edit-list { position: absolute; inset-block-start: calc(100% + 6px); inset-inline-end: 0; min-width: 200px; display: grid; background: var(--rx-surface); border: 1px solid var(--rx-line); border-radius: var(--rx-r-md, 12px); box-shadow: var(--rx-sh-lg); padding: 6px; z-index: 60; }
.rx-edit-list a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 8px; color: var(--rx-primary); font-weight: 700; font-size: var(--rx-fs-sm); text-decoration: none; white-space: nowrap; }
.rx-edit-list a .rx-icon { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .rx-edit-list a:hover { background: var(--rx-tint); } }
@media (max-width: 720px) { .rx-pg-lesson .rx-ls-top .rx-edit-btn > span { display: none; } .rx-pg-lesson .rx-ls-top .rx-edit-btn { padding-inline: 12px; } }

/* Tutor's own teacher-dashboard cards (templates/dashboard/my-courses.php, not overridden): pencil + kebab menu, purple, 44px targets. */
.rx-pg-my .tutor-iconic-btn-group { gap: 4px; }
.rx-pg-my .tutor-iconic-btn { display: inline-flex !important; visibility: visible !important; width: 44px; height: 44px; margin: 0; color: var(--rx-primary); border-color: var(--rx-primary); background: var(--rx-surface); }
.rx-pg-my .tutor-iconic-btn:hover, .rx-pg-my .tutor-iconic-btn:focus-visible { color: #fff; background: var(--rx-primary); border-color: var(--rx-primary); }
.rx-pg-my .tutor-iconic-btn [class^="tutor-icon-"], .rx-pg-my .tutor-iconic-btn [class*=" tutor-icon-"] { font-size: 20px; }
.rx-pg-my .tutor-dropdown { min-width: 190px; text-align: start; z-index: 60; }
.rx-pg-my .tutor-dropdown .tutor-dropdown-item { display: flex; align-items: center; gap: 8px; min-height: 44px; text-align: start; font-size: var(--rx-fs-sm); }
