/* World Survey: the EntityMap page (entitymap.html). Loaded after encyclopedia.css, which sets the sheet, the
   type and the colours; this file only lays out the entities and their quoted passages. No JavaScript. */

.em-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 0 28px; }
.em-entity { padding: 16px 0 18px; border-top: 1px solid var(--ink); min-width: 0; scroll-margin-top: 16px; }
.em-entity:target { background: var(--overprint-soft); box-shadow: -10px 0 0 var(--overprint-soft), 10px 0 0 var(--overprint-soft); }
.em-entity h3 { margin: 0; font-weight: 700; font-stretch: 112%; font-size: 15.5px; line-height: 1.25; letter-spacing: 0.1em; text-transform: uppercase; overflow-wrap: anywhere; }
.em-entity > p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }
.em-entity .em-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; font-weight: 640; font-stretch: 76%; font-size: 10.5px; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.em-meta a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 2px; }
.em-meta a:hover { color: var(--overprint-deep); text-decoration-color: currentColor; }

.em-rel { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 14px; line-height: 1.5; }
.em-rel a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 2px; }
.em-rel a:hover { color: var(--overprint-deep); text-decoration-color: currentColor; }
.em-pred { font-weight: 640; font-stretch: 76%; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }

/* A passage quoted from a page, with the page and the publisher named under it in plain text. */
.em-entity blockquote { margin: 12px 0 0; padding: 0 0 0 12px; border-left: 2px solid var(--water-ink); scroll-margin-top: 16px; }
.em-entity blockquote p { margin: 0; font: italic 400 15px/1.5 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.em-entity blockquote cite { display: block; margin-top: 5px; font: normal 400 12.5px/1.45 var(--sans); color: var(--ink-3); overflow-wrap: anywhere; }
.em-entity blockquote cite a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 2px; }
.em-entity blockquote cite a:hover { color: var(--overprint-deep); text-decoration-color: currentColor; }

.em-type > .note { margin: 6px 0 12px; }
.em-type + .em-type { margin-top: 44px; }

@media (max-width: 640px) {
  .em-entity { padding: 14px 0 16px; }
  .em-entity > p, .em-entity blockquote p { font-size: 14.5px; }
}
@media print {
  .em-list { display: block; }
  .em-entity { break-inside: avoid; }
}
