/* Wem gehört's? (web/wem-gehoert/, owners.js) on top of kiez.css: the rail with filters and list beside a full-height
   map, then the tables, method and questions for reading. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.ow { background: var(--desk); }

/* the owner keys: colour plus shape, so colour is never the only sign */
.ow-key { display: inline-block; width: 11px; height: 11px; margin-right: 7px; vertical-align: -1px; background: var(--c, #a9a6b6); flex: none; }
.k-pe { --c: #c8402f; } .k-vc { --c: #6a3bff; transform: rotate(45deg) scale(.85); } .k-corp { --c: #1f63a8; border-radius: 2px; }
.k-family { --c: #2e7d4f; border-radius: 50%; } .k-unknown { --c: #a07a14; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 3px var(--c); }
.k-none { --c: #a9a6b6; border-radius: 50%; width: 8px; height: 8px; margin: 2px 9px 2px 2px; }
h3 .ow-key { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- the app: rail | map */
.ow-app { display: grid; grid-template-columns: 420px minmax(0, 1fr); height: 100vh; height: 100dvh; min-height: 560px; border-bottom: 1px solid var(--rule); }
.ow-rail { display: flex; flex-direction: column; min-height: 0; background: var(--desk); border-right: 1px solid var(--rule); }
.ow-head { padding: 18px 22px 0; }
.ow-filters { padding: 0 22px; }
.ow-home { display: inline-block; line-height: 0; }
.ow-home img { height: 26px; width: auto; }
.ow-rail h1 { font: 800 2.55rem/.98 "Sofia Sans Extra Condensed", sans-serif; text-transform: uppercase; margin: 14px 0 8px; }
.ow-dek { margin: 0 0 14px; font-size: .97rem; line-height: 1.45; font-weight: 600; }
.ow-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ow-tile { display: grid; gap: 1px; text-align: left; padding: 8px 10px 7px; background: var(--face); border: 1.5px solid var(--rule); border-radius: 2px;
  font: inherit; color: var(--ink); cursor: pointer; border-top: 4px solid var(--c); min-width: 0; }
.ow-tile b { font: 800 1.6rem/1 "Sofia Sans Extra Condensed", sans-serif; font-variant-numeric: tabular-nums; }
.ow-tile span { display: flex; align-items: center; font-size: .78rem; font-weight: 700; line-height: 1.15; }
.ow-tile:hover { border-color: var(--ink); border-top-color: var(--c); }
.ow-tile[aria-pressed="false"] { background: transparent; opacity: .5; border-style: dashed; border-top-style: solid; }
.ow-share { display: flex; gap: 2px; height: 6px; margin: 10px 0 0; }
.ow-share i { display: block; height: 100%; }
.ow-ctl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin: 12px 0 0; }
.ow-q { grid-column: 1 / -1; }
.ow-ctl input, .ow-ctl select { width: 100%; min-height: 42px; padding: 8px 10px; font: 400 .97rem/1.2 "Sofia Sans", system-ui, sans-serif; color: var(--ink);
  background: #fff; border: 1.5px solid rgb(18 18 18 / .3); border-radius: 2px; }
.ow-tile:focus-visible, .ow-ctl :focus-visible, .ow-card button:focus-visible, .ow-row:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.ow-count { margin: 12px 22px 0; font-size: .82rem; font-weight: 700; color: #4a4858; }
.ow-list { flex: 1; min-height: 0; overflow: auto; margin: 6px 0 0; padding: 0 0 20px; }
.ow-grp { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 10px 22px 7px; background: var(--desk);
  font: 800 .78rem/1 "Sofia Sans", sans-serif; letter-spacing: .05em; text-transform: uppercase; border-bottom: 2px solid var(--c); }
.ow-grp span:first-child { display: flex; align-items: center; }
.ow-grp span:last-child { font-weight: 600; color: #4a4858; }
.ow-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 22px; cursor: pointer; border-bottom: 1px solid var(--rule); }
.ow-row .ow-key { margin: 0; }
.ow-row b { display: block; font-weight: 800; font-size: 1rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-row span { display: block; font-size: .82rem; color: #4a4858; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-row small { font-size: .75rem; font-weight: 700; color: #4a4858; }
.ow-row:hover { background: var(--face); }
.ow-row.on { background: var(--face); box-shadow: inset 4px 0 0 var(--c); }
.ow-more-hint, .ow-empty { margin: 10px 22px; font-size: .88rem; color: #4a4858; }

.ow-mapwrap { position: relative; min-width: 0; min-height: 0; }
.ow-map { position: absolute; inset: 0; background: #e9e8ee; }
.ow-card:empty { display: none; }
.ow-card { position: absolute; left: 14px; bottom: 14px; z-index: 2; width: min(380px, calc(100% - 28px)); max-height: calc(100% - 28px); overflow: auto;
  background: var(--face); border: 1px solid var(--rule); box-shadow: 0 14px 32px -14px rgb(18 18 18 / .45); padding: 14px 16px; font-size: .95rem; line-height: 1.5; }
.ow-card h3 { margin: 0 34px 2px 0; font-size: 1.45rem; }
.ow-card p { margin: 0 0 9px; }
.ow-x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.ow-kind { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 3px !important; color: #4a4858; }
.ow-where { color: #4a4858; }
.ow-badge { display: inline-flex; align-items: center; font-weight: 800; padding: 4px 10px; border-left: 5px solid var(--c); background: #f4f3f8; }
.ow-badge small { font-weight: 600; margin-left: 4px; }
.ow-owner b { font-size: 1.02rem; } .ow-owner span { color: #4a4858; }
.ow-fr { font-weight: 600; }
.ow-h { font-weight: 800; margin: 12px 0 3px !important; }
.ow-src, .ow-alt { margin: 0 0 9px; padding-left: 1.1em; }
.ow-src li, .ow-alt li { margin: 0 0 3px; overflow-wrap: anywhere; }
.ow-alt button { font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ow-alt button:hover { color: var(--violet); }
.ow-stand { font-size: .82rem; color: #4a4858; }

/* ---------------------------------------------------------------- below the app: tables, method, questions */
.ow-more { max-width: 960px; }
.ow-more > h2, .ow-more > p, .ow-more > .text, .ow-more > .faq { max-width: 820px; }
.ow-t { border-collapse: collapse; width: 100%; background: var(--face); font-size: .95rem; }
.ow-t th, .ow-t td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ow-t th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.ow-t .num { text-align: right; font-variant-numeric: tabular-nums; width: 64px; }
.ow-t .src { font-size: .85rem; overflow-wrap: anywhere; max-width: 240px; }
.ow-t small { color: #4a4858; }
.ow-show { font: 700 .8rem/1 "Sofia Sans", system-ui, sans-serif; color: var(--violet); background: none; border: 0; padding: 2px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 900px) {
  /* phones and small tablets: the map first, then the rail with the list in the page's own scroll */
  /* the title first, then the map, then filters and list: the rail's parts join the page's own column */
  .ow-app { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .ow-rail { display: contents; }
  .ow-head { order: 0; } .ow-mapwrap { order: 1; height: 58vh; height: 58svh; min-height: 340px; margin-top: 12px; }
  .ow-filters { order: 2; padding: 12px 16px 0; } .ow-count { order: 3; } .ow-list { order: 4; }
  .ow-head .ow-dek { margin-bottom: 0; }
  .ow-list { overflow: visible; max-height: none; }
  .ow-grp { position: static; }
  .ow-head { padding: 14px 16px 0; }
  .ow-rail h1 { font-size: 2.1rem; }
  .ow-count, .ow-more-hint, .ow-empty { margin-left: 16px; margin-right: 16px; }
  .ow-grp, .ow-row { padding-left: 16px; padding-right: 16px; }
  .ow-card { left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 70%; }
  .ow-t .src, .ow-t th:last-child { display: none; }
}

.ow-empty button { font: inherit; font-weight: 800; color: var(--ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------------------------------------------------------------- one page per chain (/wem-gehoert/<chain>/) */
.ow-page .ow-own { padding: 16px 18px; }
.ow-page .ow-own p { margin: 0 0 9px; }
.ow-pl { list-style: none; padding: 0; margin: 0 0 10px; columns: 2; column-gap: 24px; }
.ow-pl li { break-inside: avoid; padding: 4px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.ow-pl small { color: #4a4858; }
.ow-page h3 small { font-family: "Sofia Sans", sans-serif; font-weight: 600; text-transform: none; }
@media (max-width: 720px) { .ow-pl { columns: 1; } }
