/* The town page (town.html - 25 Nov 2026, Wisse: "we also need an info page about the town itself"). Uses the colours
   set in assets/characters.css (.town-main: the new site's --nib-* where it has them). Header and footer: the site's. */
.town-main .ch-title { margin-bottom: 16px; }
/* (the real town, rendered - its places' labels on it, each a link down to its card) */
.town-hero { margin: 0 0 22px; }
.town-shot { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--c-frame); background: var(--c-deep); }
.town-shot img { display: block; width: 100%; height: auto; }
.town-main a.town-pin {
  position: absolute; transform: translate(-50%, -100%); padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  font-size: clamp(.62rem, 1.3vw, .85rem); font-weight: 800; line-height: 1.3; text-decoration: none;
  color: var(--c-deep); background: var(--c-accent); border: 2px solid var(--c-deep); box-shadow: 0 2px 6px rgba(0, 0, 0, .5);
}
.town-main a.town-pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--c-deep); border-bottom: 0; }
.town-main a.town-pin:hover, .town-main a.town-pin:focus-visible { background: var(--c-text); outline: none; }
.town-hero figcaption { margin-top: 6px; font-size: .85rem; color: var(--c-muted); }
@media (max-width: 560px) { .town-main a.town-pin { padding: 1px 5px; border-width: 1px; } .town-main a.town-pin::after { display: none; } }

.town-sec { margin: 0 0 26px; }
.town-sec > h2 { margin: 0 0 10px; font-size: 1.6rem; color: var(--c-accent); }
.town-sec > p { max-width: 52em; margin: 0 0 .7em; }
.town-places { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.town-place { padding: 12px 14px; background: var(--c-card); border: 2px solid var(--c-line); border-radius: 12px; scroll-margin-top: 16px; }
.town-place:target { border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 30%, transparent); }
.town-pic { display: block; width: calc(100% + 28px); height: auto; margin: -12px -14px 10px; border-radius: 10px 10px 0 0; border-bottom: 2px solid var(--c-line); }
.town-place h3 { margin: 0; font-size: 1.15rem; color: var(--c-accent); }
.town-place p { margin: 0 0 .5em; }
.town-place p:last-child { margin-bottom: 0; }
.town-who { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.town-who a { color: var(--c-accent); }

.town-play { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.town-card { padding: 14px; background: var(--c-card); border: 2px solid var(--c-line); border-radius: 12px; }
.town-card h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--c-accent); }
.town-card p { margin: 0 0 .6em; }
.town-fine { font-size: .88rem; color: var(--c-muted); }
.town-list { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.town-list li::marker { color: var(--c-accent); }
.town-says { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.town-says li { padding: 5px 11px; border-radius: 14px 14px 14px 4px; background: var(--c-deep); border: 1px solid var(--c-frame); font-size: .92rem; }
.town-says li::before { content: "> "; color: var(--c-accent); font-weight: 700; }
.town-rules { padding: 14px; background: var(--c-card); border: 2px solid var(--c-frame); border-radius: 12px; }
.town-rules > h2 { font-size: 1.3rem; }
