/* Industry learning hub pages (/learn/*.html) */

:root {
  --lh-bg: #050810;
  --lh-text: #e8f4ff;
  --lh-muted: #8aaabb;
  --lh-dim: #6b8aae;
  --lh-accent: #00e5ff;
  --lh-border: rgba(0, 229, 255, 0.12);
  --lh-panel: rgba(8, 18, 28, 0.72);
  --lh-max: min(72rem, var(--site-header-max, 1200px));
  --lh-prose: 44rem;
  --font-sans: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.lh-page,
body.lh-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--lh-text);
  background: var(--lh-bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 229, 255, 0.06), transparent),
    linear-gradient(180deg, var(--lh-bg) 0%, #070b12 100%);
}

body.lh-page #site-header-mount {
  position: relative;
  z-index: 20;
}

body.lh-page #site-bg {
  --site-bg-opacity: 0.26;
  --site-bg-art-scrim: 0.48;
  --site-bg-art-strength: 0.72;
}

body.lh-page #site-bg[data-art-layer="true"] #site-bg-canvas {
  opacity: calc(var(--site-bg-opacity, 0.26) * 0.45);
}

body.lh-page .site-bg-spotlight {
  opacity: 0.35;
}

body.lh-page a {
  color: var(--lh-accent);
  text-decoration: none;
}

body.lh-page a:hover {
  text-decoration: underline;
}

.lh-main {
  position: relative;
  z-index: 1;
  max-width: var(--lh-max);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.lh-back {
  display: inline-block;
  margin: 1rem 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lh-muted);
  text-decoration: none;
}

.lh-back:hover {
  color: var(--lh-accent);
  text-decoration: none;
}

.lh-hero {
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}

.lh-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lh-accent);
}

.lh-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lh-summary {
  margin: 0 0 1rem;
  max-width: var(--lh-prose);
  color: var(--lh-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.lh-workflow-note {
  margin: 0 0 1rem;
  max-width: var(--lh-prose);
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.04);
}

.lh-workflow-note-label {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lh-accent);
}

.lh-workflow-note p:last-child {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--lh-muted);
}

.lh-hero .legal-notice {
  margin-top: 1rem;
  max-width: var(--lh-prose);
}

/* Table of contents */
.lh-toc {
  margin-bottom: 2.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  background: var(--lh-panel);
}

.lh-toc-head {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lh-dim);
  font-weight: 500;
}

.lh-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
  column-gap: 2rem;
}

@media (min-width: 640px) {
  .lh-toc-list {
    columns: 2;
  }
}

@media (min-width: 960px) {
  .lh-toc-list {
    columns: 3;
  }
}

.lh-toc-list li {
  break-inside: avoid;
  margin: 0 0 0.45rem;
  padding-left: 0.85rem;
  position: relative;
}

.lh-toc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lh-accent);
  opacity: 0.55;
}

.lh-toc-list a {
  font-size: 0.88rem;
  color: var(--lh-text);
  text-decoration: none;
  line-height: 1.4;
}

.lh-toc-list a:hover {
  color: var(--lh-accent);
  text-decoration: underline;
}

.lh-toc-group {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

/* Media teasers */
.lh-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.lh-media-teaser {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--lh-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.lh-media-teaser:hover {
  border-color: rgba(0, 229, 255, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
}

.lh-media-teaser-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0a1018;
  overflow: hidden;
}

.lh-media-teaser-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lh-media-teaser-thumb--audio {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(5, 8, 16, 0.9));
}

.lh-media-teaser-thumb--audio span {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--lh-accent);
  opacity: 0.7;
}

.lh-media-teaser-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 16, 0.25);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lh-text);
}

.lh-media-teaser-body {
  padding: 0.85rem 1rem 1rem;
}

.lh-media-teaser-type {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.lh-media-teaser-body h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--lh-text);
}

.lh-media-teaser-body p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--lh-muted);
}

/* Sections */
.lh-section {
  margin-bottom: 3rem;
  scroll-margin-top: 5rem;
}

.lh-section-head {
  margin-bottom: 1.25rem;
}

.lh-section-head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.lh-section-head p {
  margin: 0;
  max-width: var(--lh-prose);
  color: var(--lh-muted);
  font-size: 0.92rem;
}

.lh-chapter {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--lh-border);
  scroll-margin-top: 5rem;
}

.lh-chapter:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.lh-chapter-title {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--lh-text);
}

/* Prose — mirrors insights article body */
.lh-prose {
  max-width: var(--lh-prose);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--lh-muted);
}

.lh-prose-wide {
  max-width: 56rem;
}

.lh-prose h2,
.lh-prose h3,
.lh-prose h4 {
  color: var(--lh-text);
  margin: 1.75rem 0 0.65rem;
  line-height: 1.3;
}

.lh-prose h2 { font-size: 1.15rem; }
.lh-prose h3 { font-size: 1.05rem; }
.lh-prose h4 { font-size: 0.98rem; }

.lh-prose p {
  margin: 0 0 1rem;
}

.lh-prose ul,
.lh-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.lh-prose li {
  margin-bottom: 0.35rem;
}

.lh-prose strong {
  color: var(--lh-text);
  font-weight: 600;
}

.lh-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.82rem;
}

.lh-prose th,
.lh-prose td {
  border: 1px solid var(--lh-border);
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.lh-prose th {
  background: rgba(0, 229, 255, 0.06);
  color: var(--lh-text);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lh-prose hr {
  border: none;
  border-top: 1px solid var(--lh-border);
  margin: 1.5rem 0;
}

/* Infographic */
.lh-infographic {
  margin: 0;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--lh-panel);
}

.lh-infographic img {
  display: block;
  width: 100%;
  height: auto;
}

.lh-infographic figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.84rem;
  color: var(--lh-muted);
  border-top: 1px solid var(--lh-border);
}

/* Full media players (bottom) */
.lh-media-full {
  display: grid;
  gap: 2rem;
}

.lh-media-block {
  padding: 1.1rem;
  border: 1px solid var(--lh-border);
  border-radius: 10px;
  background: var(--lh-panel);
  scroll-margin-top: 5rem;
}

.lh-media-block-head {
  margin-bottom: 0.85rem;
}

.lh-media-block-head .lh-card-meta {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.lh-media-title {
  margin: 0;
  font-size: 1.05rem;
  color: var(--lh-text);
}

.lh-video,
.lh-audio {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #000;
}

.lh-media-block .lh-card-summary {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--lh-muted);
}

/* Cards grid */
.lh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1rem;
}

.lh-grid--symbols {
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

.lh-card {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--lh-border);
  border-radius: 8px;
  background: var(--lh-panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.lh-card:hover {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.04);
  text-decoration: none;
}

.lh-card-meta {
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lh-dim);
}

.lh-card-title {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--lh-text);
}

.lh-card-summary {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--lh-muted);
}

.lh-symbol-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.lh-symbol {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lh-accent);
}

.lh-score {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--lh-muted);
}

.lh-action {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #ffb347;
}

.lh-card--symbol {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lh-symbol-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.lh-symbol-link:hover {
  text-decoration: none;
}

.lh-symbol-deck {
  display: block;
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--lh-accent);
}

.lh-symbol-deck:hover {
  text-decoration: underline;
}

.lh-empty {
  margin: 0;
  padding: 1rem;
  border: 1px dashed rgba(138, 170, 187, 0.25);
  border-radius: 6px;
  color: var(--lh-muted);
  font-size: 0.88rem;
}

.lh-explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.lh-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--lh-border);
  border-radius: 4px;
  color: var(--lh-accent);
  text-decoration: none;
  background: rgba(0, 229, 255, 0.04);
}

.lh-btn:hover {
  border-color: rgba(0, 229, 255, 0.4);
  text-decoration: none;
}

.lh-btn--primary {
  border-color: rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
}

.lh-theme-banner {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.lh-theme-banner p {
  margin: 0;
  flex: 1 1 14rem;
  font-size: 0.88rem;
  color: var(--lh-muted);
}

.lh-theme-banner a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lh-accent);
  white-space: nowrap;
}

/* Footer */
body.lh-page .site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--lh-border);
  text-align: center;
}

body.lh-page .site-footer-inner {
  max-width: var(--lh-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

body.lh-page .site-footer p {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--lh-dim);
}

body.lh-page .site-footer a {
  color: var(--lh-accent);
}

@media (max-width: 640px) {
  .lh-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
