/* Place profiles — "survey sheet" look on the hub palette (styles.css tokens). */
.place { --ink: var(--text); --rule: rgba(212,175,55,.28); --serif: "Cormorant Garamond", Georgia, serif; }
.place main { overflow: clip; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.phero { position: relative; padding: 20px clamp(16px, 4vw, 48px) clamp(28px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.phero::before { content: ""; position: absolute; inset: 0 -50vw auto; height: 100%; z-index: -1;
  background: radial-gradient(900px 420px at 78% 30%, rgba(212,175,55,.10), transparent 70%), linear-gradient(180deg, #0d141b, var(--bg)); }
.phero .nav { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(28px, 6vw, 72px); }
.phero .nav .brand { margin-right: auto; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.phero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(3.2rem, 10vw, 7.5rem); line-height: .92; letter-spacing: -.02em; margin: 6px 0 18px; text-wrap: balance; }
.phero--index h1 { font-size: clamp(2.6rem, 7vw, 5rem); max-width: 14ch; }
.phero__lede { color: var(--text-dim); max-width: 46ch; font-size: 1.05rem; line-height: 1.6; }
.phero__facts { display: flex; flex-wrap: wrap; gap: 0; margin: 26px 0 0; border-top: 1px solid var(--rule); }
.phero__facts > div { padding: 14px 28px 0 0; margin-right: 28px; border-right: 1px solid var(--border); }
.phero__facts > div:last-child { border-right: 0; }
.phero__facts dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); }
.phero__facts dd { margin: 4px 0 0; font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.phero__map { position: relative; filter: drop-shadow(0 30px 60px rgba(0,0,0,.5)); }
.phero__map img { width: 100%; height: auto; display: block; }
.phero__pin { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(11,16,20,.9), 0 0 0 6px var(--accent); }
.phero__pin::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid var(--accent); animation: ppulse 2.6s ease-out infinite; }
@keyframes ppulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.pwarn { margin-top: 22px; padding: 12px 16px; border: 1px solid; border-radius: 10px; background: rgba(0,0,0,.25); font-size: .95rem; line-height: 1.5; max-width: 60ch; }
.pwarn a { color: var(--text-dim); white-space: nowrap; }

.psection { max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 48px); }
.psection h2 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; margin: 4px 0 12px; }

.preach { display: grid; grid-template-columns: minmax(280px, 540px) minmax(0, 1fr); gap: clamp(20px, 5vw, 64px); align-items: center;
  border-block: 1px solid var(--rule); padding-block: clamp(20px, 3vw, 36px); }
.preach__copy p { color: var(--text-dim); max-width: 52ch; line-height: 1.6; }
.radar { width: 100%; height: auto; display: block; }
.radar__ring { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.radar__spoke { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 5; }
.radar__km { fill: var(--text-mute); font: 600 9px Manrope, sans-serif; }
.radar__card { fill: var(--accent); font: 700 11px Manrope, sans-serif; letter-spacing: .1em; }
.radar__home { fill: #fff; }
.radar__ray { stroke-width: 1.5; opacity: .7; stroke: var(--c); }
.radar__dot { fill: var(--c); stroke: var(--bg); stroke-width: 2; }
.radar--rail { --c: #818cf8; } .radar--motor { --c: #f87171; } .radar--church { --c: #fbbf24; } .radar--water { --c: #2dd4bf; }
.preach__legend { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 20px; font-variant-numeric: tabular-nums; }
.preach__legend li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.preach__legend li span:first-child { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }

/* Neighbourhood map */
.nbmap { width: 100%; height: auto; display: block; overflow: visible; }
.nbmap__disc { fill: color-mix(in srgb, var(--surface) 70%, #05080b); stroke: var(--border-strong); stroke-width: 1; }
.nbmap__ring { fill: none; stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 2 6; }
.nbmap__km { fill: var(--text-mute); font: 700 10px Manrope, sans-serif; letter-spacing: .04em; }
.nbmap__fauna circle { fill: #34d399; opacity: .42; }
.nbmap__rail { fill: none; stroke: #818cf8; stroke-width: 1; opacity: .5; stroke-linecap: round; stroke-linejoin: round; }
.nbmap__rail--main { stroke-width: 1.8; opacity: .85; }
.nbmap__motor { fill: none; stroke: #f87171; stroke-width: 9; opacity: .22; stroke-linecap: round; stroke-linejoin: round; }
.nbmap__motor--underconstruction, .nbmap__motor--planned { stroke-dasharray: 3 12; opacity: .3; }
.nbmap__church { fill: #fbbf24; stroke: #0b1014; stroke-width: .8; }
.nbmap__mon { fill: #fff3c4; stroke: #fbbf24; stroke-width: 1.4; }
.nbmap__st { fill: #c7d2fe; stroke: #4f46e5; stroke-width: 1.2; }
.nbmap__water { fill: #2dd4bf; stroke: #0b1014; stroke-width: 1.2; }
.nbmap__north { fill: var(--accent); } .nbmap__n { fill: var(--accent); font: 800 11px Manrope, sans-serif; }
.nbmap__home { fill: #fff; } .nbmap__halo { fill: none; stroke: #fff; stroke-width: 1.2; opacity: .55; transform-origin: 300px 300px; animation: nbpulse 3s ease-out infinite; }
@keyframes nbpulse { from { transform: scale(.5); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
.preach { align-items: start; }
.preach__legend--nb { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.nbk b { font-variant-numeric: tabular-nums; white-space: nowrap; flex: none; margin-right: -4px; }
.preach__legend li.nbk { align-items: baseline; line-height: 1.3; } .preach__legend li.nbk span:first-child { align-self: center; }
.nbk--church { --c: #fbbf24; } .nbk--rail { --c: #c7d2fe; } .nbk--water { --c: #2dd4bf; } .nbk--fauna { --c: #34d399; }
.preach__legend li.nbk--monastery span:first-child { background: #fff3c4; border-radius: 0; transform: rotate(45deg) scale(.8); outline: 1.5px solid #fbbf24; }
.preach__legend li.nbk--rail span:first-child { border-radius: 2px; outline: 1.5px solid #4f46e5; }
.preach__legend li.nbk--line span:first-child { height: 2px; width: 16px; border-radius: 1px; background: #818cf8; }
.preach__legend li.nbk--motor span:first-child { height: 6px; width: 16px; border-radius: 3px; background: #f87171; opacity: .5; }
.pfar { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule); }
.pfar h3 { margin: 0 0 4px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.pfar p { margin: 0; font-size: .9rem; }
.pfar .preach__legend { margin-top: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); font-size: .92rem; }
@media (prefers-reduced-motion: reduce) { .nbmap__halo { animation: none; } }

.pswatch { display: inline-block; width: .62em; height: .62em; border-radius: 3px; background: var(--sw); margin-right: .4em; box-shadow: 0 0 0 1px rgba(255,255,255,.25); vertical-align: .05em; }
.pbar { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, transparent); overflow: hidden; margin-top: -4px; }
.pbar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 55%, transparent), var(--c)); }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.pcard { --c: var(--accent); display: flex; flex-direction: column; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--surface)), var(--surface) 55%);
  border: 1px solid var(--border); border-top: 2px solid var(--c); border-radius: 14px; padding: 18px 20px 16px; min-width: 0; }
.pcard[data-atlas="air"] { --c: #4ea8de; grid-column: span 1; } .pcard[data-atlas="water"] { --c: #2dd4bf; } .pcard[data-atlas="church"] { --c: #fbbf24; }
.pcard[data-atlas="rail"] { --c: #818cf8; } .pcard[data-atlas="motor"] { --c: #f87171; } .pcard[data-atlas="fauna"] { --c: #34d399; }
.pcard[data-atlas="soil"] { --c: #c2854f; } .pcard[data-atlas="cost"] { --c: #f59e0b; } .pcard[data-atlas="forest"] { --c: #4ade80; }
.pcard__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pcard__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 12px var(--c); }
.pcard h3 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c); margin: 0; font-weight: 800; }
.pcard__body { flex: 1; display: grid; gap: 12px; align-content: start; }
.pstat { display: grid; gap: 2px; }
.pstat__v { font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pstat__l { color: var(--text-dim); font-size: .9rem; line-height: 1.35; }
.pcard__big { font-family: var(--serif); font-size: 1.9rem; line-height: 1.05; margin: 0; }
.pcard__note { color: var(--text-dim); font-size: .92rem; line-height: 1.5; margin: 0; }
.pcard__links { display: flex; gap: 18px; margin: 0; font-weight: 700; }
.pcard__links a, .pcard__link { color: var(--c); text-decoration: none; }
.pcard__links a:hover, .pcard__link:hover { text-decoration: underline; }
.pcard__foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.pcard__src { margin: 0; color: var(--text-mute); font-size: .76rem; line-height: 1.45; }
.pcard__link { font-weight: 700; font-size: .95rem; }

.aqi { display: flex; align-items: center; gap: 16px; }
.aqi__dial { position: relative; width: 132px; flex: none; }
.aqi__dial svg { display: block; width: 100%; }
.aqi__track, .aqi__arc { fill: none; stroke-width: 9; stroke-linecap: round; }
.aqi__track { stroke: var(--border-strong); }
.aqi__arc { stroke: var(--c); transition: stroke-dasharray .9s cubic-bezier(.2,.7,.2,1); }
.aqi__n { position: absolute; inset: auto 0 0; text-align: center; font-size: 2.3rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.aqi__meta p { margin: 0 0 4px; }
.aqi__cat { font-weight: 700; } .aqi__pm, .aqi__time { color: var(--text-dim); font-size: .85rem; }

.pthumbs { list-style: none; padding: 0; margin: 2px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pthumbs a { display: block; color: var(--text); text-decoration: none; }
.pthumbs img { width: 100%; aspect-ratio: 3/2; height: auto; object-fit: cover; border-radius: 8px; display: block; background: var(--bg); }
.pthumbs__n { display: block; font-size: .78rem; font-weight: 600; line-height: 1.25; margin-top: 5px; }
.pthumbs__c { display: block; font-size: .62rem; color: var(--text-mute); line-height: 1.3; margin-top: 2px; overflow-wrap: anywhere; }
.ptags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ptags a { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-size: .84rem; }
.ptags a:hover { border-color: var(--c); }
.ptags em { font-style: normal; font-weight: 800; font-size: .7rem; color: var(--c); }

.pcta { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--rule); border-radius: 18px; background: linear-gradient(135deg, rgba(212,175,55,.09), transparent 60%), var(--surface); }
.pcta p { color: var(--text-dim); line-height: 1.6; max-width: 56ch; }
.pcta__btns { display: grid; gap: 10px; }
.pcta__btns .btn { justify-content: center; text-align: center; }
.pnext { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; font-weight: 700; }
.pnext a { color: var(--text-dim); text-decoration: none; } .pnext a:hover { color: var(--accent); }

.phero__grid--index { align-items: center; } .phero__nat { margin: 0; min-width: 0; } .phero__nat figcaption { color: var(--text-mute); font-size: .8rem; margin-top: 8px; line-height: 1.45; }
.pfind { display: block; margin-top: 24px; max-width: 520px; }
.pfind input { width: 100%; padding: 16px 20px; font: inherit; font-size: 1.1rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; }
.pfind input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.plist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.plist a { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.plist a:hover { border-color: var(--accent); transform: translateY(-2px); }
.plist strong { font-family: var(--serif); font-size: 1.45rem; line-height: 1.1; }
.plist a > span { color: var(--text-mute); font-size: .8rem; font-variant-numeric: tabular-nums; }
.plist__none { color: var(--text-dim); }

@media (max-width: 820px) {
  .phero__grid, .preach, .pcta { grid-template-columns: minmax(0, 1fr); }
  .phero__map { max-width: 420px; }
  .preach__viz { max-width: 520px; margin-inline: auto; width: 100%; }
  .phero .nav .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) { .phero__pin::after { animation: none; } .aqi__arc, .plist a { transition: none; } }

/* Compare */
.pcmp__pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; color: var(--accent); font-size: 1.4rem; }
.pcmp__pick select { font: inherit; font-size: 1.05rem; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; min-width: min(100%, 240px); }
.pcmp__pick select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pcmp { border-top: 1px solid var(--rule); margin-bottom: 18px; }
.pcmp__row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--border); align-items: baseline; }
.pcmp__row--head { position: sticky; top: 0; background: var(--bg); z-index: 1; border-bottom-color: var(--rule); }
.pcmp__k { color: var(--text-dim); font-size: .92rem; }
.pcmp__v { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pcmp__city { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2.2rem); line-height: 1.05; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.pcmp__city:hover { color: var(--accent); }
@media (max-width: 560px) { .pcmp__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pcmp__k { grid-column: 1 / -1; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; } .pcmp__row--head .pcmp__k { display: none; } }

/* Province profiles */
.eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.eyebrow a:hover { color: var(--text); }
.phero--oblast h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
.phero__grid--oblast { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }
.phero__fine { color: var(--text-mute); font-size: .78rem; margin: 10px 0 0; }
.phero--oblast .preach__legend { margin-top: 22px; }
.phero__omap { margin: 0; min-width: 0; }
.omap { width: 100%; height: auto; max-height: 78vh; display: block; overflow: hidden; border-radius: 18px; }
.omap__nb { fill: color-mix(in srgb, var(--surface) 55%, transparent); stroke: var(--border); stroke-width: 1; transition: fill .2s; }
.omap a:hover .omap__nb, .omap a:focus-visible .omap__nb { fill: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.omap__land { fill: color-mix(in srgb, var(--surface) 78%, #05080b); }
.omap__edge { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; opacity: .85; }
.omap .bgmap__lab { font-size: 14px; }
.bgmap__land a:hover path, .bgmap__land a:focus-visible path { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); }
.bgmap__land a { outline: none; }
.pstack { display: flex; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; background: transparent; }
.pstack span { width: var(--w); min-width: 3px; background: var(--sw); }
.pstack__key { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--text-dim); }
.pstack__key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--sw); margin-right: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.pstack__key b { color: var(--text); font-variant-numeric: tabular-nums; }
.pairlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.pairlist a { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.pairlist li:last-child a { border-bottom: 0; }
.pairlist a:hover { color: var(--c); }
.pairlist svg { width: 12px; height: 12px; overflow: visible; }
.pairlist b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pmotor { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pmotor b { color: var(--c); margin-right: 6px; } .pmotor small { color: var(--text-mute); display: block; }
.plist--oblast strong { font-size: 1.3rem; }
/* Embed block on city pages */
.pembed { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(18px, 4vw, 48px); align-items: center; border-block: 1px solid var(--rule); padding-block: clamp(20px, 3vw, 36px); }
.pembed__copy p { color: var(--text-dim); max-width: 56ch; line-height: 1.6; }
.pembed__code { display: block; width: 100%; max-width: 620px; margin: 14px 0 12px; padding: 12px 14px; font: 500 .8rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-dim); background: color-mix(in srgb, var(--surface) 60%, #000); border: 1px solid var(--border-strong); border-radius: 10px; resize: none; }
.pembed__frame { border: 0; border-radius: 16px; max-width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
@media (max-width: 820px) { .phero__grid--oblast, .pembed { grid-template-columns: minmax(0, 1fr); } .pembed__frame { margin-inline: auto; } }


/* "By the numbers" — each town as a tick, this one as a ring */
.pnums { border-top: 1px solid var(--rule); padding-top: clamp(20px, 3vw, 36px); }
.pnums__copy p { color: var(--text-dim); max-width: 64ch; line-height: 1.6; }
.pnums__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px 28px; }
.pnum { --c: var(--accent); padding: 14px 16px 12px; border: 1px solid var(--border); border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--surface)), var(--surface)); }
.pnum__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pnum__head h3 { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.pnum__v { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--c); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pnum__rank { margin: 2px 0 6px; font-size: .92rem; color: var(--text-dim); }
.pnum__rank b { color: var(--text); font-variant-numeric: tabular-nums; }
.pnum__rank span { color: var(--text-mute); font-size: .8rem; }
.pnum__svg { display: block; width: 100%; height: 46px; overflow: visible; }
.pnum__axis { stroke: var(--border-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pnum__all { stroke: var(--text-mute); stroke-width: 1; opacity: .38; vector-effect: non-scaling-stroke; }
.pnum__ob { stroke: var(--c); stroke-width: 1.5; opacity: .75; vector-effect: non-scaling-stroke; }
.pnum__track { position: relative; }
.pnum__med, .pnum__omed, .pnum__me { position: absolute; transform: translateX(-50%); pointer-events: none; }
.pnum__med, .pnum__omed { width: 10px; height: 7px; }
.pnum__med { bottom: 0; background: var(--text-dim); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pnum__omed { top: 7px; background: var(--c); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.pnum__me { top: 27px; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--c), 0 0 12px var(--c); }
.pnum__scale { display: flex; justify-content: space-between; gap: 8px; margin: 2px 0 0; font-size: .74rem; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.pnum__scale span:nth-child(2) { text-align: center; }
.pnum__src { margin: 6px 0 0; font-size: .74rem; color: var(--text-mute); line-height: 1.4; }
.pmix { margin-top: 28px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.pmix h3 { margin: 0 0 12px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.pmix__bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; gap: 2px; }
.pmix__bar span { width: var(--w); background: var(--c); min-width: 3px; }
.pmix__leg { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--text-dim); }
.pmix__leg li { display: inline-flex; align-items: center; gap: 6px; }
.pmix__leg i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.pmix__leg b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Similar towns + rankings */
.psim { margin-top: 28px; }
.psim h3 { margin: 0 0 4px; font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim); }
.psim .plist { margin-top: 12px; }
.psim__more { margin: 12px 0 0; } .psim__more a, .pnum__src a { color: var(--accent); }
.prank__cta { margin: 0 0 18px; }
.prank__toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.prank__toc a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); text-decoration: none; font-size: .88rem; }
.prank__toc a:hover { border-color: var(--accent); color: var(--text); }
.prank__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; }
.prank { --c: var(--accent); padding: 18px; border: 1px solid var(--border); border-radius: 16px; scroll-margin-top: 90px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--surface)), var(--surface) 60%); }
.prank h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.prank__sub { margin: 4px 0 14px; color: var(--text-mute); font-size: .88rem; }
.prank__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prank__list li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; grid-template-areas: "n name val" "n bar bar"; column-gap: 10px; row-gap: 3px; align-items: baseline; }
.prank__n { grid-area: n; color: var(--text-mute); font-variant-numeric: tabular-nums; font-weight: 700; }
.prank__list a { grid-area: name; color: var(--text); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prank__list a:hover { color: var(--c); }
.prank__list small { display: none; }
.prank__list b { grid-area: val; color: var(--c); font-variant-numeric: tabular-nums; }
.prank__bar { grid-area: bar; height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); }
.prank__bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c); }
.prank__list li:first-child a { font-size: 1.08rem; }
