/*
  Add-on pages (Pages/AddOns/Show) and the display kit that draws what an add-on hands
  over (Pages/Shared/_DisplayBlocks, classes "dk-"). Variables from site.css only.
  Mobile first: a phone is the base, wider screens add to it.
*/

.addon-page { max-width: 860px; }

.dk { display: flex; flex-direction: column; gap: 14px; }
.dk-heading { margin: 8px 0 0; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.dk-p { margin: 0; max-width: 72ch; line-height: 1.55; overflow-wrap: anywhere; }
.dk-note { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.dk-link { color: var(--accent); overflow-wrap: anywhere; }
.dk-out { margin-left: 4px; vertical-align: -1px; }

/* Facts: label over value on a phone, side by side from 640 px. */
.dk-facts { margin: 0; padding: 4px 16px; }
.dk-fact { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.dk-fact:first-child { border-top: 0; }
.dk-fact dt { color: var(--muted); font-size: 14px; }
.dk-fact dd { margin: 0; overflow-wrap: anywhere; }

/* Links: a row each, tall enough to tap. */
.dk-links { margin: 0; padding: 0; list-style: none; }
.dk-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; min-height: 48px; padding: 4px 16px; border-top: 1px solid var(--line-soft); }
.dk-links li:first-child { border-top: 0; }
.dk-links .dk-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* A table scrolls inside its own box, never the page. */
.dk-table-box { overflow-x: auto; }
.dk-table-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.dk-table caption { padding: 12px 16px 4px; text-align: left; font-weight: 600; }
.dk-table th, .dk-table td { padding: 10px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.dk-table th { color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; background: var(--band); }
.dk-table td { min-width: 6ch; overflow-wrap: anywhere; }

.dk-members .empty { margin: 0; padding: 14px 16px; color: var(--muted); }

/* A map, drawn as a list of its places for now. */
.dk-map { margin: 0; }
.dk-map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--band); }
.dk-map-label { font-weight: 600; }
.dk-places { margin: 0; padding: 0; list-style: none; }
.dk-places li { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border-top: 1px solid var(--line-soft); }
.dk-places li:first-child { border-top: 0; }
.dk-place-name { overflow-wrap: anywhere; }
.dk-place-name .dk-link { display: inline-flex; align-items: center; min-height: 32px; }

@media (min-width: 640px) {
  .dk-fact { flex-direction: row; gap: 16px; }
  .dk-fact dt { flex: 0 0 34%; max-width: 220px; font-size: 15px; }
  .dk-places li { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
}
