
@font-face {
  font-family: 'Redacted';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/assets/fonts/Redacted/Redacted-Regular.woff2') format('woff2');
}

/**
 * Shared skeleton tokens for the market content blocks.
 *
 * Every block concatenates this with its own `style.css` into
 * `makeElement({ style })` — via `./skeleton.ts`, which also prepends the
 * Redacted @font-face — so a block carries everything `[skeleton]` needs and
 * nothing has to be linked globally for the mode to work.
 *
 * The values are the wireframe's grey ramp expressed against `--text` /
 * `--background` rather than the flat hexes it was drawn with, so a skeleton
 * follows the site into dark mode instead of staying a light-mode artifact.
 */
:root {
  /* Redacted has no italic or bold cut — the fallback keeps metrics sane if the
     woff2 is missing, in which case a skeleton degrades to plain grey text. */
  --market-skeleton-font: 'Redacted', var(--font-primary, sans-serif);

  --market-skeleton-heading: color-mix(in srgb, var(--background), var(--text) 70%);
  --market-skeleton-copy: color-mix(in srgb, var(--background), var(--text) 30%);
  --market-skeleton-kicker: color-mix(in srgb, var(--background), var(--text) 24%);
  --market-skeleton-media: color-mix(in srgb, var(--background), var(--text) 38%);
  --market-skeleton-rule: color-mix(in srgb, var(--background), var(--text) 12%);
  --market-skeleton-surface: color-mix(in srgb, var(--background), var(--text) 2%);
}

market-key-benefits {
  position: relative;
  display: block;
  padding-top: 60px;
  padding-bottom: 60px;
}

market-key-benefits header > *:empty {
  display: none;
}

market-key-benefits header {
  text-align: center;
}

market-key-benefits header span {
  line-height: 1.25;
  font-size: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

market-key-benefits header h2 {
  font-weight: 700;
  font-size: 2rem;
}

market-key-benefits header p {
  font-weight: 400;
  line-height: 1.5rem;
  font-size: 16px;
}

market-key-benefits [benefits] {
  display: flex;
  justify-content: center;
  margin-top: 45px;
}

@media (max-width: 768px) {
  market-key-benefits [benefits] {
    margin-top: 15px;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
}
market-key-benefits [benefits] > [benefit] {
  max-width: 320px;
  padding: 0 45px;
  text-align: center;
  width: 33%;
}

@media (max-width: 768px) {
  market-key-benefits [benefits] > [benefit] {
    padding: 0 30px;
    width: auto;
  }
}

market-key-benefits [benefits] [benefit] svg-img {
  display: block;
  margin: auto;
  width: 45px;
  height: 45px;
  margin-top: 15px;
}

market-key-benefits [benefits] [benefit] svg-img :is(svg, img) {
  width: 45px;
  height: 45px;
  min-width: 45px;
}

market-key-benefits [benefits] [benefit] :is(h3,h4) {
  line-height: 22px;
  font-size: 16px;
  margin-top: 10px;
  margin-bottom: 10px;
}
@media (max-width: 768px) {
  market-key-benefits [benefits] [benefit] :is(h3,h4) {
    font-size: 12px;
    line-height: 18px;
  }
}
market-key-benefits [benefits] [benefit] p {
  font-size: 14px;
  line-height: 20px;
}
@media (max-width: 768px) {
}

/* The placeholder row, drawn only when nothing is slotted in. */
market-key-benefits [benefit][placeholder] [icon] {
  display: block;
  width: 45px;
  height: 45px;
  margin: 15px auto 0;
  border-radius: 50%;
  background: var(--market-skeleton-media, currentColor);
}

/* ---------------- SKELETON ---------------- */

market-key-benefits[skeleton],
market-key-benefits[skeleton] * {
  font-family: var(--market-skeleton-font);
  font-weight: 400;
  letter-spacing: normal;
}

market-key-benefits[skeleton] {
  background: var(--market-skeleton-surface);
  pointer-events: none;
  user-select: none;
}

market-key-benefits[skeleton] header > *:empty {
  display: revert;
}

/* Real artwork in a wireframe is not a wireframe — the disc stands in for it. */
market-key-benefits[skeleton] [benefit] svg-img {
  border-radius: 50%;
  background: var(--market-skeleton-media);
}

market-key-benefits[skeleton] [benefit] svg-img :is(svg, img) {
  visibility: hidden;
}

market-key-benefits[skeleton] header :is([kicker], [headline]) {
  color: var(--market-skeleton-heading);
}

market-key-benefits[skeleton] header [copy] {
  color: var(--market-skeleton-copy);
}

market-key-benefits[skeleton] [kicker]:empty::before {
  content: 'Why us';
}

market-key-benefits[skeleton] [headline]:empty::before {
  content: 'What comes with every order';
}

market-key-benefits[skeleton] header [copy]:empty::before {
  content: 'One line under the heading, before the three below it.';
}

market-key-benefits[skeleton] [benefit] :is(h3, h4) {
  color: var(--market-skeleton-heading);
}

market-key-benefits[skeleton] [benefit] p {
  color: var(--market-skeleton-copy);
}

market-key-benefits[skeleton] [benefit]:nth-child(2n + 1) h3:empty::before {
  content: 'A benefit';
}

market-key-benefits[skeleton] [benefit]:nth-child(2n + 2) h3:empty::before {
  content: 'Another one';
}

market-key-benefits[skeleton] [benefit] p:empty::before {
  content: 'Two lines saying what it is, without saying how it works.';
}
