/* ============================================================
   Noise Tuition - generated town and school pages
   Loaded after styles.css; only what those pages add.
   ============================================================ */

/* ---------- Compact hero with breadcrumbs ---------- */

.page-hero { padding-block: var(--space-4) var(--space-5); }
.page-hero h1 { max-width: 18ch; }
.page-hero .hero-sub { max-width: 60ch; margin-bottom: var(--space-3); }
.page-hero .hero-actions { margin-bottom: var(--space-3); }

.crumbs ol {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; opacity: 0.5; }
.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.chips li {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* ---------- School cards (town page) ---------- */

.school-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}
.school-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-3);
  text-decoration: none;
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}
.school-card:hover { border-color: rgba(13, 156, 194, 0.55); transform: translateY(-2px); }
.school-card h3 { margin-bottom: 0.25rem; }
.school-card p { margin: 0; font-size: 0.9375rem; }
.school-meta { color: var(--text-muted); }
.school-instr { color: var(--accent); margin-top: 0.6rem !important; }

/* ---------- Two column sections ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }
.two-col .btn { margin-top: var(--space-1); }

/* ---------- Instrument tiles (school page) ---------- */

.tile-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 230px;
  gap: var(--space-2);
}

/* ---------- Price table ---------- */

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2) 0 var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.price-table th, .price-table td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-table thead th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: var(--surface-2);
}
.price-table tbody th { font-weight: 500; }
.price-table td { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }

/* ---------- Numbered steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 11px;
  background: rgba(13, 156, 194, 0.14);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 0.25rem; font-size: 1.125rem; }
.steps p { margin: 0; color: var(--text-muted); }

/* ---------- Facts and link lists ---------- */

.facts { margin: 0 0 var(--space-2); display: grid; gap: 0.75rem; }
.facts div { display: grid; grid-template-columns: 6rem 1fr; gap: var(--space-2); }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; }
.facts a { color: var(--text); }

.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.link-list li { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.link-list a { color: var(--text); font-weight: 500; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list span { color: var(--text-muted); font-size: 0.875rem; }

/* ---------- Index page groups ---------- */

.town-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-5);
}
.town-group h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.town-group h2 a { text-decoration: none; }
.town-group h2 a:hover { color: var(--accent); }
.town-group .muted { margin-bottom: var(--space-2); font-size: 0.9375rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .two-col, .town-groups { grid-template-columns: 1fr; gap: var(--space-4); }
  .tile-row { grid-auto-rows: 200px; }
}

@media (max-width: 520px) {
  .school-grid { grid-template-columns: 1fr; }
  .facts div { grid-template-columns: 1fr; gap: 0.1rem; }
  .page-hero .hero-actions .btn { width: 100%; }
}
