/* /school compatibility layer. The visual components themselves come from gradebook-page.css. */
.school-page {
  font-family: var(--lk-font-family);
  overflow: clip;
}

.school-page .hero-school {
  padding-top: clamp(5.5rem, 9vw, 8rem);
}

/* The gradebook hero is intentionally clean; /school's legacy decorative layers are not reused. */
.school-page .hero-school > .absolute {
  display: none;
}

/* gradebook-page.css scopes this intro to #gradebook-features; /school keeps its existing anchor. */
#school-management-software-features .gradebook-features__intro {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

#school-management-software-features .gradebook-features__kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 9999px;
  background: linear-gradient(180deg, #f0f7ff 0%, #e8f1fc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 2px rgba(29, 78, 216, 0.07);
  color: #1d4ed8;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#school-management-software-features .gradebook-features__title {
  margin: 0 0 0.875rem;
  color: #0f172a;
  font-size: clamp(1.75rem, 4.2vw, 2.375rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

#school-management-software-features .gradebook-features__lead {
  max-width: 36rem;
  margin: 0 auto;
  color: #64748b;
  font-size: 1rem;
  line-height: 1.65;
}

/* The reference problem card supplies the surface; these aliases preserve the existing SVG-led school markup. */
#school-management-software-features .gb-problem-card h3 {
  margin: 0 0 0.625rem;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

#school-management-software-features .gb-problem-card p {
  margin: 0;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* School-needs cards use the reference gb-problem-card surface with a compact hierarchy. */
#early-feedback .school-needs-card {
  padding: 1.75rem 1.5rem 1.5rem;
}

#early-feedback .school-needs-card__label {
  margin: 0 0 0.875rem;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

#early-feedback .school-needs-card__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

#early-feedback .school-needs-card__title svg {
  flex: 0 0 auto;
  color: #2563eb;
}

#early-feedback .school-needs-card__body {
  margin: 0;
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.6;
}

#early-feedback .school-needs-card__result {
  position: relative;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0.75rem;
  border: 0;
  border-radius: 0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

#early-feedback .school-needs-card__result::before {
  position: absolute;
  top: 0.75rem;
  right: 0;
  left: 0;
  height: 1px;
  background: #e2e8f0;
  content: "";
}

/* Editorial comparison rows: a quiet problem column paired with the Lekktura workflow. */
#alternatives .school-alternatives-list {
  gap: 0;
}

#alternatives .school-alternatives-row {
  display: grid;
  grid-template-columns: minmax(10rem, 0.72fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: stretch;
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
}

#alternatives .school-alternatives-row:first-child {
  border-top: 0;
}

#alternatives .school-alternatives-row__heading {
  padding-top: 0.25rem;
}

#alternatives .school-alternatives-row__heading h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

#alternatives .school-alternatives-row__comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
}

#alternatives .school-alternatives-row__problem,
#alternatives .school-alternatives-row__solution {
  padding: 0.25rem 0;
}

#alternatives .school-alternatives-row__problem {
  border-right: 1px solid #e2e8f0;
  padding-right: 1.25rem;
}

#alternatives .school-alternatives-row__solution {
  padding: 1.25rem;
  border: 1px solid #dbeafe;
  border-radius: 0.875rem;
  background: #f8fbff;
}

#alternatives .school-alternatives-row__comparison p {
  margin: 0;
}

#alternatives .school-alternatives-row__comparison p + p {
  margin-top: 0.625rem;
}

#alternatives .school-alternatives-row__comparison p:first-child {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

#alternatives .school-alternatives-row__problem p:first-child {
  color: #64748b;
}

#alternatives .school-alternatives-row__solution p:first-child {
  color: #1d4ed8;
}

#alternatives .school-alternatives-row__comparison p:last-child {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 767px) {
  #alternatives .school-alternatives-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
  }

  #alternatives .school-alternatives-row__comparison {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #alternatives .school-alternatives-row__problem {
    padding: 0 0 1rem;
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }
}

/* Existing IDs are intentional audio event targets; only accessibility sizing is adjusted here. */
.school-page a:focus-visible,
.school-page summary:focus-visible,
.school-page [role="slider"]:focus-visible,
.school-page button:focus-visible {
  outline: 3px solid var(--lk-color-focus);
  outline-offset: 3px;
}

.school-page .school-audio-player {
  max-width: 340px !important;
  border-color: var(--lk-color-border);
  background: var(--lk-color-surface);
  box-shadow: var(--lk-shadow-sm);
}

.school-page .school-audio-btn {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  cursor: pointer;
  touch-action: manipulation;
}

.school-page .school-audio-progress {
  display: flex;
  align-items: center;
  min-height: 32px;
  cursor: pointer;
  touch-action: manipulation;
  scroll-margin-bottom: 5rem;
}

.school-page .school-audio-progress > :is(svg, .school-audio-progress-fill) {
  top: calc(50% - 3px);
  bottom: auto;
  height: 6px;
}

.school-page .school-audio-sticky {
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: max(0.75rem, env(safe-area-inset-left));
  z-index: 100;
  border: 1px solid var(--lk-color-border);
  border-radius: var(--lk-radius-md);
  box-shadow: var(--lk-shadow-lg);
}

@media (min-width: 768px) {
  #school-management-software-features .gradebook-features__intro {
    margin-bottom: 3.5rem;
  }

  #school-management-software-features .gradebook-features__lead {
    font-size: 1.0625rem;
    line-height: 1.7;
  }
}

@media (max-width: 767px), (pointer: coarse) {
  .school-page .school-audio-player {
    max-width: 100% !important;
  }

  .school-page .school-audio-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    min-height: 44px;
  }

  .school-page .school-audio-progress {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .school-page .gb-problem-card,
  .school-page .gradebook-compare-cta__btn {
    transition: none;
  }
}
