/* TeachSupplyList — design system
   Light and clean, primary #7065f0, soft rounded cards. */

:root {
  --brand:        #7065f0;
  --brand-dark:   #574ecc;
  --brand-tint:   #f2f0fe;
  --brand-ring:   rgba(112, 101, 240, .28);

  --ink:          #100a42;
  --body:         #4b5563;
  --muted:        #8e93a8;

  --line:         #e8e9f2;
  --surface:      #ffffff;
  --canvas:       #fbfbfe;
  --wash:         #f6f5fd;

  --ok:           #12a05c;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(16, 10, 66, .05);
  --shadow-md: 0 6px 24px rgba(16, 10, 66, .07);
  --shadow-lg: 0 18px 48px rgba(16, 10, 66, .10);

  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
h3 { font-size: 1.1875rem; }

p { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1875rem;
  color: var(--ink);
  letter-spacing: -.02em;
  flex: none;
}
.brand:hover { color: var(--ink); }
.brand svg { flex: none; }

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.nav a {
  color: var(--body);
  font-size: .9375rem;
  font-weight: 600;
}
.nav a:hover { color: var(--brand); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn-soft { background: var(--brand-tint); color: var(--brand-dark); }
.btn-soft:hover { background: #e7e4fd; color: var(--brand-dark); }

.btn-sm { padding: 8px 15px; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */

.hero {
  background: var(--wash);
  padding: 68px 0 76px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero-lede {
  font-size: 1.0625rem;
  max-width: 42ch;
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: .8125rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 34px;
}
.stat-n {
  color: var(--brand);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stat-l { font-size: .875rem; color: var(--muted); }

/* ---------- search card ---------- */

.searchbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-size: .8125rem;
  color: var(--muted);
  font-weight: 600;
}
.field select,
.field input {
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  width: 100%;
  min-width: 0;
}
.field select:disabled { color: var(--muted); background: var(--canvas); }
.field select:focus, .field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}

/* ---------- cards / sections ---------- */

.section { padding: 72px 0; }
.section-wash { background: var(--wash); }

.section-head { margin-bottom: 34px; max-width: 60ch; }
.section-head p { color: var(--body); margin-bottom: 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.card-link {
  display: block;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card-link:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 6px; }
.card p:last-child { margin-bottom: 0; }

.meta { font-size: .875rem; color: var(--muted); }

/* ---------- school / city listing ---------- */

.school-card { display: flex; flex-direction: column; gap: 10px; }
.school-card h3 { font-size: 1.0625rem; }

.pill {
  display: inline-block;
  background: var(--brand-tint);
  color: var(--brand-dark);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--r-pill);
}
.pill-plain {
  background: var(--canvas);
  color: var(--body);
  border: 1px solid var(--line);
}

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-on:hover { color: #fff; }

.az {
  columns: 4 200px;
  column-gap: 28px;
}
.az a {
  display: block;
  padding: 7px 0;
  color: var(--body);
  font-size: .9375rem;
  break-inside: avoid;
}
.az a:hover { color: var(--brand); }

/* ---------- breadcrumbs ---------- */

.crumbs {
  font-size: .875rem;
  color: var(--muted);
  padding: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--brand); }
.crumbs span[aria-hidden] { color: #c9ccd9; }

/* ---------- page head ---------- */

.page-head { padding: 30px 0 40px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .lede { max-width: 62ch; margin-bottom: 0; }

.school-banner {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 30px;
  background: var(--wash);
}
.school-banner img { width: 100%; height: 220px; object-fit: cover; }

/* ---------- supply list ---------- */

.list-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.supply {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.supply-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.supply-head h2 { margin: 0; font-size: 1.25rem; }

.item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 26px;
  border-bottom: 1px solid var(--line);
}
.item:last-child { border-bottom: 0; }

.item-check {
  width: 20px; height: 20px;
  flex: none;
  accent-color: var(--brand);
  cursor: pointer;
}

.item-body { flex: 1; min-width: 0; }
.item-title {
  font-weight: 700;
  color: var(--ink);
  font-size: .9375rem;
}
.item-note { font-size: .8125rem; color: var(--muted); }

.item.done .item-title { text-decoration: line-through; color: var(--muted); }

.qty {
  flex: none;
  min-width: 62px;
  text-align: center;
  font-size: .8125rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 5px 10px;
  border-radius: var(--r-pill);
}

.aside { position: sticky; top: 96px; display: grid; gap: 18px; }

.aside .card h3 { font-size: 1rem; }

.progress-track {
  height: 8px;
  background: var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin: 12px 0 8px;
}
.progress-fill {
  height: 100%;
  background: var(--brand);
  width: 0;
  border-radius: var(--r-pill);
  transition: width .25s ease;
}

.grade-switch { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- empty state ---------- */

.empty {
  text-align: center;
  padding: 56px 26px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.empty h3 { margin-bottom: 6px; }
.empty p { margin: 0 auto 18px; max-width: 46ch; }

/* ---------- cta band ---------- */

.band {
  background: var(--brand);
  border-radius: var(--r-xl);
  padding: 48px;
  color: #fff;
  text-align: center;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.86); max-width: 52ch; margin: 0 auto 24px; }
.band .btn-ghost { background: #fff; border-color: #fff; }
.band .btn-ghost:hover { background: #fff; color: var(--brand-dark); }

/* ---------- footer ---------- */

.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 52px 0 34px;
  margin-top: 72px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
}
.foot-grid h4 {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 14px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--body); font-size: .9375rem; }
.foot-grid a:hover { color: var(--brand); }

.disclosure {
  border-top: 1px solid var(--line);
  margin-top: 34px;
  padding-top: 22px;
  font-size: .8125rem;
  color: var(--muted);
}

/* ---------- print ---------- */

@media print {
  .site-head, .site-foot, .aside, .crumbs, .no-print, .band { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .list-layout { grid-template-columns: 1fr; }
  .supply { border: 1px solid #ccc; box-shadow: none; }
  .item { break-inside: avoid; padding: 9px 14px; }
  a { color: #000; }
  .item-amz::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .list-layout { grid-template-columns: 1fr; }
  .aside { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav.open a { padding: 11px 0; width: 100%; }
  .nav-toggle { display: block; }
  .searchbar { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 52px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { gap: 26px; }
  .band { padding: 34px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .item { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
