/* Place pages (/place/<slug>, /places; worker/pages/place.ts), direction A "Four questions". Phone first. Linked from
   those pages only. The site's tokens (styles.css): white page, black sheet panels, Schibsted Grotesk and Martian Mono.
   Hatching means "no data", as on the site's map. Red and green mark a cost going up or down (owner, 10 Nov 2026). */
.pl { --pl-r: 4px; }
.pl h1, .pl h2, .pl h3, .pl p { margin: 0; }
/* The title, breadcrumb and lede take their sizes from the design system (styles.css). */
.pl-head { padding: clamp(32px, 6vh, 64px) 0 0; }
.pl .pl-kicker { margin: 0 0 16px; }
.pl-towns { margin-top: 14px; max-width: var(--w-text); font-weight: 600; font-size: 1rem; color: var(--ink-2); }
.pl .pl-lede { margin-top: 8px; }
.pl-grid { display: grid; gap: var(--s-6); margin-top: var(--s-5); }
.pl-grid > * { min-width: 0; }

/* The black sheet */
.pl-sheet { position: relative; isolation: isolate; overflow: hidden; padding: 18px 18px 16px; border-radius: var(--pl-r); background: var(--core); color: var(--on-core); }
.pl-sheet .tl-fine { color: var(--on-core-2); }
.pl-sheet .tl-fine a { display: inline; min-height: 0; color: var(--on-core); font-weight: 600; }
.pl-sheet-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 .75rem/1.3 var(--mono); letter-spacing: .03em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 70%, var(--on-core)); }
.pl-sheet-h::before { content: ''; width: 8px; height: 8px; background: var(--accent); flex: none; }
.pl-glance { display: grid; }
.pl-glance a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; align-items: center; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--on-core) 16%, transparent); color: var(--on-core); text-decoration: none; }
.pl-glance a:first-of-type { border-top: 0; padding-top: 2px; }
.pl-glance a:last-of-type { padding-bottom: 2px; }
.pl-q { grid-column: 1 / -1; font: 500 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--on-core-2); }
.pl-ans { font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; }
.pl-go { font-size: 1.1rem; color: var(--accent); }
.pl-glance a:hover .pl-ans, .pl-glance a:focus-visible .pl-ans { text-decoration: underline; text-underline-offset: 3px; }
.pl-map { display: none; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--on-core) 16%, transparent); }
.pl-map img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.pl-map figcaption { margin-top: 10px; font-size: .78rem; line-height: 1.4; color: var(--on-core-2); }

/* Sections and facts */
.pl-sec { scroll-margin-top: 76px; }
.pl-sec + .pl-sec { margin-top: var(--sec); }
/* The section header's rule and size are the design system's (styles.css .pl-sec-h); the number is this family's. */
.pl-sec-h { display: flex; align-items: baseline; gap: 12px; }
.pl-n { font: 500 .75rem/1 var(--mono); color: var(--accent-ink); }
.pl-rows { display: grid; }
.pl-fact { padding: 18px 0; border-top: 1px solid var(--rule); min-width: 0; }
.pl-rows > .pl-fact:first-child { border-top: 0; padding-top: 6px; }
.pl-fact-l { font-weight: 600; font-size: var(--t-sm); color: var(--ink-2); }
.pl-fact-v { margin-top: 4px; font: 620 1.9rem/1.1 var(--sans); letter-spacing: -.035em; overflow-wrap: anywhere; }
.pl-fact-v small { font: 500 .9rem/1.2 var(--sans); letter-spacing: 0; color: var(--ink-3); }
.pl-fact-v.pl-words { font-size: 1.28rem; letter-spacing: -.02em; line-height: 1.2; }
.pl-fact-n { margin-top: 6px; max-width: var(--w-text); font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.pl-hist { display: flex; align-items: flex-end; gap: 14px; margin-top: 12px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--pl-r); color: var(--ink); }
.pl-hist svg { flex: none; display: block; }
.pl-hist p { font-size: .82rem; line-height: 1.4; color: var(--ink-2); }
.pl-hist b { color: var(--ink); font-weight: 650; }
.pl-hist-k { display: block; font: 500 .75rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.pl-src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 10px; font-size: .8rem; line-height: 1.45; color: var(--ink-3); }
.pl-src a { color: var(--ink-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.pl-src .pl-rel { font-family: var(--mono); font-size: .75rem; padding: 2px 6px; border: 1px solid var(--rule-2); border-radius: 2px; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.pl-tag { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 2px; font: 500 .75rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .02em; background: var(--sunk); color: var(--ink-2); white-space: nowrap; vertical-align: 1px; }
.pl-tag.pl-up { background: color-mix(in srgb, var(--flag) 12%, var(--bg)); color: color-mix(in srgb, var(--flag) 78%, #000); }
.pl-tag.pl-dn { background: color-mix(in srgb, var(--accent) 14%, var(--bg)); color: color-mix(in srgb, var(--accent-ink) 82%, #000); }
.pl-none { display: inline-block; padding: 1px 7px; border: 1px solid var(--ink); border-radius: 2px; font: 500 .75rem/1.5 var(--mono); letter-spacing: 0; text-transform: uppercase; vertical-align: middle; }
.pl-links { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: .92rem; line-height: 1.6; }
.pl-links span { font-weight: 600; color: var(--ink-2); }

/* Gaps: hatching means "no data" */
.pl-gaps { margin-top: var(--s-5); border: 1px dashed var(--rule-2); border-radius: var(--pl-r); background: var(--surface); }
.pl-gaps-h { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font: 600 .84rem/1.3 var(--sans); border-bottom: 1px dashed var(--rule-2); }
.pl-gaps-h::before { content: ''; width: 18px; height: 18px; flex: none; border: 1px solid var(--ink-2); background: repeating-linear-gradient(45deg, var(--ink-2) 0 1px, transparent 1px 4px); }
.pl-gaps ul { list-style: none; margin: 0; padding: 2px 12px 6px; }
.pl-gaps li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: .86rem; }
.pl-gaps li:first-child { border-top: 0; }
.pl-gaps li span { color: var(--ink-3); font-size: .78rem; text-align: right; }

/* What's about to change, and changed lately */
.pl-nx, .pl-chg { list-style: none; margin: 0; padding: 0; }
.pl-nx li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-top: 1px solid var(--rule); }
.pl-nx li:first-child { border-top: 0; }
.pl-d { font: 620 1.1rem/1.1 var(--sans); letter-spacing: -.02em; }
.pl-d small { display: block; margin-top: 3px; font: 400 .75rem/1 var(--mono); color: var(--ink-3); }
.pl-nx b { display: block; font-size: .95rem; }
.pl-nx li > span:last-child > span { font-size: .9rem; color: var(--ink-2); }
.pl-sub { margin-top: var(--s-6) !important; padding-top: 14px; border-top: 1px solid var(--ink); font: 600 var(--t-h3)/1.3 var(--sans); letter-spacing: -.01em; }
.pl-chg li { display: grid; gap: 1px; padding: 10px 0; border-top: 1px solid var(--rule); }
.pl-chg li:first-child { border-top: 0; }
.pl-when { font: 500 .75rem/1.4 var(--mono); text-transform: uppercase; color: var(--ink-3); }
.pl-what { font-weight: 600; font-size: .92rem; }
.pl-move { font: 620 1.15rem/1.2 var(--sans); letter-spacing: -.02em; }
.pl-move b { font-weight: 620; }
.pl-move.pl-up b { color: var(--flag); }
.pl-move.pl-dn b { color: var(--accent-ink); }
.pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pl-read { margin-top: var(--sec); }
.pl-read ol { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 5px; font-size: .88rem; line-height: 1.45; color: var(--on-core-2); }
.pl-read ol b { color: var(--on-core); font-weight: 600; }
.pl-all { margin-top: var(--s-6) !important; }

/* From a tablet up the facts sit side by side; on a wide screen the black sheet is a band across the page (its
   answers in columns, the map beside them) and the facts run three across. */
@media (min-width: 700px) {
  .pl-rows, .pl-nx { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col); }
  .pl-nx { display: grid; }
  .pl-rows > .pl-fact:nth-child(2) { border-top: 0; padding-top: 6px; }
  .pl-nx li:nth-child(2) { border-top: 0; }
  .pl-chg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--col); }
  .pl-chg li { border-top: 0; }
  .pl-sec .pl-gaps { max-width: 460px; }
  .pl-read ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col); }
}
@media (min-width: 1080px) {
  .pl-grid { gap: var(--sec); margin-top: var(--s-6); }
  .pl-sheet { padding: 26px 30px 24px; }
  .pl-side .pl-sheet { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--col); align-content: start; }
  .pl-side .pl-sheet > * { grid-column: 1; }
  .pl-side .pl-sheet > .pl-sheet-h { grid-column: 1 / -1; margin-bottom: 18px; }
  .pl-side .pl-sheet:has(.pl-map) { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
  .pl-map { display: block; grid-column: 2 !important; grid-row: 2 / span 8; align-self: start; margin: 0; padding: 0; border: 0; }
  .pl-glance { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px var(--s-6); }
  .pl-side .pl-sheet:has(.pl-map) .pl-glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-glance a, .pl-glance a:first-of-type, .pl-glance a:last-of-type { align-content: start; padding: 2px 0 2px 16px; border-top: 0; border-left: 1px solid color-mix(in srgb, var(--on-core) 22%, transparent); }
  .pl-q { margin-bottom: 4px; }
  .pl-ans { font-size: 1.12rem; }
  .pl-cmp { margin-top: 22px; }
  .pl-side .pl-sheet > :is(.pl-cmp, .tl-fine) { padding-left: 17px; }
  .pl-rows, .pl-nx { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-rows > .pl-fact:nth-child(3) { border-top: 0; padding-top: 6px; }
  .pl-nx li:nth-child(3) { border-top: 0; }
}
/* Phones stay as short as they were: the old, tighter rhythm. */
@media (max-width: 699px) {
  .pl-sec + .pl-sec { margin-top: 22px; }
  .pl-fact { padding: 13px 0; }
  .pl-rows > .pl-fact:first-child { padding-top: 4px; }
  .pl-fact-v { margin-top: 2px; font-size: 1.8rem; }
  .pl-fact-n { margin-top: 4px; font-size: .9rem; line-height: 1.45; }
  .pl-hist { margin-top: 8px; padding: 8px 10px; gap: 12px; }
  .pl-src { margin-top: 8px; font-size: .78rem; line-height: 1.4; }
  .pl-gaps { margin-top: 12px; }
  /* Phones keep the page as short as before the design system (DESIGN.md, Phones): its head, gaps, sheet padding and
     the looser line height of the dates and the month's sheet are trimmed here only (13 Nov 2026). */
  .pl-head { padding-top: 28px; }
  .pl-grid { gap: 22px; margin-top: 18px; }
  .pl-sheet { padding: 16px 16px 14px; }
  .pl-fact-l { font-size: .88rem; }
  .pl-fact-v.pl-words { font-size: 1.22rem; }
  .pl-nx li > span:last-child, .pl-chg { line-height: 1.45; }
  .pl-src { row-gap: 2px; }
  .pl-hist { margin-top: 6px; }
  .pl .cd-row { padding: 7px 0; gap: 2px 14px; line-height: 1.45; }
  .pl .cd-line { line-height: 1.35; }
}

/* "Compare with another place" (step 2.7), under the glance. */
.pl-cmp { margin: 12px 0 0; font-weight: 600; font-size: .9rem; }
.pl-cmp a { display: inline-block; padding-block: 4px; color: var(--on-core); text-underline-offset: 3px; }

/* A fact's history and source behind one tap on phones, open on wide screens (site review A-024). */
.pl-more { margin-top: 8px; }
.pl-more > summary { display: inline-flex; align-items: center; min-height: 32px; cursor: pointer; font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
@media (pointer: coarse) { .pl-more > summary { min-height: 44px; } }
