﻿/* =========================
   Grade Page
========================= */

.school-grade-page {
  margin: 28px 0 40px;
}

  .school-grade-page .page-body {
    display: block;
  }



/* =========================
   Hero
========================= */

.hos-grade-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 30px;
}

.hos-grade-hero__content,
.hos-grade-hero__panel,
.hos-grade-list-card,
.hos-grade-teacher-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.hos-grade-hero__content {
  padding: 34px 36px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hos-grade-hero__eyebrow,
.hos-grade-list-card__eyebrow,
.hos-grade-teacher-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
}

.hos-grade-hero__title {
  margin: 14px 0 10px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
}

.hos-grade-hero__meta {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
  color: #64748b;
}

.hos-grade-hero__lead {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.65;
  color: #334155;
}

.hos-grade-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hos-grade-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
}

.hos-grade-hero__panel {
  padding: 28px;
}

.hos-grade-panel__head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
}

.hos-grade-panel__head p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: #64748b;
}

/* =========================
   Year Selector
========================= */

.hos-grade-year-form {
  margin-bottom: 20px;
}

.hos-grade-year-form__label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: #0f172a;
}

.hos-grade-year-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hos-grade-year-form__select {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-size: 15px;
  box-sizing: border-box;
}

  .hos-grade-year-form__select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
  }

/* =========================
   Buttons
========================= */

.hos-grade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hos-grade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

  .hos-grade-btn:hover {
    text-decoration: none;
  }

.hos-grade-btn--primary {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

  .hos-grade-btn--primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
  }

.hos-grade-btn--secondary {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

  .hos-grade-btn--secondary:hover {
    background: #eef2f7;
    border-color: #94a3b8;
    color: #0f172a;
  }

.hos-grade-btn--ghost {
  background: #fff;
  border-color: #dbeafe;
  color: #2563eb;
}

  .hos-grade-btn--ghost:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
  }

/* =========================
   Summary
========================= */

.hos-grade-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hos-grade-summary__item {
  padding: 16px 18px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.hos-grade-summary__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
  color: #64748b;
}

.hos-grade-summary__item strong {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: #0f172a;
}

/* =========================
   Sections
========================= */

.hos-grade-section {
  margin-top: 30px;
}

.hos-grade-section__head {
  margin-bottom: 18px;
}

  .hos-grade-section__head h2 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
    color: #0f172a;
  }

  .hos-grade-section__head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
  }

/* =========================
   Supply List Cards
========================= */

.hos-grade-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hos-grade-list-card {
  padding: 24px;
}

  .hos-grade-list-card h3 {
    margin: 14px 0 8px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
  }

.hos-grade-list-card__meta {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

.hos-grade-list-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.hos-grade-list-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.hos-grade-list-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* =========================
   Teacher Cards
========================= */

.hos-grade-teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hos-grade-teacher-card {
  padding: 24px;
}

  .hos-grade-teacher-card h3 {
    margin: 14px 0 8px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
  }

.hos-grade-teacher-card__meta {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #64748b;
}

/* =========================
   Alert / Back Link
========================= */

.hos-grade-alert {
  margin-top: 30px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
  line-height: 1.6;
}

.hos-grade-bottom-link {
  margin-top: 30px;
}

.hos-grade-backlink {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

  .hos-grade-backlink:hover {
    background: #dbeafe;
    border-color: #bfdbfe;
    color: #1e40af;
    text-decoration: none;
  }

/* =========================
   Responsive
========================= */

@media (max-width: 1100px) {
  .hos-grade-hero {
    grid-template-columns: 1fr;
  }

  .hos-grade-teacher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .hos-grade-list-grid,
  .hos-grade-teacher-grid {
    grid-template-columns: 1fr;
  }

  .hos-grade-list-card--featured {
    grid-template-columns: 1fr;
  }

  .hos-grade-list-card__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .school-grade-page {
    margin: 22px 0 32px;
  }

  .hos-grade-hero__content,
  .hos-grade-hero__panel,
  .hos-grade-list-card,
  .hos-grade-teacher-card {
    padding: 20px;
    border-radius: 16px;
  }

  .hos-grade-hero__title {
    font-size: 30px;
  }

  .hos-grade-hero__lead {
    font-size: 17px;
  }

  .hos-grade-section__head h2 {
    font-size: 26px;
  }

  .hos-grade-actions {
    flex-direction: column;
  }

  .hos-grade-btn,
  .hos-grade-backlink {
    width: 100%;
  }

  .hos-grade-summary {
    grid-template-columns: 1fr;
  }
}
