/* /places; 1,463 places below the province line.
   State is encoded in weight and mark as well as colour, so a place with
   nothing published still reads as different in greyscale and for a
   colour-blind reader. */

.pl-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .7rem; margin: 1.6rem 0 2rem;
}

.pl-empty-note {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 4px solid var(--status-warning);
  border-radius: 3px; padding: 1rem 1.1rem; margin: 2rem 0;
}
.pl-empty-note h2 { margin: 0 0 .5rem; font-size: 1.05rem; }
.pl-empty-note p { font-size: .92rem; margin: 0 0 .7rem; }
.pl-empty-note p:last-child { margin-bottom: 0; }

.pl-parent { margin-top: 3rem; }
.pl-parent > h2 {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem;
  border-bottom: 2px solid var(--ink); padding-bottom: .35rem; margin-bottom: 0;
}
.pl-count {
  font-size: .7rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3);
}

.pl-kind { margin-top: 1.6rem; }
.pl-kind h3 {
  font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 .6rem;
}

.pl-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: .3rem .9rem;
}
/* min-width: 0 on both the track and the item, because a grid item defaults to
   min-width: auto and will not shrink below its longest unbreakable word. The
   longest names here are real and long: "Little Harbour, Placentia Bay, Local
   Service District of" and "CENTRE MULTISERVICES DE SANTE ET DE SERVICES
   SOCIAUX DE SAINT-MARC-DES-CARRIERES" at eighty characters. Without this the
   track widens to fit them and the whole page scrolls sideways. */
.pl-list > * { min-width: 0; }
.pl-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .5rem;
  align-items: baseline; padding: .38rem .1rem;
  border-bottom: 1px solid var(--line-soft);
  min-width: 0;
}
.pl-name { font-size: .88rem; min-width: 0; overflow-wrap: anywhere; }
.pl-code {
  font-family: ui-monospace, Consolas, "Cascadia Mono", monospace;
  font-size: .68rem; color: var(--ink-3); font-variant-numeric: tabular-nums;
}
.pl-have {
  grid-column: 1 / -1; font-size: .72rem; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.pl-span {
  grid-column: 1 / -1; font-size: .68rem; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

/* A place with nothing published carries a mark and a weight change, not only
   a colour, so it survives greyscale print and colour-blind reading. */
.pl-item-empty { border-bottom-style: dashed; border-bottom-color: var(--status-warning); }
.pl-item-empty .pl-name { font-style: italic; }
.pl-item-empty .pl-name::after { content: " \00B7\00B7"; letter-spacing: .1em; color: var(--status-warning); }
.pl-none {
  grid-column: 1 / -1; font-size: .72rem; font-weight: 600;
  color: var(--status-warning); font-variant-numeric: tabular-nums;
}

@media (max-width: 30rem) {
  .pl-list { grid-template-columns: 1fr; }
}
