/* The client's markup of a site map, for the team (js/sitemap-markup-viewer.js).
   The portal's centred overlay in the shell's tokens, so it reads the same
   light or dark. The marked-up map is the one big thing; the client's words
   and numbered pins sit beside it (under it on a phone), grouped by space. */

.mkv-open {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-head); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px;
}
.mkv-open svg { width: 14px; height: 14px; color: #d6301f; flex: none; }
.mkv-open:hover { text-decoration-thickness: 2px; }
.mkv-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.mkv-scrim {
  position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(15, 18, 26, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: mkv-fade .18s ease-out;
}
.mkv-dialog {
  display: flex; flex-direction: column; box-sizing: border-box;
  width: min(1180px, 100%); max-height: calc(100dvh - 32px); overflow: hidden;
  background: var(--surface); color: var(--text-body); border: 0; border-radius: var(--my-r-xl);
  box-shadow: var(--my-pop-shadow); font-family: var(--font-sans);
  animation: mkv-rise .22s cubic-bezier(.2, .8, .2, 1);
}
.mkv-dialog:focus { outline: none; }
.mkv-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 18px 14px 26px; }
.mkv-head-text { flex: 1; min-width: 0; }
.mkv-title { margin: 0; font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.2; color: var(--text-head); }
.mkv-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--text-muted); }
.mkv-x {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none;
  border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); cursor: pointer;
}
.mkv-x svg { width: 18px; height: 18px; }
.mkv-x:hover { background: var(--surface-2); color: var(--text-head); }
.mkv-x:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.mkv-body { display: flex; gap: 28px; min-height: 0; overflow: auto; padding: 0 26px 24px; }
.mkv-figure {
  flex: 1 1 auto; min-width: 0; display: block; align-self: flex-start;
  background: var(--surface-2); border-radius: var(--my-r); overflow: hidden; cursor: zoom-in;
}
.mkv-figure img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 160px); object-fit: contain; }
.mkv-figure:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.mkv-notes { flex: 0 0 300px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mkv-who { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-body); }
.mkv-quote {
  margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-strong);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.mkv-pins { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mkv-pins li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--text-strong); }
.mkv-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-top: -1px;
  border-radius: 8px; background: #d6301f; color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.mkv-pin-text { min-width: 0; overflow-wrap: anywhere; }
.mkv-muted, .mkv-empty { color: var(--text-muted); }
.mkv-empty { margin: 0; font-size: 14px; }
.mkv-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: auto; padding-top: 6px; }

@keyframes mkv-fade { from { opacity: 0; } }
@keyframes mkv-rise { from { opacity: 0; transform: translateY(8px) scale(.99); } }
@media (prefers-reduced-motion: reduce) { .mkv-scrim, .mkv-dialog { animation: none; } }

@media (max-width: 760px) {
  .mkv-scrim { padding: 0; }
  .mkv-dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .mkv-head { padding: 16px 10px 10px 16px; }
  .mkv-body { flex-direction: column; gap: 18px; padding: 0 16px 16px; }
  .mkv-notes { flex: none; }
  .mkv-figure img { max-height: none; }
  .mkv-foot { margin-top: 4px; }
  .mkv-foot .ds-btn { flex: 1; justify-content: center; }
}
.project-site-markup { padding: 0 2px 8px; }
