/* Media kit — partner-facing stats and ad formats.
   Layers on careers.css: same tokens, same band, same surface treatment. Only
   the data-display pieces (stat grid, share bars, format cards, swatches) are
   new. Industrial per DESIGN.md — borders and typography carry hierarchy, the
   orange accent appears only on the one thing we want clicked. */

.mk-main {
  width: 100%;
  max-width: var(--ppx-content-max);
  margin: 0 auto;
  padding: 32px var(--ppx-page-inset) 72px;
}

.mk-title {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 12px;
}

.mk-lede {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 20px;
}

/* Dating the numbers is not a footnote — a media kit without an as-of date is
   asking the reader to assume they are current forever. */
.mk-asof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

.mk-asof-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.mk-section {
  margin-top: 56px;
}

.mk-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.mk-note {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: var(--pp-measure);
  margin: 16px 0 0;
}

/* ── Stat grid ─────────────────────────────────────────────── */

.mk-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.mk-stat {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  padding: 16px;
}

.mk-stat-value {
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.mk-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Share bars (countries, devices, sources) ──────────────── */

.mk-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.mk-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mk-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  font-size: 0.875rem;
}

.mk-bar-name {
  color: var(--text);
}

.mk-bar-pct {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}

.mk-bar-track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.mk-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.55;
}

/* One accent bar per chart — the leader. More than that and the accent stops
   meaning "look here". */
.mk-bar-row[data-lead] .mk-bar-fill {
  background: var(--accent);
  opacity: 1;
}

/* ── Format / rate cards ───────────────────────────────────── */

.mk-formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.mk-format {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mk-format-name {
  font-size: 0.9375rem;
  font-weight: 600;
}

.mk-format-price {
  font-size: 1.25rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

.mk-format-price span {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

.mk-format-desc {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

/* ── Brand assets ──────────────────────────────────────────── */

.mk-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mk-swatch {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 132px;
}

.mk-swatch-chip {
  height: 56px;
}

.mk-swatch-meta {
  padding: 8px 10px;
  font-size: 0.75rem;
  line-height: 1.4;
}

.mk-swatch-hex {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.mk-asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mk-asset-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text);
  background: var(--surface-flat);
}

.mk-asset-link:hover {
  border-color: var(--line-2);
}

/* ── Contact ───────────────────────────────────────────────── */

.mk-contact {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mk-contact-copy {
  max-width: 44ch;
}

.mk-contact-copy p {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.mk-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.mk-cta:hover {
  filter: brightness(1.06);
}

/* ── Spec table ────────────────────────────────────────────── */

.mk-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.mk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 420px;
}

.mk-table th,
.mk-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

.mk-table th {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.mk-table tbody tr:last-child td {
  border-bottom: none;
}

.mk-table td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
  .mk-cta,
  .mk-asset-link {
    transition: none;
  }
}

/* Sample-data preview banner. Present only while the figures on the page are
   illustrative; it ships with a noindex meta in the same commit. Deliberately
   loud — a media kit is read by people deciding where to spend money, and a
   placeholder that reads as real is worse than no page at all. */
.mk-sample {
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
  padding: 12px 14px;
  margin: 0 0 24px;
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: var(--pp-measure);
}
