/* ==========================================================================
   SAME DREAM — Page-level styles
   ========================================================================== */

/* homepage unit list */
.home-unit-list { display: grid; gap: 0; border-top: 1px solid var(--ink-line); }
.home-unit-list li a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding-block: 1.2rem;
  border-bottom: 1px solid var(--ink-line);
  transition: background var(--dur-1), padding-inline var(--dur-1) var(--ease-out);
}
.home-unit-list li a:hover { background: var(--paper-frame); padding-inline: 0.9rem; }
.home-unit-list .swatch { width: 0.9rem; height: 0.9rem; }
.home-unit-list a > span:nth-child(2) { font-family: var(--font-display); font-variation-settings: 'opsz' 50, 'SOFT' 45, 'WONK' 1; font-weight: 700; font-size: 1.15rem; }

/* final statement */
.final-statement {
  background: linear-gradient(var(--paper), var(--paper-warm));
  border-top: 1px solid var(--ink-line);
}

/* about page editorial fragments */
.about-fragment {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  padding-block: clamp(2.2rem, 5vw, 3.6rem);
  border-top: 1px solid var(--ink-line);
  align-items: start;
}
.about-fragment .index-number { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.about-fragment h2 { margin-bottom: 1rem; }
.about-fragment p { max-width: 58ch; color: var(--ink-soft); }
.about-fragment:nth-child(even) { grid-template-columns: 1fr auto; }
.about-fragment:nth-child(even) .index-number { order: 2; }
.about-fragment:nth-child(even) .about-fragment__body { order: 1; }
@media (max-width: 760px) {
  .about-fragment, .about-fragment:nth-child(even) { grid-template-columns: 1fr; }
  .about-fragment:nth-child(even) .index-number { order: 0; position: static; }
}

.about-principles {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--paper-warm);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
}
.about-principles li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding-block: 0.65rem;
  font-weight: 600;
}
.about-principles .mark { color: var(--paint-vermilion); }

/* curriculum / resources page shells */
.page-shell { padding-bottom: clamp(4rem, 9vw, 8rem); }

/* lesson page */
.lesson-shell { padding-bottom: clamp(3rem, 7vw, 6rem); }

/* how it works page */
.hiw-note {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 40, 'SOFT' 80, 'WONK' 1;
  font-style: italic;
  color: var(--ink-mute);
  max-width: 46ch;
}

/* impact */
.impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .impact-grid { grid-template-columns: 1fr; } }
.future-frame {
  border: 1.5px dashed var(--ink-faint);
  border-radius: 6px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--paper-frame);
}
.future-frame .slots { display: grid; gap: 0.8rem; margin-top: 1.2rem; }
.future-frame .slot {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ink-line);
  font-size: 0.9rem;
}
.future-frame .slot:last-child { border-bottom: 0; }
.future-frame .slot .k { font-weight: 700; }

/* team */
.team-band {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  background: var(--paper-warm);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
}
.team-band h3 { margin-bottom: 0.8rem; }

/* join */
.join-note { margin-top: 1.2rem; font-size: 0.82rem; color: var(--ink-mute); max-width: 40ch; }

/* 404 */
.nf { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.nf svg { width: 6rem; margin-bottom: 2rem; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .timeline__steps { grid-template-columns: repeat(2, 1fr); }
  .timeline__steps .step:nth-child(n+3) { display: none; }
  .timeline__steps--all .step:nth-child(n+3) { display: block; }
}
@media (max-width: 700px) {
  .concept__copy { max-width: 100%; }
  .hero__dotwrap { height: 8rem; }
  .constellation { aspect-ratio: 4/5; }
  .intro__photo { transform: none !important; }
  .grid-editorial { grid-template-columns: 1fr; }
  .grid-editorial > *, .grid-editorial > *:first-child:nth-last-child(3),
  .grid-editorial > *:first-child:nth-last-child(3) ~ * { grid-column: auto; }
  .hero__scrollhint { display: none; }
  .hero { padding-bottom: 3rem; }
  .lesson-row { grid-template-columns: auto 1fr; }
  .lesson-row__meta { display: none; }
  .res-card { grid-template-columns: auto 1fr; }
  .res-card > span:last-child { grid-column: 2; justify-self: start; }
  .archive-lesson { grid-template-columns: auto 1fr; }
  .archive-lesson > span:last-child { display: none; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* print — a small courtesy for teachers printing a lesson page */
@media print {
  .nav, .mobile-menu, .footer, .paint-field, .scroll-progress, .hero__scrollhint { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1.5rem; }
}
