/* The Societies page, on site.css's colours and type: one line per society in five columns, as on the Creatures page,
   which fold under the name on a narrow screen; its facts, members and land open in a popup (under the row without
   scripts); sources behind a question mark as on the Hall of Fame page; tables scroll sideways on a narrow screen. */
.s-intro { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.i-search { flex: 1 1 220px; }
.i-search .ftext { flex: 1 1 auto; min-width: 0; min-height: 32px; padding: 0 8px; font: inherit; font-size: 14px; color: var(--fg); background: var(--bg); border: 1px solid var(--control); border-radius: 0; }
.shown { margin: 12px 0 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.item[hidden], html:not(.js) .shown { display: none; }
.items { list-style: none; margin: 0; padding: 0; }
.i-cols, .item { display: grid; grid-template-columns: minmax(0, 1fr) 11rem 6rem 7rem 7rem; gap: 0 12px; align-items: center; }
.i-cols { margin-top: 16px; padding: 6px 0 4px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: bold; color: var(--fg); }
.item { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.4; cursor: pointer; }
.item { content-visibility: auto; contain-intrinsic-size: auto 35px; }
.item:target { background: var(--line); }
.item:hover .s-name { text-decoration: underline dotted; }
.s-name, .s-leader { min-width: 0; overflow-wrap: anywhere; }
.s-leader, .s-count, .s-years { color: var(--muted); }
.s-count, .s-years { font-variant-numeric: tabular-nums; }
.i-more { grid-column: 1 / -1; margin: 4px 0 6px; font-size: 13px; line-height: 1.5; cursor: auto; }
html.js .item .i-more { display: none; }
.i-pop { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 0; }
.i-pop::backdrop { background: rgba(0, 0, 0, .6); }
.i-pop-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px 8px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.i-pop-title { flex: 1; min-width: 0; align-self: center; font-size: 20px; font-weight: bold; overflow-wrap: anywhere; }
.i-pop-close { flex: none; width: 32px; height: 32px; padding: 0; font: inherit; font-size: 20px; line-height: 1; color: var(--fg); background: transparent; border: 1px solid var(--control); border-radius: 0; cursor: pointer; }
.i-pop-body { padding: 8px 16px 12px; overflow-wrap: anywhere; }
.i-pop .i-more { margin: 0; font-size: 16px; line-height: 1.5; }
.i-more h3 { margin: 14px 0 4px; font-size: 14px; }
.s-facts, .s-table { border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.s-facts th { padding: 3px 14px 3px 0; text-align: left; vertical-align: top; font-weight: normal; color: var(--muted); white-space: nowrap; }
.s-facts td { padding: 3px 0; vertical-align: top; overflow-wrap: anywhere; }
.s-fact { display: block; }
.s-seen { font-size: 13px; color: var(--muted); }
.s-scroll { overflow-x: auto; }
.s-table th, .s-table td { padding: 3px 12px 3px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.s-table thead th { font-size: 13px; white-space: nowrap; }
.s-table .n { text-align: right; white-space: nowrap; }
.s-table td.d { white-space: nowrap; color: var(--muted); }
.s-table td.q { width: 18px; padding-right: 0; }
.src { position: relative; display: inline-block; width: 18px; height: 18px; font-size: 12px; line-height: 16px; text-align: center; vertical-align: 1px; color: var(--muted); border: 1px solid var(--control); cursor: help; }
.src:hover, .src:focus { color: var(--fg); border-color: var(--fg); outline: none; }
.src > span { position: absolute; left: 0; top: 100%; z-index: 3; width: max-content; max-width: min(440px, calc(100vw - 16px)); padding: 7px 10px; font-size: 14px; line-height: 1.45; text-align: left; white-space: normal; color: var(--fg); background: var(--panel); border: 1px solid var(--line); visibility: hidden; }
html.js .src > span { position: fixed; }
.src:hover > span, .src:focus-within > span { visibility: visible; }
.src .e { display: block; }
@media (max-width: 640px) {
  .i-cols { display: none; }
  .item { grid-template-columns: minmax(0, 1fr) auto; }
  .s-name { grid-column: 1 / -1; font-weight: bold; }
  .s-leader { grid-column: 1; }
  .s-years { grid-column: 2; grid-row: 2; }
  .s-count { grid-column: 1 / -1; font-size: 13px; }
}
