/*
 * CITY OF LEGENDS: Make a Legend (src/make/). Every class starts mk-.
 *
 * Archetype, powerset and travel-line pages. Same Neon Ink rules as guide.css:
 * hard edges, flat colour, halftone dots for shade, no blur, no glow, no soft
 * gradients, and nothing animates. Mobile first; the min-width blocks are the
 * wider layouts. Hover changes are colour only. This file never restyles a g- class.
 */

/* ── ability cards ─────────────────────────────────────────────────── */

.mk-abilities {
  display: grid;
  gap: 28px;
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
}
.mk-ability {
  min-width: 0;
  padding: 18px 18px 4px;
  border: 3px solid var(--paper);
  background-color: var(--ink);
  background-image: radial-gradient(rgba(217, 210, 189, 0.07) 1.2px, transparent 1.6px);
  background-size: 9px 9px;
  box-shadow: 6px 6px 0 var(--registry);
}
.mk-ab-name {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(26px, 5vw, 32px);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.mk-ab-does {
  margin: 0;
  color: var(--text);
}
/* The canon line is a kit quote, sized down to sit inside a card. Scoped to this wrapper only. */
.mk-ab-line .g-q {
  margin: 14px 0 16px;
}
.mk-ab-line .g-q blockquote {
  padding-left: 14px;
  border-left-width: 4px;
}
.mk-ab-line .g-q blockquote p {
  font-size: 19px;
  line-height: 1.18;
}

/* ── doctrine forks: take one ──────────────────────────────────────── */

.mk-fork {
  max-width: 46rem;
  margin: 0 0 22px;
  padding: 14px 16px 16px;
  border: 3px solid var(--line);
  background-color: var(--night);
  background-image: radial-gradient(rgba(56, 232, 255, 0.08) 1.2px, transparent 1.6px);
  background-size: 9px 9px;
}
.mk-fork-tier {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--sodium);
}
.mk-fork-pair {
  display: grid;
  gap: 8px;
}
.mk-fork-opt {
  padding: 10px 14px;
  border-left: 6px solid var(--paper);
  background: var(--ink);
}
.mk-fork-opt b {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--paper);
  overflow-wrap: anywhere;
}
.mk-fork-opt p {
  margin: 6px 0 0;
  color: var(--text);
}
.mk-fork-or {
  justify-self: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--dim);
}
.mk-capstone {
  max-width: 46rem;
  margin: 26px 0 8px;
  padding-top: 14px;
  border-top: 3px solid var(--paper);
  color: var(--paper);
}
.mk-capstone b {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--t-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--sodium);
}

/* ── tags and shelves ──────────────────────────────────────────────── */

.mk-tags,
.mk-shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.mk-tags li {
  padding: 4px 12px;
  border: 2px solid var(--lattice);
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lattice);
}
.mk-shelf li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 14px;
  border: 3px solid var(--paper);
  background: var(--ink);
}
.mk-shelf a {
  font-family: var(--display);
  font-weight: 900;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}
.mk-shelf li:hover,
.mk-shelf li:focus-within {
  background: var(--paper);
}
.mk-shelf li:hover a,
.mk-shelf li:focus-within a {
  color: var(--ink);
}
.mk-anchor {
  padding: 1px 8px;
  border: 2px solid var(--sodium);
  font-family: var(--display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sodium);
}
.mk-shelf li:hover .mk-anchor,
.mk-shelf li:focus-within .mk-anchor {
  background: var(--ink);
}

/* ── the combat line ───────────────────────────────────────────────── */

.mk-salvo {
  max-width: 46rem;
  margin: 18px 0 8px;
  padding: 8px 14px;
  border-left: 6px solid var(--sodium);
  background: var(--night-2);
  color: var(--paper);
}

/* ── wider screens ─────────────────────────────────────────────────── */

@media (min-width: 640px) {
  .mk-fork-pair {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 14px;
  }
  .mk-fork-or {
    align-self: center;
  }
}

@media (min-width: 900px) {
  .mk-abilities {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
