/* Pythagorean Theorem Guide — Phase 1. All rules page-scoped. */
.pyth-hero .pyth-hero-eyebrow,
.pyth-guide .pyth-eyebrow,
.pyth-guide .pyth-card-label {
  margin: 0 0 .65rem;
  color: #0f766e;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pyth-hero .pyth-hero-eyebrow { color: #b8fff1; }
.pyth-hero .pyth-hero-actions { align-items: center; }
.pyth-guide { scroll-margin-top: 5rem; font-family: Inter, Arial, sans-serif; color: #475569; }
.pyth-guide .pyth-intro h2,
.pyth-guide h2 { color: #0f172a; font-weight: 800; letter-spacing: -.025em; }
.pyth-guide .pyth-intro h2 { font-size: clamp(1.8rem, 4vw, 2.55rem); line-height: 1.15; }
.pyth-guide .pyth-intro p { line-height: 1.75; }
.pyth-guide .pyth-intro .lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); }
.pyth-guide .pyth-definition-card,
.pyth-guide .pyth-idea-card { border-radius: 1.1rem; padding: clamp(1.25rem, 3vw, 1.9rem); }
.pyth-guide .pyth-definition-card {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
  border: 1px solid rgba(13,148,136,.22);
}
.pyth-guide .pyth-definition-math {
  padding: 1rem; margin: .9rem 0; text-align: center;
  color: #0f766e; background: rgba(255,255,255,.82);
  border: 1px solid rgba(13,148,136,.16); border-radius: .85rem;
  overflow-x: auto;
}
.pyth-guide .pyth-definition-math mjx-container[display="true"] { margin: .4em 0 !important; }
.pyth-guide .pyth-idea-card { background: #f8fafc; border: 1px solid #d7e2ec; }
.pyth-guide .pyth-idea-card li { margin: .4rem 0; line-height: 1.65; }
@media (max-width: 575.98px) {
  .pyth-hero .pyth-hero-actions .btn { width: 100%; }
  .pyth-guide .pyth-definition-card, .pyth-guide .pyth-idea-card { padding: 1.1rem; }
}

/* Phase 2: Right-triangle illustration and visual explanation */
.pyth-guide .pyth-visual-section { margin: 0 0 3.5rem; }
.pyth-guide .pyth-section-heading { margin-bottom: 1.4rem; }
.pyth-guide .pyth-section-heading h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.pyth-guide .pyth-section-heading > p:last-child { line-height: 1.7; }
.pyth-guide .pyth-visual-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; align-items: stretch; }
.pyth-guide .pyth-triangle-card { min-width: 0; margin: 0; padding: 1rem; background: #f8fafc; border: 1px solid #d7e2ec; border-radius: 1.15rem; display: flex; flex-direction: column; justify-content: center; }
.pyth-guide .pyth-triangle-svg { width: 100%; height: auto; display: block; }
.pyth-guide .pyth-svg-leg, .pyth-guide .pyth-svg-hypotenuse { font: 800 25px Inter, Arial, sans-serif; fill: #0f172a; }
.pyth-guide .pyth-svg-hypotenuse { fill: #0f766e; }
.pyth-guide .pyth-svg-angle { font: 700 14px Inter, Arial, sans-serif; fill: #475569; }
.pyth-guide .pyth-triangle-card figcaption { text-align: center; font-size: .9rem; line-height: 1.5; }
.pyth-guide .pyth-visual-explanation { min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.pyth-guide .pyth-visual-explanation .pyth-definition-card { padding: 1.2rem; }
.pyth-guide .pyth-side-key { display: grid; gap: .7rem; }
.pyth-guide .pyth-side-key-item { display: flex; gap: .8rem; align-items: flex-start; padding: .85rem; border: 1px solid #d7e2ec; border-radius: .85rem; }
.pyth-guide .pyth-side-symbol { flex: 0 0 3.4rem; padding: .4rem .2rem; text-align: center; border-radius: .55rem; background: #eff6ff; color: #1d4ed8; font-weight: 800; }
.pyth-guide .pyth-side-symbol-c { background: #ecfdf5; color: #0f766e; }
.pyth-guide .pyth-side-key-item strong { color: #0f172a; }
.pyth-guide .pyth-side-key-item p { margin: .15rem 0 0; line-height: 1.55; font-size: .92rem; }
.pyth-guide .pyth-hypotenuse-note { margin-top: 1.2rem; background: linear-gradient(135deg, #ecfdf5, #eff6ff); }
.pyth-guide .pyth-hypotenuse-note h3 { font-size: 1.15rem; color: #0f172a; font-weight: 800; }
.pyth-guide .pyth-hypotenuse-note p:last-child { line-height: 1.7; }
@media (max-width: 767.98px) {
  .pyth-guide .pyth-visual-grid { grid-template-columns: 1fr; }
  .pyth-guide .pyth-triangle-card { max-width: 100%; }
}
