/* Kabir for Kids: the town page and the friend pages (K1, Nov 2026). Layout only: every colour, size and
   space comes from k4k-system.css. Load after k4k-system.css and k4k-templates.css.
   Pictures are crops of approved World masters (see Website-Docs/Redesign-2026-10/town-and-friends.md). */

/* ---- The town: the painted scene and the words under it ---- */
.town-scene .k-bubble b { font-weight: 800; color: var(--kohl-soft); margin-right: 2px; }
.town-intro { position: relative; z-index: 1; margin-top: calc(var(--space-7) * -1); padding-bottom: var(--space-6); display: grid; gap: var(--space-3); }
.town-intro .t-lead { max-width: 34em; }
.town-hindi { color: var(--terracotta); }
@media (max-width: 640px) { .town-intro { margin-top: calc(var(--space-5) * -1); padding-bottom: var(--space-5); } }

/* The walk: the six places as a row of numbered links (works without the scene's bubbles) */
.town-walk { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.town-walk a {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 6px 16px 6px 6px;
  border-radius: var(--radius-pill); background: var(--paper); color: var(--kohl); text-decoration: none;
  font: 600 16px/1.2 var(--font-play); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
.town-walk a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-lift); }
.town-num {
  width: 36px; height: 36px; flex: none; border-radius: var(--radius-round); display: grid; place-items: center;
  background: var(--num, var(--marigold)); color: var(--kohl); font: 800 19px/1 var(--font-play);
}

/* One stop on the walk */
.stop { scroll-margin-top: var(--space-3); }
.stop__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-6); align-items: center; }
.stop--flip .stop__pic { order: 2; }
.stop__pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); box-shadow: var(--shadow-cutout); }
.stop__text { display: grid; gap: var(--space-3); align-content: start; }
.stop__head { display: flex; align-items: center; gap: var(--space-3); }
.stop__head .town-num { width: 44px; height: 44px; font-size: 22px; }
.stop__find { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.stop__find h3 { font: 600 13px/1.3 var(--font-play); letter-spacing: .02em; color: var(--kohl-soft); }
.stop__find ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.stop__find li { font-size: 16px; line-height: 1.5; color: var(--kohl-soft); }
.stop__find a { display: inline-block; padding-block: 4px; }
.stop__next { margin-top: var(--space-2); }
@media (max-width: 860px) {
  .stop__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .stop--flip .stop__pic { order: 0; }
}

/* Small pictures under a stop: doors, shops, rooms */
.thumbs { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.thumbs--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.thumbs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; }
.thumb { display: grid; gap: var(--space-2); align-content: start; margin: 0; text-decoration: none; color: inherit; }
.thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); box-shadow: var(--shadow-cutout); transition: transform var(--quick) var(--ease); }
a.thumb:hover img { transform: translateY(-3px); }
.thumb b { font: 600 17px/1.25 var(--font-play); color: var(--kohl); }
a.thumb b { color: var(--terracotta); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.thumb span { font-size: 14px; line-height: 1.45; color: var(--kohl-soft); }
.thumb__dot { display: inline-block; width: 12px; height: 12px; border-radius: var(--radius-round); background: var(--dot); margin-right: 6px; box-shadow: 0 0 0 1.5px var(--edge); }
@media (max-width: 860px) {
  .thumbs, .thumbs--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
  .thumbs { margin-top: var(--space-4); }
}

/* Who lives here, and the other friends on a friend page */
.town-people .k-discs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.town-people .k-disc__ring { width: 150px; }
.town-people a.k-disc .k-disc__name { color: var(--terracotta); }
@media (max-width: 860px) {
  .town-people .k-discs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .town-people .k-disc__ring { width: 104px; }
}
@media (max-width: 400px) { .town-people .k-discs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Talk about it at home, beside the people */
.town-talk { max-width: var(--reading-width); margin-top: var(--space-6); }
.town-talk ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-1); }

/* The closing songs band (the page's one loud band) */
.town-close { display: grid; gap: var(--space-3); justify-items: start; }
.town-close p { max-width: var(--reading-width); }
.town-close .k-btn-row { margin-top: var(--space-2); }

/* ---- A friend's page ---- */
.friend-top { padding-block: var(--space-5) var(--section-gap); }
.friend-top__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); align-items: center; margin-top: var(--space-4); }
.friend-top__pic img { width: 100%; height: auto; border-radius: var(--radius-m); box-shadow: var(--shadow-cutout); }
.friend-top__text { display: grid; gap: var(--space-3); align-content: start; }
.friend-hindi { color: var(--terracotta); }
.friend-ring { display: inline-block; width: 14px; height: 14px; border-radius: var(--radius-round); background: var(--ring); box-shadow: 0 0 0 1.5px var(--edge); margin-right: var(--space-1); vertical-align: -1px; }
@media (max-width: 860px) {
  .friend-top__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .friend-top__pic { max-width: 440px; }
}
@media (max-width: 640px) { .friend-top { padding-bottom: var(--phone-section-gap); } }

/* Short facts, as a list of name and value */
.friend-facts { margin: var(--space-2) 0 0; display: grid; gap: var(--space-2); max-width: 34em; }
.friend-facts div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.friend-facts dt { font: 600 15px/1.5 var(--font-play); color: var(--kohl-soft); }
.friend-facts dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--kohl); }
@media (max-width: 480px) { .friend-facts div { grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--space-2); } }

/* More pictures: the masters as paper cut-outs on the light ground */
.friend-pics { list-style: none; margin: 0; padding: 0; max-width: 960px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.friend-pic { margin: 0; display: grid; gap: var(--space-2); align-content: start; }
.friend-pic img { width: 100%; height: auto; aspect-ratio: 8 / 11; object-fit: cover; border-radius: var(--radius-m); box-shadow: var(--shadow-cutout); background: var(--paper); }
.friend-pic figcaption { font-size: 15px; line-height: 1.5; color: var(--kohl-soft); }
.friend-pic figcaption b { display: block; font: 600 18px/1.25 var(--font-play); color: var(--kohl); }
.friend-pics li:nth-child(1) img { transform: rotate(-1.2deg); }
.friend-pics li:nth-child(2) img { transform: rotate(.8deg); }
.friend-pics li:nth-child(3) img { transform: rotate(-.6deg); }
@media (max-width: 860px) {
  .friend-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
  .friend-pics li:nth-child(3) { grid-column: 1 / -1; max-width: calc(50% - var(--space-2)); justify-self: center; }
}

/* Where you will find them */
.where { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.where__card {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-3); align-items: center; height: 100%;
  padding: var(--space-3); background: var(--paper); border-radius: var(--radius-m); color: inherit; text-decoration: none;
  transition: transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
.where__card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.where__card img { width: 112px; height: 84px; object-fit: cover; border-radius: var(--radius-s); }
.where__card div { display: grid; gap: 2px; min-width: 0; }
.where__card b { font: 600 17px/1.25 var(--font-play); color: var(--terracotta); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.where__card span { font-size: 14px; line-height: 1.45; color: var(--kohl-soft); }
.where__kind { font: 600 12px/1.3 var(--font-play); letter-spacing: .02em; }
.where__note { margin-top: var(--space-4); max-width: var(--reading-width); font-size: 14px; color: var(--kohl-soft); }
@media (max-width: 960px) { .where { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .where { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .where__card { grid-template-columns: 96px minmax(0, 1fr); }
  .where__card img { width: 96px; height: 72px; }
}

/* The friends row on a friend page: the current friend is left out, the town leads back */
.friend-others { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); }

@media (prefers-reduced-motion: reduce) {
  .friend-pics img { transform: none !important; }
}
