/* /assets/css/learn.css — shared styles for /guides/ and /use-cases/.
   Loaded via $page_extra_head on each long-form content page. */

.learn-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid #1a2622;
  margin-bottom: 40px;
}
.learn-hero .section-label { margin-bottom: 12px; }
.learn-hero h1 {
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.learn-hero .lede {
  font-size: 17px;
  line-height: 1.65;
  color: #b6c7be;
  max-width: 68ch;
  margin: 0 0 18px;
}

.learn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #6b7a73;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 8px 0 0;
}
.learn-meta-item { display: inline-flex; align-items: center; }
.learn-meta-item::before {
  content: '›';
  color: #5fffaf;
  margin-right: 6px;
}

.learn-quicksteps {
  background: rgba(95, 255, 175, 0.04);
  border-left: 3px solid #5fffaf;
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
}
.learn-quicksteps-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #5fffaf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  display: block;
}
.learn-quicksteps ol {
  margin: 0;
  padding-left: 22px;
  color: #cfe8d8;
}
.learn-quicksteps li {
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.55;
}

.learn-prereq {
  margin: 30px 0;
  padding: 18px 22px;
  background: #0d1411;
  border: 1px solid #1a2622;
  border-radius: 4px;
}
.learn-prereq-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #ffd166;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  display: block;
}
.learn-prereq ul {
  margin: 0;
  padding-left: 22px;
  color: #cfe8d8;
  font-size: 14.5px;
  line-height: 1.7;
}
.learn-prereq li { margin: 4px 0; }

/* Step sections within a guide */
.learn-step {
  padding: 28px 0;
  border-bottom: 1px solid #1a2622;
}
.learn-step:last-of-type { border-bottom: 0; }

.learn-step-num {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #5fffaf;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}
.learn-step h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.25;
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
.learn-step p,
.learn-step li {
  color: #cfe8d8;
  font-size: 15.5px;
  line-height: 1.7;
}
.learn-step p { margin: 0 0 14px; }
.learn-step ul, .learn-step ol { padding-left: 22px; margin: 0 0 18px; }
.learn-step li { margin-bottom: 6px; }
.learn-step strong { color: #e8f5ed; }
.learn-step code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  background: #0d1411;
  padding: 2px 6px;
  border-radius: 3px;
  color: #5fffaf;
}
.learn-step pre {
  margin: 14px 0;
  padding: 14px 16px;
  background: #0d1411;
  border: 1px solid #1a2622;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.6;
}
.learn-step pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: #cfe8d8;
}

.learn-callout {
  background: #0d1411;
  border-left: 3px solid #ffd166;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 14.5px;
  border-radius: 0 4px 4px 0;
  color: #cfe8d8;
}
.learn-callout-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #ffd166;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  display: block;
}

.learn-callout.warn { border-left-color: #ff7a7a; }
.learn-callout.warn .learn-callout-label { color: #ff7a7a; }

.learn-callout.tip { border-left-color: #5fffaf; }
.learn-callout.tip .learn-callout-label { color: #5fffaf; }

/* Verify section */
.learn-verify {
  background: linear-gradient(135deg, rgba(95, 255, 175, 0.05), rgba(95, 255, 175, 0.01));
  border: 1px solid rgba(95, 255, 175, 0.18);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 36px 0;
}
.learn-verify h2 {
  font-size: 20px;
  color: #5fffaf;
  margin: 0 0 12px;
}
.learn-verify p,
.learn-verify li {
  color: #cfe8d8;
  font-size: 15px;
  line-height: 1.65;
}
.learn-verify ul { padding-left: 22px; margin: 0; }

/* Troubleshooting + Next steps + Related */
.learn-section {
  padding: 28px 0;
  border-bottom: 1px solid #1a2622;
}
.learn-section:last-of-type { border-bottom: 0; }
.learn-section h2 {
  font-size: clamp(22px, 2.8vw, 28px);
  margin: 0 0 16px;
}
.learn-section p,
.learn-section li {
  color: #cfe8d8;
  font-size: 15.5px;
  line-height: 1.7;
}
.learn-section p { margin: 0 0 14px; }
.learn-section ul,
.learn-section ol { padding-left: 22px; margin: 0 0 18px; }
.learn-section li { margin-bottom: 6px; }

/* Related-guides grid */
.learn-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}
.learn-related-card {
  display: block;
  padding: 16px 18px;
  background: #0d1411;
  border: 1px solid #1a2622;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, background 0.18s;
}
.learn-related-card:hover {
  border-color: #5fffaf;
  background: #0f1814;
}
.learn-related-card-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: #5fffaf;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
}
.learn-related-card h4 {
  font-size: 14.5px;
  margin: 0;
  color: #e8f5ed;
  line-height: 1.35;
}

/* Hub grid (/guides/index.php) */
.guides-hub-intro {
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.7;
  color: #b6c7be;
  max-width: 70ch;
}

.guides-hub-section {
  margin: 36px 0;
}
.guides-hub-section h2 {
  font-size: 20px;
  margin: 0 0 16px;
  color: #e8f5ed;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.guides-hub-section h2 .count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #6b7a73;
  font-weight: normal;
  letter-spacing: 0.08em;
}

.guides-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.guides-card {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  background: #0d1411;
  border: 1px solid #1a2622;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.guides-card:hover {
  border-color: #5fffaf;
  background: #0f1814;
  transform: translateY(-1px);
}
.guides-card-cat {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: #5fffaf;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 6px;
}
.guides-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #e8f5ed;
  line-height: 1.35;
}
.guides-card-tagline {
  font-size: 13.5px;
  color: #8aa097;
  line-height: 1.55;
  flex: 1;
  margin: 0 0 12px;
}
.guides-card-time {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #6b7a73;
  letter-spacing: 0.05em;
}
.guides-card-time::before { content: '⌛ '; color: #ffd166; }

/* Bottom-of-page CTA on guides + use-cases */
.learn-cta {
  margin: 40px 0 20px;
  padding: 32px;
  background: #0d1411;
  border: 1px solid #1a2622;
  border-radius: 8px;
  text-align: center;
}
.learn-cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
}
.learn-cta p {
  color: #8aa097;
  margin: 0 0 20px;
  font-size: 15px;
}
.learn-cta .store-row { justify-content: center; }
