/*
 * School view stylesheet.
 *
 * Spec: .claude/specs/meeting-domain-redesign/ FR-01.
 * Extracted from inline <style> at pwa/views/school.js:40-73.
 *
 * Carve-out (per requirements OQ-04 tentative): the .sch-badge-c /
 * .sch-badge-s / .sch-badge-unread "friendly" identity badges retain
 * their bespoke hex literals (Christopher blue / Sophie pink / unread
 * amber) — these are family-identity markers used to distinguish the
 * two kids' content + the unread state, deliberately divergent from the
 * Voyager palette per the original comment in the source file. Annotated
 * `/* OPAQUE: identity-color */` per files-domain-redesign AC-07
 * precedent.
 */

.sch-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 12px 80px;
}

.sch-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.sch-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* .sch-header-actions → .base-row in pwa/styles/base.css. Markup composes both. */

.sch-child-filter {
  padding: 4px 8px;
  border-radius: var(--radius-tight);
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 13px;
}

.sch-sync-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-tight);
  padding: var(--space-tight);
  cursor: pointer;
  color: var(--text-secondary);
}

.sch-sync-btn:hover {
  color: var(--link);
  border-color: var(--link);
}

.sch-sync-btn.syncing {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.sch-tabs-host {
  margin-bottom: var(--space-sm);
}

.sch-content {
  min-height: 200px;
}

.sch-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-snug);
  padding: var(--space-roomy);
  margin-bottom: var(--space-snug);
}

.sch-card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: var(--space-xs);
}

.sch-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: var(--space-tight);
}

.sch-card-body {
  font-size: 13px;
  line-height: 1.5;
}

/* Tailwind-style "friendly" badges — deliberately divergent from
   iOS palette (Christopher blue / Sophie pink / unread amber). */
.sch-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

/* OPAQUE: identity color — Christopher's badge marker (blue family). */
.sch-badge-c {
  background: #dbeafe;
  color: #1d4ed8;
}

/* OPAQUE: identity color — Sophie's badge marker (pink family). */
.sch-badge-s {
  background: #fce7f3;
  color: #be185d;
}

/* OPAQUE: identity color — unread state marker (amber family). */
.sch-badge-unread {
  background: #fef3c7;
  color: #92400e;
}

.sch-badge-cat {
  background: var(--border);
  color: var(--text-secondary);
}

.sch-period {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  padding: 12px 0;
}

.sch-period-icon {
  font-size: 28px;
}

.sch-period-info h3 {
  margin: 0;
  font-size: 15px;
}

.sch-period-info p {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.sch-sync-status {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 8px 0;
  text-align: center;
}

/* Grade-on-left report layout — school-specific composition. */
.sch-grade {
  font-weight: 700;
  font-size: 16px;
  color: var(--link);
}

.sch-report-card {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.sch-report-info {
  flex: 1;
}

.sch-cal-month {
  margin-bottom: var(--space-wide);
}

/* ── meeting-domain-redesign Phase 2 sweep (2026-05-03) — close inline-attr gap ──
   These were missed by the original AC-02 sweep (block-only regex);
   AC-03 pass tightens the lock-down. */

/* Tab-strip fallback when mountTabStrip primitive isn't loaded yet. */
.sch-tabs-fallback {
  padding: 8px 0;
  color: var(--hint);
}

/* Empty-state fallback when uxEmpty primitive isn't loaded yet. */
.sch-empty-fallback {
  text-align: center;
  padding: 40px 0;
  color: var(--hint);
}

/* Pattern-card fallback (Inbox / Calendar / Backlog primitive replacement).
   Base shape migrated 2026-05-03 to .base-card; per-view rule keeps
   only the bottom-margin override + child selectors. */
.sch-pattern-card-fallback { margin-bottom: var(--space-sm); }
.sch-pattern-card-fallback-title {
  margin: 0 0 8px;
}
.sch-pattern-card-fallback-subhead {
  font-size: 13px;
  color: var(--color-on-surface-variant);
}
.sch-pattern-card-fallback-body {
  margin-top: var(--space-sm);
}

/* Overview body layout migrated 2026-05-03 to .base-stack from
   pwa/styles/base.css. Markup composes: class="base-stack" directly. */

/* Pattern + stat grids — migrated 2026-05-03 to .base-grid-{cards,stats}
   in pwa/styles/base.css. Markup uses base classes directly. */

/* Inline section header used by sub-tabs without a uxSectionHeader primitive. */
.sch-inline-section-header {
  font-size: 14px;
  margin: 16px 0 8px;
}

/* Calendar row — date column + title column. */
.sch-cal-row {
  display: flex;
  gap: var(--space-snug);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.sch-cal-row-date {
  font-weight: 600;
  font-size: 12px;
  color: var(--link);
  min-width: 80px;
}

/* Announcement card — collapsible body panel. */
.sch-card-body-full {
  margin-top: var(--space-base);
  white-space: pre-wrap;
}
/* .sch-card-body-full.hidden — covered by global .hidden in base.css. */
.sch-card--clickable { cursor: pointer; }
.sch-card--inert     { cursor: default; }

/* Report card teacher comment — extra top spacing. */
.sch-card-body--with-gap {
  margin-top: var(--space-tight);
}
