/* Media kit (/media-kit): the hero mark, the official links index, logo previews in the
   downloads list, the hardware cards and the brand section's mark, palette roles and type
   samples. Colours from tokens.css only. */

/* the hero mark, as on the legacy kit: 64 px high above the label */
.mk-hero-mark { display: block; width: auto; height: 64px; margin: 0 0 1.25rem; }

/* official links: label above the address, one ruled row each */
.mk-links { list-style: none; margin: 1.2rem 0 0; padding: 0; border-top: 1px solid var(--rule); }
.mk-links li { border-bottom: 1px solid var(--rule); }
.mk-link { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 0.7rem 0; text-decoration: none; color: var(--ink); }
.mk-link-label { font-family: var(--mono); font-size: var(--t-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mk-link-url { margin-top: 0.15rem; color: var(--accent-ink); overflow-wrap: anywhere; }
.mk-link:hover .mk-link-url { color: var(--ink); }

/* logo downloads: a preview on the left, the name and the buttons beside it */
.mk-dl { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
.mk-dl h3 { grid-column: 2; font-size: 1rem; }
.mk-preview { grid-column: 1; grid-row: 1 / span 2; display: inline-flex; align-items: center; }
.mk-preview img { display: block; width: auto; height: 72px; }
.mk-dl-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.download .mk-dl-links .btn { grid-column: auto; grid-row: auto; white-space: normal; }
.mk-dl:not(:has(.mk-preview)) :is(h3, .mk-dl-links) { grid-column: 1 / -1; }
.mk-on-light { background: var(--ink); padding: 0.75rem 1rem; }
.mk-on-light img { height: 48px; }
@media (max-width: 640px) {
  .mk-dl { grid-template-columns: minmax(0, 1fr); }
  .mk-dl h3, .mk-preview, .mk-dl-links { grid-column: 1; grid-row: auto; }
  .mk-preview { justify-self: start; }
}

/* the hardware cards and the firmware block */
.mk-hw img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); margin: 0 0 0.6rem; }
.mk-firmware { margin-top: 1rem; }
.mk-firmware p { max-width: 60ch; }

/* brand: the label over the section heading */
#brand > .label { display: block; margin: 2.5rem 0 0; }
#brand > .label + h2 { margin-top: 0.6rem; }

/* the mark on paper (a light chip, since the site is dark-only) and the tile on ink */
.mk-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 2.5rem; padding: 1.5rem 0; }
.mk-marks > img { width: auto; height: 84px; }
.mk-marks .mk-on-light { display: inline-flex; padding: 0.5rem; }
.mk-marks .mk-on-light img { width: auto; height: 84px; }

/* palette roles and type samples */
.mk-role { display: block; font-weight: 400; font-size: var(--t-small); color: var(--muted); }
.specimen > figcaption { margin: 0 0 0.7rem; }
.specimen > p { margin: 0; }
.mk-display { text-transform: uppercase; font-stretch: 122%; font-size: clamp(1.5rem, 4vw, 2.2rem); overflow-wrap: anywhere; }
.mk-body { font-size: 1.15rem; line-height: 1.5; max-width: 54ch; }

@media print {
  .mk-on-light { border: 1px solid #ccc; }
}
