/* ============================================================
   Sub-page styles — FEAT-013

   Loaded only by the six new pages. components.css stays untouched;
   overrides.css carries what home and the sub-pages share (nav,
   read-more, the RESPECT treatment). This file is what is specific to a
   page that has to stand on its own without a hero to carry it.
   ============================================================ */

/* ---------- Page head ----------
   These pages open on type, not on a WebGL hero — the hero is the home
   page's one loud moment and it stays there. So the page head has to do
   the work: a wide measure for the title, a narrow one for the
   standfirst, and a rule that makes the top of the page feel deliberate
   rather than truncated. */

.page-head {
  padding-top: clamp(3.5rem, 8vw, 7rem);
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(95, 201, 172, 0.10), transparent 62%),
    radial-gradient(90% 80% at 100% 0%, rgba(233, 184, 114, 0.07), transparent 58%);
}

.page-head h1 {
  max-width: 22ch;
  margin-top: 0.6rem;
  text-wrap: balance;
}

.page-head__lede {
  max-width: 62ch;
  margin-top: 1.4rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--text-300);
}

/* Long institutional titles need a shorter line than the display scale
   assumes, or the first line runs past the eye's return sweep. */
@media (min-width: 1100px) {
  .page-head h1 { max-width: 20ch; }
}

.page-cta {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- Widening Our Scope — the catalogue ---------- */

.scope-index {
  padding: var(--space-lg);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--ink-850);
}

.scope-index__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-mono, monospace);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-500);
}

.scope-index__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-index__list a {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--text-300);
  transition: color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.scope-index__list a::after { display: none; }
.scope-index__list a:hover,
.scope-index__list a:focus-visible {
  color: var(--ink-900);
  background: var(--jade-400);
  border-color: var(--jade-400);
}

.scope-cats {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Anchor targets sit under a sticky header; without this the heading
   lands behind it and the reader thinks the jump missed. */
.scope-cat {
  scroll-margin-top: 88px;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-soft);
}

.scope-cat__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: var(--space-md);
}

.scope-cat__num {
  font-family: var(--font-mono, monospace);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  color: var(--jade-400);
}

.scope-cat__head h2 {
  margin: 0;
  font-size: var(--step-2);
  letter-spacing: 0.01em;
}

/* Definition list rather than prose: each row is a fact with a label,
   and the client asked for "the relevant product, event and activity"
   per category — that is a labelled structure, not a paragraph. */
.scope-cat__list {
  display: grid;
  grid-template-columns: minmax(7rem, 10rem) minmax(0, 1fr);
  gap: 0.55rem var(--space-lg);
  margin: 0;
  max-width: 78ch;
}

.scope-cat__list dt {
  font-family: var(--font-mono, monospace);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-500);
  padding-top: 0.15em;
}

.scope-cat__list dd {
  margin: 0;
  color: var(--text-300);
  line-height: 1.6;
}

.scope-cat__list dd a { color: var(--jade-400); }

@media (max-width: 720px) {
  .scope-cat__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
  .scope-cat__list dd { margin-bottom: 0.9rem; }
}

/* ---------- Sub-page reuse of home components ---------- */

/* The three moved schools cards and the six segment cards arrive here
   with their home markup intact, so they only need their container
   restated — no restyling, or the two surfaces would drift apart. */
.preview-schools__grid,
.services-grid { margin-top: var(--space-lg); }

.preview-schools__support h2 {
  font-size: var(--step-2);
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .scope-index__list a { transition: none; }
}
