/* Install and labs pages */
.page-hero { padding-top: 168px; position: relative; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; inset: 0 0 -200px; z-index: -1; background: radial-gradient(50% 60% at 75% 20%, rgba(34, 99, 237, .2), transparent 70%); }
.page-hero h1 { font-size: clamp(3rem, 6.4vw, 6rem); }
.page-hero .lead { margin-top: 28px; }
.jump { margin-top: 36px; }
.jump a { text-decoration: none; }

.dl-panel { margin-top: 40px; padding: 28px; border-radius: var(--oe-r-window); background: var(--oe-deep); border: 1px solid var(--oe-line); }
.dl-panel .hero__actions { margin-top: 0; }
.dl-panel .oe-status { margin-top: 18px; }

.platform { padding-top: var(--oe-section); scroll-margin-top: 24px; }
.platform__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: var(--oe-space-7); }
.platform__req { margin-top: 12px; color: var(--oe-text-muted); }
.player { border-radius: var(--oe-r-window); overflow: hidden; background: #000; box-shadow: var(--oe-shadow-window); }
.player video { width: 100%; aspect-ratio: 16 / 9; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 22px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; color: var(--oe-text); }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--oe-line-strong);
  font-family: var(--oe-mono); font-size: .875rem; color: var(--oe-glow); }
.steps b { color: var(--oe-text-strong); font-weight: 600; }
.steps code { display: block; margin-top: 10px; padding: 12px 14px; border-radius: var(--oe-r-control); background: rgba(5, 10, 18, .8); border: 1px solid var(--oe-line);
  font-size: .8125rem; color: var(--oe-text-strong); overflow-x: auto; white-space: nowrap; }
.why { margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--oe-beam); background: rgba(34, 99, 237, .08); border-radius: 0 var(--oe-r-control) var(--oe-r-control) 0; color: var(--oe-text); font-size: .975rem; }
.why a { color: var(--oe-text-strong); }
.safety { margin-top: var(--oe-section); padding: 32px; border-radius: var(--oe-r-window); border: 1px solid rgba(89, 211, 154, .4); background: rgba(47, 163, 107, .08); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; }
.safety svg { width: 48px; height: 48px; fill: none; stroke: var(--oe-ok); stroke-width: 1.6; }
.safety h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); max-width: none; }
.safety p { margin-top: 10px; color: var(--oe-text); }
.page-end { padding-bottom: var(--oe-section); }

/* Labs */
.howto { margin-top: var(--oe-space-7); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: h; list-style: none; padding: 0; }
.howto li { counter-increment: h; padding: 22px; border-radius: var(--oe-r-card); background: var(--oe-deep); border: 1px solid var(--oe-line); color: var(--oe-text); }
.howto li::before { content: counter(h); display: block; margin-bottom: 10px; font-family: var(--oe-mono); color: var(--oe-glow); }
.course-nav { position: sticky; top: 0; z-index: 20; margin-top: var(--oe-space-8); padding-top: 14px; padding-bottom: 14px; background: linear-gradient(var(--oe-night) 70%, transparent); }
.jump .oe-seg a, .course-nav .oe-seg a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 9px; color: var(--oe-text); text-decoration: none; font-weight: 500; white-space: nowrap; }
.jump .oe-seg a:hover, .course-nav .oe-seg a:hover { color: var(--oe-text-strong); background: rgba(110, 160, 255, .1); }
.course-sec { padding-top: var(--oe-space-9); scroll-margin-top: 80px; }
.course-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.course-sec__head p { margin-top: 12px; color: var(--oe-text); max-width: 38em; }
.course-sec__dl { display: flex; flex-wrap: wrap; gap: 10px; }
.course-sec__dl .oe-btn { min-height: 48px; font-size: .9375rem; }
.lab-list { margin: var(--oe-space-6) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--oe-line); }
.lab { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--oe-line); }
.lab__n { font-family: var(--oe-mono); font-size: .875rem; color: var(--oe-text-muted); }
.lab h3 { font-size: 1.15rem; letter-spacing: -.01em; }
.lab p { margin-top: 4px; font-size: .9rem; color: var(--oe-text-muted); }
.lab__links { display: flex; gap: 6px; }
.lab__links a { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--oe-line); color: var(--oe-text); text-decoration: none; font-size: .8125rem; font-weight: 500; white-space: nowrap; }
.lab__links a:hover { border-color: var(--oe-beam); color: var(--oe-text-strong); }

@media (max-width: 900px) {
  .page-hero { padding-top: 112px; }
  .jump .oe-seg { overflow-x: auto; max-width: 100%; flex-wrap: nowrap; }
  .platform__grid, .howto { grid-template-columns: minmax(0, 1fr); }
  .lab { grid-template-columns: 40px minmax(0, 1fr); }
  .lab__links { grid-column: 2; flex-wrap: wrap; }
  .course-nav .oe-seg { overflow-x: auto; max-width: 100%; flex-wrap: nowrap; }
  .safety { grid-template-columns: minmax(0, 1fr); }
}

/* v4 download page */
.dl-start { margin-top: 28px; padding: 16px 20px; border-radius: var(--oe-r-card); background: rgba(47, 163, 107, .12); border: 1px solid rgba(89, 211, 154, .45); color: var(--oe-text-strong); }
.dl-start.warn { background: rgba(255, 200, 97, .1); border-color: rgba(255, 200, 97, .45); }
.dl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.dl-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border-radius: var(--oe-r-window); background: var(--oe-deep); border: 1px solid var(--oe-line); }
.dl-card.is-yours { border-color: var(--oe-beam); box-shadow: var(--oe-glow-signal); }
.dl-card h2 { font-size: 2rem; }
.dl-card .req { color: var(--oe-text-muted); font-size: .9375rem; margin-bottom: 8px; }
.dl-card .ver { min-height: 1.4em; font-size: .875rem; color: var(--oe-text-muted); }
.dl-card .oe-copy { width: 100%; }
.dl-card > .oe-link { margin-top: auto; font-size: .9375rem; }
#release-status.available { display: none; }
#release-status { margin-top: 20px; }
.release.advanced { margin-top: 28px; max-width: none; }
.release.advanced code { font-size: .8125rem; color: var(--oe-text-strong); overflow-wrap: anywhere; }
@media (max-width: 900px) { .dl-cards { grid-template-columns: minmax(0, 1fr); } }

/* Privacy and cookie notice */
.legal { padding-bottom: var(--oe-space-9); }
.legal > *, .legal > div[lang] > * { max-width: 860px; }
.legal .tbl { max-width: 1040px; }
.legal h2 { margin-top: var(--oe-space-8); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.legal h3 { margin-top: var(--oe-space-6); font-size: 1.2rem; letter-spacing: -.01em; }
.legal p, .legal li { margin-top: 12px; color: var(--oe-text); line-height: 1.65; }
.legal ul { padding-left: 1.2em; }
.legal strong { color: var(--oe-text-strong); }
.legal .tbl { margin-top: 18px; overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th, .legal td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--oe-line); text-align: left; vertical-align: top; color: var(--oe-text); }
.legal th { color: var(--oe-text-muted); font-weight: 500; font-size: .875rem; }
.legal code { font-family: var(--oe-mono); font-size: .875rem; color: var(--oe-glow); }
.legal .legal__actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.legal .legal__actions .oe-btn { min-height: 48px; font-size: .9375rem; }

/* Direct YouTube lesson links and slide links on the labs page */
.lab__links .lab__lesson { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(110, 160, 255, .55);
  background: rgba(34, 99, 237, .18); color: var(--oe-text-strong); font: inherit; font-size: .8125rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.lab__lesson svg { width: 12px; height: 12px; fill: currentColor; }
.lab__lesson span { font-family: var(--oe-mono); font-weight: 400; color: var(--oe-glow); }
.lab__lesson:hover { border-color: var(--oe-beam); background: rgba(34, 99, 237, .3); }
