/* ---------------------------------------------------------------------------
   Town landing pages: /pickleball-lessons and /pickleball-lessons/{slug}

   Loaded per-page via the $pageCss hook, not bundled into site.css - nothing
   here is used anywhere else, and site.css is already on every request.

   Everything reuses the existing tokens and the existing .card / .chip / .btn
   vocabulary. The only genuinely new components are the fact strip, the local
   knowledge list, the town grid and the town chips.
--------------------------------------------------------------------------- */

/* -- the four-fact strip under the page head ------------------------------ */
.area-facts {
  background: var(--navy-900);
  color: #fff;
  padding: 22px 0;
}
.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact-strip li {
  text-align: center;
  padding: 0 8px;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.fact-strip li:first-child { border-left: 0; }
.fact-strip b {
  display: block;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--lime);
}
.fact-strip span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: #C6D4E2;
}

/* -- local knowledge blocks ----------------------------------------------- */
.scene-list {
  display: grid;
  gap: 18px;
}
.scene-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--lime);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.scene-item h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
.scene-item p { margin: 0; }
.scene-src { margin-top: 10px !important; }
.scene-src a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lime-700);
  text-decoration: none;
}
.scene-src a:hover { text-decoration: underline; }
.scene-src svg { width: 14px; height: 14px; }

/* -- compact lesson tiles -------------------------------------------------- */
.lesson-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.lesson-mini {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.lesson-mini:hover {
  border-color: var(--lime-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.lesson-mini h3 { font-size: 16px; margin: 0 0 6px; }
.lesson-mini p  { margin: 0 0 12px; }
.lesson-mini-price {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy-900);
}

/* -- the town index -------------------------------------------------------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.area-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.area-card:hover {
  border-color: var(--lime-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.area-card-head { margin-bottom: 10px; }
/* The card heading is an h2 for document structure, but visually it is a card
   title - so it is sized down rather than inheriting the section-heading scale. */
.area-card-head h2 {
  font-size: 18px;
  line-height: 1.3;
  margin: 0 0 4px;
}
.area-card-county {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.area-card p { flex: 1 1 auto; }
.area-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--body);
}
.area-card-facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.area-card-facts b {
  font-family: var(--display);
  color: var(--navy-900);
}
.area-card-facts svg { width: 15px; height: 15px; color: var(--lime-700); }

/* -- nearby-town chips ----------------------------------------------------- */
.area-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.area-chip {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.area-chip:hover { border-color: var(--lime-600); background: var(--lime-50); }
.area-chip b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--display);
  font-size: 16px;
  color: var(--navy-900);
}
.area-chip span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}
.area-chip svg { width: 16px; height: 16px; }
.area-chip-all { background: var(--cream-50); border-style: dashed; }

/* -- narrow screens -------------------------------------------------------- */
@media (max-width: 860px) {
  .fact-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  /* With two per row the third item starts a new row, so its left border would
     read as a stray vertical rule under the first column. */
  .fact-strip li:nth-child(odd) { border-left: 0; }
  .fact-strip b { font-size: 26px; }
}

@media (max-width: 520px) {
  .area-card, .scene-item { padding: 18px; }
  .fact-strip span { font-size: 12px; }
}

/* -- "lessons in your town" link cloud (used on /courts too) --------------- */
.town-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.town-links a {
  display: inline-block;
  padding: 10px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s;
}
.town-links a:hover {
  border-color: var(--lime-600);
  background: var(--lime-50);
  color: var(--lime-700);
}

/* -- town page intro ------------------------------------------------------- */
/* site.css resets `p` to no margin, so a run of paragraphs needs its own
   rhythm here or the intro reads as one wall of text. */
.area-intro p + p { margin-top: 16px; }
.area-intro p:not(.lede) { color: var(--body); }
.scene-item p + p { margin-top: 12px; }
