/* School layout standards. Use logical properties for Arabic and English.
 * Flutter counterparts live in mobile/flutter/lib/layout_standards.dart.
 * Classroom displays use their own viewport-scaled typography in display.css.
 */
:root {
  --school-control-min: 44px;
  --school-label-size: .875rem;
  --school-body-size: 1rem;
  --school-body-leading: 1.5;
  --school-space-1: 4px;
  --school-space-2: 8px;
  --school-space-3: 12px;
  --school-space-4: 16px;
  --school-space-6: 24px;
  --school-space-8: 32px;
  --school-control-radius: 12px;
  --school-card-radius: 20px;
  --school-content-gutter: clamp(12px, 3vw, 32px);
}

:where(.workspace > .topbar, .embedded-community .topbar, .hero nav) {
  gap: var(--school-space-2);
}

.workspace > .topbar button,
.school-back,
.hero nav .pill,
#auth-form :is(button, input),
#workspace :is(button, select, input:not([type=checkbox])) {
  min-block-size: var(--school-control-min);
}

:is(#auth-form, #settings-form, #workspace) label {
  font-size: var(--school-label-size);
  line-height: var(--school-body-leading);
}

:is(#auth-form, #settings-form, #workspace) :is(input:not([type=checkbox]), select, textarea) {
  font-size: var(--school-body-size);
  max-inline-size: 100%;
}

.school-back,
.dashboard-theme button {
  min-inline-size: var(--school-control-min);
}

@media (max-width: 480px) {
  .workspace > .topbar {
    flex-wrap: wrap;
    padding: var(--school-space-1) var(--school-space-2);
  }
  .workspace > .topbar > div {
    gap: var(--school-space-1);
    max-inline-size: 100%;
  }
}
