/* ── components/site-header/site-header.css ── */
/* -- Site Header (marketing) -------------------------------------
   Fixed-height product header: brand left, nav center, actions right.
   The doc site's own chrome uses .site-header/<site-header>; marketing
   pages use .mk-header so the two never collide. */

@layer components {
  .mk-header {
    /* container query, not @media: the header adapts to the width it is
       placed in (doc preview box, sidebar layout, full page) */
    container: mk-header / inline-size;
    position: relative;
    width: 100%;
    background: var(--background);
    color: var(--foreground);

    &[data-variant="sticky"] {
      position: sticky;
      top: 0;
      z-index: 50;
    }
  }

  .mk-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.5rem;
    max-width: 80rem;
    margin-inline: auto;
    padding: 1rem 1.25rem;
  }

  .mk-header-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    /* the glyph follows the name - never the browser's link blue */
    color: var(--primary);
    text-decoration: none;

    & svg {
      width: 1.25rem;
      height: 1.25rem;
      flex-shrink: 0;
    }
  }

  .mk-header-name {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  /* nav collapses below the container breakpoint (source: `hidden md:flex`).
     The nav composes the navigation-menu component (.nav-menu-list /
     .nav-menu-trigger / .nav-menu-content) - its dropdown popovers are the
     native Popover API, so the header stays CSS-only. */
  .mk-header-nav {
    display: none;
    align-items: center;
  }

  .mk-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  /* narrow: the nav moves into a Sheet behind a menu button; secondary
     actions (.mk-header-wide) step aside */
  .mk-header-menu {
    display: inline-flex;
  }
  .mk-header-actions .mk-header-wide {
    display: none;
  }

  /* the navigation inside the sheet: big tap targets, groups with a label */
  .mk-header-sheet-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.75rem;
      min-height: 2.75rem;
      padding: 0.5rem 0.75rem;
      border-radius: var(--radius-md);
      color: var(--foreground);
      font-size: 1rem;
      font-weight: 500;
      text-decoration: none;

      &:hover {
        background: var(--accent);
        color: var(--accent-foreground);
      }
      &[aria-current] {
        background: var(--accent);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: -2px;
      }
      & small {
        color: var(--muted-foreground);
        font-size: 0.8125rem;
        font-weight: 400;
      }
    }
  }
  .mk-header-sheet-label {
    margin: 0.75rem 0 0.25rem;
    padding-inline: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .mk-header-sheet-actions {
    display: grid;
    gap: 0.5rem;
  }
  .mk-header-sheet-actions .btn {
    width: 100%;
  }

  @container mk-header (min-width: 40rem) {
    .mk-header-inner {
      padding-inline: 2rem;
    }
    .mk-header-nav {
      display: flex;
    }
    .mk-header-menu {
      display: none;
    }
    .mk-header-actions .mk-header-wide {
      display: inline-flex;
    }
  }

  /* -- variants ------------------------------------------------- */
  /* floating: a blurred pill that hovers over the page (sticky) */
  .mk-header[data-variant="floating"] {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem;
    background: transparent;

    & .mk-header-inner {
      max-width: 64rem;
      min-height: 3.25rem;
      padding: 0.375rem 0.5rem 0.375rem 1rem;
      border: 1px solid color-mix(in oklch, var(--border) 80%, transparent);
      border-radius: 999px;
      background: color-mix(in oklch, var(--background) 78%, transparent);
      box-shadow: var(--shadow-lg);
      backdrop-filter: blur(12px) saturate(1.4);
    }
    & .btn {
      border-radius: 999px;
    }
  }

  /* an announcement bar above the header row */
  .mk-header-announcement {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.8125rem;
    text-align: center;

    & p {
      margin: 0;
    }
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      color: inherit;
      font-weight: 600;
      text-underline-offset: 3px;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
    & a:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  /* overlay: transparent over a hero picture, white text */
  .mk-header[data-variant="overlay"] {
    position: absolute;
    inset: 0 0 auto;
    z-index: 5;
    background: transparent;
    color: #fff;

    & .mk-header-brand,
    & .mk-header-name,
    & .nav-menu-link,
    & .btn[data-variant="ghost"] {
      color: inherit;
    }
    & .nav-menu-link:hover {
      background: oklch(1 0 0 / 0.12);
      color: inherit;
    }
    & .nav-menu-link[aria-current] {
      background: oklch(1 0 0 / 0.16);
    }
  }

  /* centered: the brand in the middle, the nav left, the actions right */
  .mk-header[data-variant="centered"] .mk-header-inner {
    display: grid;
    /* minmax(0, …): a wide actions column must not push the brand off-center */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);

    & .mk-header-brand {
      grid-column: 2;
      grid-row: 1;
    }
    & .mk-header-nav {
      grid-column: 1;
      grid-row: 1;
      justify-self: start;
    }
    & .mk-header-actions {
      grid-column: 3;
      grid-row: 1;
      justify-self: end;
    }
    & .mk-header-name {
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: -0.01em;
    }
  }

  /* search: an inline search field (wide only - the sheet carries it when narrow) */
  .mk-header-search {
    position: relative;
    display: none;
    width: 100%;
    max-width: 20rem;

    & svg {
      position: absolute;
      inset-inline-start: 0.75rem;
      top: 50%;
      translate: 0 -50%;
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
      pointer-events: none;
    }
    & .input {
      padding-inline-start: 2.25rem;
    }
  }

  /* an icon button with a count (cart, inbox) */
  .mk-header-icon {
    position: relative;
  }
  .mk-header-count {
    position: absolute;
    top: -0.125rem;
    inset-inline-end: -0.125rem;
    min-width: 1.125rem;
    height: 1.125rem;
    padding-inline: 0.25rem;
    border: 2px solid var(--background);
    border-radius: 999px;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 0.875rem;
    text-align: center;
    box-sizing: border-box;
  }

  /* elevate: a sticky header gains a rule and a shadow once the page scrolls */
  @keyframes mk-header-elevate {
    to {
      border-block-end-color: var(--border);
      box-shadow: var(--shadow-md);
    }
  }
  .mk-header[data-elevate] {
    border-block-end: 1px solid transparent;
    animation: mk-header-elevate linear both;
  }
  @supports (animation-timeline: scroll()) {
    .mk-header[data-elevate] {
      animation-timeline: scroll(nearest block);
      animation-range: 0 64px;
    }
  }
  @supports not (animation-timeline: scroll()) {
    .mk-header[data-elevate] {
      animation: none;
      border-block-end-color: var(--border);
    }
  }

  @container mk-header (min-width: 48rem) {
    .mk-header-search {
      display: block;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-header[data-elevate] {
      animation: none;
      border-block-end-color: var(--border);
    }
  }

  @media (forced-colors: active) {
    .mk-header[data-variant="floating"] .mk-header-inner {
      border-color: CanvasText;
    }
    .mk-header-count {
      border-color: Canvas;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    /* navigation-menu suppresses its own transitions; nothing header-side
       animates, so no overrides needed here */
  }

  @media (forced-colors: active) {
    .mk-header {
      border-bottom: 1px solid CanvasText;
    }
  }
}

/* ── components/hero/hero.css ── */
/* -- Hero (marketing) ---------------------------------------------
   Centered headline + description + CTAs. Copy-only by design - pair it
   with the Product Showcase block for video. Layout switches on container
   width, not viewport - the block renders correctly inside a preview box. */

@layer components {
  .mk-hero {
    container: mk-hero / inline-size;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
  }

  .mk-hero-badge {
    border: 1px solid var(--border);
    background: var(--background);
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
  }

  .mk-hero-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-hero-desc {
    margin: 0;
    max-width: 36rem;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    text-wrap: pretty;
  }

  .mk-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  /* the section itself is the query container - a container cannot query
     itself, so responsive rules target the copy child (descendant) */
  @container mk-hero (min-width: 30rem) {
    .mk-hero-title {
      font-size: 3.75rem;
    }
    .mk-hero-actions {
      flex-direction: row;
      width: fit-content;
    }
  }

  /* -- variants ------------------------------------------------- */
  /* start-aligned copy (a hero beside a sidebar, a docs landing) */
  .mk-hero[data-align="start"] .mk-hero-copy {
    align-items: flex-start;
    margin-inline: 0;
    text-align: start;
  }

  /* an announcement pill above the title: a link with a chip and an arrow */
  .mk-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
    padding: 0.25rem 0.75rem 0.25rem 0.25rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: color-mix(in oklch, var(--background) 80%, transparent);
    color: var(--foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    text-align: start;
    transition: border-color 150ms ease;

    & .badge {
      flex: none;
      border-radius: 999px;
    }
    & svg {
      flex: none;
      width: 0.875rem;
      height: 0.875rem;
      transition: translate 150ms ease;
    }
    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    &:hover svg {
      translate: 0.125rem 0;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* split: the copy beside a picture or video (auto-fit: stacks when narrow) */
  .mk-hero[data-variant="split"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: center;
    gap: 2.5rem 3rem;

    & .mk-hero-copy {
      align-items: flex-start;
      margin: 0;
      text-align: start;
    }
    & .mk-hero-title {
      font-size: clamp(2.25rem, 5.5cqi, 3.5rem);
    }
  }
  .mk-hero-media {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);

    & :is(img, video) {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  /* image: a full-bleed photo behind the copy, a scrim keeps it readable */
  .mk-hero[data-variant="image"] {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 6rem 1.5rem;
    border-radius: var(--radius-xl);
    color: #fff;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(to top, oklch(0.15 0.02 260 / 0.85), oklch(0.15 0.02 260 / 0.35));
    }
    & .mk-hero-bg {
      position: absolute;
      inset: 0;
      z-index: -2;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    & .mk-hero-desc {
      color: oklch(1 0 0 / 0.82);
    }
    & .mk-hero-badge {
      border-color: oklch(1 0 0 / 0.3);
      background: oklch(1 0 0 / 0.12);
      color: #fff;
      backdrop-filter: blur(6px);
    }
    & .btn[data-variant="outline"] {
      border-color: oklch(1 0 0 / 0.4);
      background: transparent;
      color: #fff;
    }
  }

  /* glow: a soft brand light over a fading grid; the title fades into the page */
  .mk-hero[data-variant="glow"] {
    position: relative;
    isolation: isolate;
    padding-block: 5rem 3rem;

    &::before,
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
    }
    &::before {
      /* the chart palette, not --primary: a near-black primary would smudge */
      background:
        radial-gradient(28% 40% at 50% 8%, color-mix(in oklch, var(--chart-1) 30%, transparent), transparent),
        radial-gradient(22% 32% at 70% 30%, color-mix(in oklch, var(--chart-2) 26%, transparent), transparent),
        radial-gradient(22% 32% at 30% 34%, color-mix(in oklch, var(--chart-3) 22%, transparent), transparent);
      filter: blur(24px);
    }
    &::after {
      background-image:
        linear-gradient(color-mix(in oklch, var(--foreground) 7%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in oklch, var(--foreground) 7%, transparent) 1px, transparent 1px);
      background-size: 40px 40px;
      mask-image: radial-gradient(60% 55% at 50% 30%, #000, transparent 75%);
    }
    & .mk-hero-title {
      background: linear-gradient(
        180deg,
        var(--foreground) 40%,
        color-mix(in oklch, var(--foreground) 55%, transparent)
      );
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }
  }

  /* signup: an inline email form under the copy */
  .mk-hero-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 28rem;

    & .input {
      flex: 1;
      min-width: 0;
    }
  }
  .mk-hero-note {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }

  /* social proof: an avatar group, stars and a line */
  .mk-hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: start;

    & > div:last-child {
      display: grid;
      gap: 0.125rem;
    }
    & strong {
      color: var(--foreground);
      font-weight: 600;
    }
  }
  .mk-hero-stars {
    display: flex;
    gap: 1px;
    color: oklch(0.78 0.16 75);

    & svg {
      width: 0.875rem;
      height: 0.875rem;
      fill: currentColor;
    }
  }

  /* stage: the product under the copy - a framed screenshot with depth */
  .mk-hero-stage {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    box-shadow: var(--shadow-2xl);

    & img {
      display: block;
      width: 100%;
      height: auto;
    }
    /* fade the bottom edge into the page */
    &::after {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 35%;
      background: linear-gradient(transparent, var(--background));
    }
  }

  @container mk-hero (min-width: 30rem) {
    .mk-hero-form {
      flex-direction: row;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-hero-pill,
    .mk-hero-pill svg {
      transition: none;
    }
    .mk-hero-pill:hover svg {
      translate: none;
    }
  }

  @media (forced-colors: active) {
    .mk-hero[data-variant="glow"] .mk-hero-title {
      background: none;
      color: CanvasText;
    }
    .mk-hero-pill {
      border-color: CanvasText;
    }
  }
}

/* ── components/product-showcase/product-showcase.css ── */
/* -- Product Showcase (marketing) ----------------------------------
   5:3 poster frame with a circular play button. One click (JS) sets
   data-state="playing": the poster and button hide, the native <video>
   appears with the browser's own controls. Layers stack; state flips
   visibility via CSS so the JS only ever changes an attribute. */

@layer components {
  .mk-showcase {
    container: mk-showcase / inline-size;
    position: relative;
    aspect-ratio: 5 / 3;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--muted);

    /* poster, video (or an embed's <iframe> - YouTube, Vimeo) and play
       button share the same cover layer */
    & .mk-showcase-poster,
    & :is(video, iframe),
    & .mk-showcase-play {
      position: absolute;
      inset: 0;
    }

    & .mk-showcase-poster,
    & :is(video, iframe) {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      background: var(--muted);
    }

    & iframe {
      border: 0;
    }

    /* state layering: poster+button until 'playing', video after; a waiting
       embed takes no clicks - only the play button acts */
    & :is(video, iframe) {
      opacity: 0;
    }
    & iframe {
      pointer-events: none;
    }
    &[data-state="playing"] {
      & .mk-showcase-poster {
        opacity: 0;
      }
      & .mk-showcase-play {
        opacity: 0;
        visibility: hidden;
      }
      & :is(video, iframe) {
        opacity: 1;
        pointer-events: auto;
      }
    }
  }

  /* centered circular play button - real <button>, keyboard-focusable;
     inset auto + margin auto centers the 64px box in the full-inset cell */
  .mk-showcase-play {
    z-index: 10;
    inset: auto;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 0.75rem;
    border: none;
    border-radius: 9999px;
    background: var(--background);
    box-shadow: var(--shadow-2xs);
    cursor: pointer;
    transition:
      opacity 200ms ease,
      scale 300ms ease;

    /* CSS wins over the `fill="none"` presentation attribute, so a lucide
       stroke icon renders as a solid glyph inside the circle */
    & svg {
      width: 1.5rem;
      height: 1.5rem;
      fill: currentColor;
    }
    &:hover {
      scale: 1.08;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* -- variants ------------------------------------------------- */
  /* browser: a window bar with three dots on top; the layers sit below it */
  .mk-showcase[data-variant="browser"] {
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-xl);

    &::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      z-index: 11;
      height: 2.25rem;
      border-block-end: 1px solid var(--border);
      background:
        radial-gradient(circle at 1rem 50%, oklch(0.7 0.18 25) 0.3125rem, transparent 0.34rem),
        radial-gradient(circle at 1.75rem 50%, oklch(0.8 0.15 85) 0.3125rem, transparent 0.34rem),
        radial-gradient(circle at 2.5rem 50%, oklch(0.75 0.16 150) 0.3125rem, transparent 0.34rem), var(--muted);
    }
    & :is(.mk-showcase-poster, video, iframe) {
      inset: 2.25rem 0 0;
      height: calc(100% - 2.25rem);
    }
    & .mk-showcase-play {
      inset: 2.25rem 0 0;
    }
  }

  /* ratios: 16:9 for video, 1:1 for social / mobile */
  .mk-showcase[data-ratio="wide"] {
    aspect-ratio: 16 / 9;
  }
  .mk-showcase[data-ratio="square"] {
    aspect-ratio: 1;
  }

  /* a stage around the showcase: room for callouts, perspective for the tilt */
  .mk-showcase-stage {
    position: relative;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding: 1.5rem;
    perspective: 1400px;
  }

  /* callouts: small cards floating over the frame's corners */
  .mk-showcase-callout {
    position: absolute;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    max-width: 16rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in oklch, var(--popover) 88%, transparent);
    color: var(--popover-foreground);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(8px);
    font-size: 0.8125rem;

    & > svg {
      flex: none;
      padding: 0.375rem;
      width: 2rem;
      height: 2rem;
      border-radius: var(--radius-md);
      background: color-mix(in oklch, var(--primary) 12%, transparent);
      color: var(--primary);
      box-sizing: border-box;
    }
    & div {
      display: grid;
    }
    & span {
      color: var(--muted-foreground);
    }
    &[data-pos="top-start"] {
      top: 0;
      left: 0;
    }
    &[data-pos="top-end"] {
      top: 0;
      right: 0;
    }
    &[data-pos="bottom-start"] {
      bottom: 0;
      left: 0;
    }
    &[data-pos="bottom-end"] {
      bottom: 0;
      right: 0;
    }
  }

  /* tilt: leans back, straightens as it scrolls into view */
  @keyframes mk-showcase-untilt {
    from {
      rotate: x 22deg;
      scale: 0.9;
      opacity: 0.6;
    }
    to {
      rotate: x 0deg;
      scale: 1;
      opacity: 1;
    }
  }
  .mk-showcase-stage[data-tilt] .mk-showcase {
    transform-origin: 50% 100%;
    animation: mk-showcase-untilt linear both;
  }
  @supports (animation-timeline: view()) {
    .mk-showcase-stage[data-tilt] .mk-showcase {
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
  @supports not (animation-timeline: view()) {
    .mk-showcase-stage[data-tilt] .mk-showcase {
      animation: none;
    }
  }

  /* tour: Tabs above the frames - each panel shows one screen */
  .mk-showcase-tour {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    justify-items: center;

    & .tab-list {
      flex-wrap: wrap;
      height: auto;
    }
    & .tab-content {
      width: 100%;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-showcase-stage[data-tilt] .mk-showcase {
      animation: none;
    }
  }

  @media (forced-colors: active) {
    .mk-showcase-callout {
      border-color: CanvasText;
    }
    .mk-showcase[data-variant="browser"]::before {
      border-block-end-color: CanvasText;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mk-showcase-play {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-showcase-play {
      outline: 1px solid ButtonText;
    }
  }
}

/* ── components/brand-logos/brand-logos.css ── */
/* -- Brand Logos (marketing) ---------------------------------------
   "Trusted by" row: inline SVG marks inherit currentColor so logos
   recolor with --muted-foreground under any theme. Wraps freely. */

@layer components {
  .mk-logos {
    container: mk-logos / inline-size;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    column-gap: 2.5rem;
    row-gap: 1.75rem;
  }

  /* the mark links out to the brand - no underline. Ink color tracks the
     theme (black in light, white in dark) via --foreground; the name text
     stays muted so the marks read first. */
  .mk-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius-md);
    opacity: 0.75;
    transition: opacity 150ms ease;

    &:hover {
      opacity: 1;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 4px;
    }

    & svg {
      width: 1.875rem;
      height: 1.875rem;
      aspect-ratio: 1;
      flex-shrink: 0;
      fill: currentColor;
    }
    & .mk-logo-name {
      color: var(--muted-foreground);
    }
  }

  .mk-logo-name {
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }

  .mk-logos-caption {
    margin: 0;
    text-align: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }

  @container mk-logos (min-width: 30rem) {
    .mk-logo svg {
      width: 2.5rem;
      height: 2.5rem;
    }
    .mk-logo-name {
      font-size: 1.25rem;
    }
  }

  /* -- Rolling marquee ------------------------------------------
     Continuous speed-based roll (a slow ticker, not step sliding):
     the track holds the logo set TWICE - the second copy carries
     aria-hidden="true" + tabindex="-1" - and translates by exactly
     -50%, so the loop restarts on identical content (seamless).
     `gap` between items plus an equal padding at the track's end
     keeps each copy exactly half the border box wide (transform
     percentages measure the border box, padding included). */
  .mk-logos-roll {
    --mk-logos-roll-duration: 30s;
    --mk-logos-roll-height: 12rem;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  }

  .mk-logos-roll-track {
    display: flex;
    align-items: center;
    gap: 2.5rem; /* matches .mk-logos-row column-gap */
    padding-inline-end: 2.5rem;
    width: max-content;
    animation: mk-logos-roll var(--mk-logos-roll-duration, 30s) linear infinite;
  }

  .mk-logos-roll:hover .mk-logos-roll-track,
  .mk-logos-roll:focus-within .mk-logos-roll-track {
    animation-play-state: paused;
  }

  /* vertical roll: column track in a fixed-height viewport, mask on
     the block edges instead */
  .mk-logos-roll[data-direction="y"] {
    height: var(--mk-logos-roll-height, 12rem);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
  }

  .mk-logos-roll[data-direction="y"] .mk-logos-roll-track {
    flex-direction: column;
    margin-inline: auto;
    padding-inline-end: 0;
    padding-block-end: 2.5rem;
    animation-name: mk-logos-roll-y;
  }

  @keyframes mk-logos-roll {
    to {
      transform: translateX(-50%);
    }
  }

  @keyframes mk-logos-roll-y {
    to {
      transform: translateY(-50%);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-logo {
      transition: none;
    }

    /* static fallback: the roll collapses back into the plain wrapped
       row and the duplicated copy drops out so nothing renders twice */
    .mk-logos-roll,
    .mk-logos-roll[data-direction="y"] {
      height: auto;
    }
    .mk-logos-roll-track {
      animation: none;
      flex-wrap: wrap;
      justify-content: center;
      width: auto;
      padding-inline-end: 0;
      padding-block-end: 0;
    }
    .mk-logos-roll[data-direction="y"] .mk-logos-roll-track {
      flex-direction: row;
      animation: none;
    }
    .mk-logos-roll-track > [aria-hidden="true"] {
      display: none;
    }
  }

  @media (forced-colors: active) {
    .mk-logo {
      color: CanvasText;
    }
    /* masks hide content in forced-colors mode - show the full roll */
    .mk-logos-roll,
    .mk-logos-roll[data-direction="y"] {
      -webkit-mask-image: none;
      mask-image: none;
    }
  }
}

/* ── components/section-header/section-header.css ── */
/* -- Section Header (website) ---------------------------------------
   Introduces a page section: eyebrow, title, description and optional
   actions. Start-aligned by default; centered, or split (copy left, actions
   right - wrapping under the copy when the row gets narrow). */

@layer components {
  .mk-section-header {
    container: mk-section-header / inline-size;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-section-header-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 48rem;
  }

  .mk-section-header-eyebrow {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  .mk-section-header-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-section-header-desc {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  .mk-section-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  /* centered: everything on the axis */
  .mk-section-header[data-align="center"] {
    align-items: center;
    text-align: center;

    & .mk-section-header-copy {
      align-items: center;
    }
    & .mk-section-header-actions {
      justify-content: center;
    }
  }

  /* split: copy and actions share a row, the actions sit on the baseline */
  .mk-section-header[data-variant="split"] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;

    & .mk-section-header-copy {
      flex: 1 1 28rem;
    }
    & .mk-section-header-actions {
      flex: none;
    }
  }

  /* numbered: a large index ("01") in front - data-index on the header */
  .mk-section-header[data-variant="numbered"] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 1.5rem;

    &::before {
      content: attr(data-index);
      flex: none;
      color: transparent;
      font-size: 3.5rem;
      font-weight: 800;
      line-height: 0.9;
      letter-spacing: -0.04em;
      -webkit-text-stroke: 1.5px color-mix(in oklch, var(--foreground) 35%, transparent);
      font-variant-numeric: tabular-nums;
    }
    & .mk-section-header-copy {
      flex: 1 1 24rem;
    }
    & .mk-section-header-actions {
      flex-basis: 100%;
    }
  }

  /* divider: a rule runs from the title to the edge */
  .mk-section-header[data-variant="divider"] .mk-section-header-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;

    &::after {
      content: "";
      flex: 1;
      min-width: 2rem;
      height: 1px;
      background: var(--border);
    }
  }
  .mk-section-header[data-variant="divider"] .mk-section-header-copy {
    max-width: none;
  }

  /* banner: on a surface with a dotted field */
  .mk-section-header[data-variant="banner"] {
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
      radial-gradient(circle at 1px 1px, color-mix(in oklch, var(--foreground) 14%, transparent) 1px, transparent 0) 0
        0 / 1.25rem 1.25rem,
      linear-gradient(to bottom, var(--muted), var(--background));
  }

  /* a proof line under the copy: an avatar group + a sentence */
  .mk-section-header-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;

    & strong {
      color: var(--foreground);
      font-weight: 600;
    }
  }
  .mk-section-header[data-align="center"] .mk-section-header-proof {
    justify-content: center;
  }

  /* sizes: the title scale */
  .mk-section-header[data-size="sm"] .mk-section-header-title {
    font-size: 1.5rem;
  }
  .mk-section-header[data-size="lg"] .mk-section-header-title {
    font-size: 2.25rem;
  }

  @container mk-section-header (min-width: 48rem) {
    .mk-section-header-title {
      font-size: 2.25rem;
    }
    .mk-section-header[data-size="sm"] .mk-section-header-title {
      font-size: 1.75rem;
    }
    .mk-section-header[data-size="lg"] .mk-section-header-title {
      font-size: 3rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-contrast: more) {
    .mk-section-header-desc {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-section-header-eyebrow {
      color: CanvasText;
    }
  }
}

/* ── components/feature-details/feature-details.css ── */
/* -- Feature Details (marketing) -----------------------------------
   Section header + two large image features split by a rule + a row
   of icon-led benefit cards. Column split only at container width;
   stacked (rule omitted) below it. */

@layer components {
  .mk-features {
    container: mk-features / inline-size;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-features-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;
  }

  .mk-features-eyebrow {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
  }

  .mk-features-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-features-desc {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  .mk-features-grid {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .mk-feature {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1.25rem;
    padding-block: 1.25rem;
  }

  .mk-feature-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.375rem;
  }

  .mk-feature-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
  }

  .mk-feature-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    text-wrap: pretty;
  }

  .mk-feature-media {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--muted);

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  /* vertical rule between the two features (source swaps in a horizontal
     separator below md; stacking already provides the visual break) */
  .mk-feature-sep {
    display: none;
    width: 1px;
    align-self: stretch;
    background: var(--border);
  }

  .mk-feature-cards {
    display: grid;
    gap: 1.25rem;
  }

  .mk-feature-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 36rem;
  }

  .mk-feature-card-title {
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;

    & svg {
      width: 1.5rem;
      height: 1.5rem;
      flex-shrink: 0;
    }
  }

  .mk-feature-card-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  @container mk-features (min-width: 30rem) {
    .mk-features-title {
      font-size: 2.25rem;
    }
    .mk-features-grid {
      grid-template-columns: 1fr auto 1fr;
    }
    .mk-feature {
      padding-block: 2.25rem;
    }
    .mk-feature-sep {
      display: block;
    }
    .mk-feature-cards {
      grid-template-columns: 1fr 1fr;
    }
  }

  /* four across only once every title fits on one line next to its icon */
  @container mk-features (min-width: 64rem) {
    .mk-feature-cards {
      grid-template-columns: repeat(4, 1fr);
      gap: 2.25rem;
    }
  }

  /* bento: tiles of different sizes - data-span="wide" (2 columns) /
     "tall" (2 rows); a tile holds an icon, copy and optional media */
  .mk-features-bento {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    grid-auto-flow: dense;
    gap: 1rem;
  }
  .mk-bento-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 11rem;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);

    & svg:first-child {
      width: 1.5rem;
      height: 1.5rem;
      color: var(--primary);
    }
    & h3 {
      margin: 0.5rem 0 0;
      font-size: 1.125rem;
      font-weight: 600;
      line-height: 1.3;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.9375rem;
      line-height: 1.55;
    }
    & img {
      width: calc(100% + 3rem);
      margin: auto -1.5rem -1.5rem;
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }

    &[data-span="wide"] {
      grid-column: span 2;
    }
    &[data-span="tall"] {
      grid-row: span 2;
    }
    &[data-tone="primary"] {
      border-color: transparent;
      background: var(--primary);
      color: var(--primary-foreground);
    }
    &[data-tone="primary"] :is(p, svg:first-child) {
      color: color-mix(in oklch, var(--primary-foreground) 80%, transparent);
    }
  }
  @container mk-features (max-width: 34rem) {
    .mk-bento-tile[data-span="wide"] {
      grid-column: auto;
    }
  }

  /* alternating: zig-zag rows - media and copy swap sides every other row */
  .mk-feature-rows {
    display: grid;
    gap: 4rem;
  }
  .mk-feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: center;
    gap: 2rem 3rem;

    & .mk-feature-media {
      aspect-ratio: 4 / 3;
      border-radius: var(--radius-xl);
    }
  }
  @container mk-features (min-width: 44rem) {
    .mk-feature-row:nth-child(even) .mk-feature-media {
      order: 2;
    }
  }
  .mk-feature-checks {
    display: grid;
    gap: 0.625rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;

    & li {
      display: flex;
      gap: 0.625rem;
      align-items: flex-start;
    }
    & li::before {
      content: "";
      flex: none;
      width: 1.25rem;
      height: 1.25rem;
      margin-block-start: 0.125rem;
      border-radius: 50%;
      background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
          center / 0.75rem no-repeat,
        var(--primary);
    }
  }

  /* tabs: a Tabs component - the triggers as a feature list, the panel shows it */
  .mk-features-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem 2.5rem;
    align-items: start;

    & .tab-list {
      flex-direction: column;
      align-items: stretch;
      height: auto;
      gap: 0.25rem;
      padding: 0.375rem;
    }
    & .tab-trigger {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.125rem;
      height: auto;
      padding: 0.875rem 1rem;
      text-align: start;
      white-space: normal;
    }
    & .tab-trigger small {
      color: var(--muted-foreground);
      font-weight: 400;
      font-size: 0.8125rem;
    }
    & .tab-content img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: var(--radius-xl);
    }
  }

  /* boxed: the benefit cards on card surfaces with an icon tile */
  .mk-feature-cards[data-variant="boxed"] .mk-feature-card {
    max-width: none;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    transition:
      border-color 150ms,
      box-shadow 150ms;

    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 25%, var(--border));
      box-shadow: var(--shadow-md);
    }
    & .mk-feature-card-title svg {
      padding: 0.5rem;
      width: 2.25rem;
      height: 2.25rem;
      border-radius: var(--radius-md);
      background: color-mix(in oklch, var(--primary) 10%, transparent);
      color: var(--primary);
      box-sizing: border-box;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-feature-cards[data-variant="boxed"] .mk-feature-card {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-features-grid {
      border-bottom-color: CanvasText;
    }
    .mk-feature-sep {
      background: CanvasText;
    }
  }
}

/* ── components/testimonials/testimonials.css ── */
/* -- Testimonials (marketing) --------------------------------------
   Big pull-quote with partner logo lockup, plus a grid of media cards
   whose review overlay floats over the photo (backdrop blur, real
   DOM - no JS). Overlay contrast comes from --background at 80% +
   blur, readable in both modes. */

@layer components {
  .mk-testimonials {
    container: mk-testimonials / inline-size;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-testimonial-quote-block {
    display: flex;
    flex-direction: column;
  }

  .mk-testimonial-context {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding-bottom: 0.75rem;
    color: var(--muted-foreground);

    & svg {
      width: 1.5rem;
      height: 1.5rem;
      flex-shrink: 0;
    }
    & span {
      font-size: 1.125rem;
    }
  }

  .mk-testimonial-layout {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }

  .mk-testimonial-quote {
    margin: 0;
    font-size: 1.875rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-testimonial-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: fit-content;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none;

    &:hover .mk-testimonial-brand-name {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 4px;
      border-radius: var(--radius-sm);
    }

    & svg {
      width: 2.5rem;
      height: 2.5rem;
      aspect-ratio: 1;
      flex-shrink: 0;
    }
  }

  .mk-testimonial-brand-name {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    white-space: nowrap;
  }

  .mk-testimonial-date {
    color: var(--muted-foreground);
    font-size: 1.125rem;
  }

  .mk-testimonial-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  /* quote cards flow: one column on phones, as many 16rem columns as fit above (four cards: 2 × 2, then a row) */
  .mk-testimonial-cards:has(> [data-variant="quote"]) {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  }

  .mk-testimonial-card {
    position: relative;
    isolation: isolate;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--muted);
    padding: 0.75rem;
    /* the element is a <figure> - without an explicit reset its UA margins
       (1em 40px) stack onto the grid gap (measured: 92px between cards); the
       gap comes from `gap` alone */
    margin: 0;

    & > img {
      position: absolute;
      inset: 0;
      z-index: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
    }
  }

  .mk-testimonial-card-body {
    position: relative;
    z-index: 10;
    width: 100%;
    /* source: bg-background/80 + backdrop-blur - keep the text readable over
       any photo without a hard opaque card */
    margin-block-start: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: color-mix(in oklch, var(--background) 80%, transparent);
    backdrop-filter: blur(4px);
    padding: 1rem;
  }

  .mk-testimonial-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .mk-stars {
    display: flex;
    align-items: center;
    gap: 0.125rem;
  }

  .mk-stars svg {
    width: 0.75rem;
    height: 0.75rem;
    fill: currentColor;
    flex-shrink: 0;
  }

  .mk-testimonial-card-name {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.3;
  }
  .mk-testimonial-card-role {
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }

  /* the review itself - in a quote card, or under the stars of a photo card */
  .mk-testimonial-card-text {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    text-wrap: pretty;

    & p {
      margin: 0;
    }
  }
  .mk-testimonial-card-body .mk-testimonial-card-text {
    margin-block: 0.375rem 0.25rem;
    font-size: 0.8125rem;
  }

  /* the author line: an Avatar + name / role */
  .mk-testimonial-card-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block-start: auto;

    & .mk-testimonial-card-info {
      gap: 0;
    }
  }

  /* quote: a card surface - stars, the review, the author at the bottom */
  .mk-testimonial-card[data-variant="quote"] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    aspect-ratio: auto;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-xs);

    & .mk-stars {
      color: oklch(0.78 0.16 75);
    }
    & .mk-testimonial-card-text {
      font-size: 1rem;
    }
    & .mk-testimonial-card-text::before {
      content: "“";
      display: block;
      height: 1.75rem;
      margin-block-end: 0.25rem;
      color: var(--primary);
      font-family: Georgia, var(--font-serif), serif;
      font-size: 3.25rem;
      line-height: 1;
      opacity: 0.85;
    }
  }

  @container mk-testimonials (min-width: 30rem) {
    .mk-testimonial-layout {
      flex-direction: row;
    }
    .mk-testimonial-quote {
      font-size: 2.25rem;
    }
  }

  @container mk-testimonials (min-width: 52rem) {
    .mk-testimonial-cards {
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
    }
    .mk-testimonial-card {
      padding: 1.25rem;
    }
    .mk-testimonial-card-name {
      font-size: 1.125rem;
    }
    .mk-testimonial-card-role {
      font-size: 0.875rem;
    }
  }

  /* wall: a masonry wall of quote cards (CSS columns) - "wall of love" */
  .mk-testimonial-cards[data-variant="wall"] {
    display: block;
    columns: 16rem;
    column-gap: 1rem;

    & > .mk-testimonial-card {
      break-inside: avoid;
      margin-block-end: 1rem;
    }
  }

  /* marquee: rows of quote cards gliding sideways (the second row reverses);
     the row runs twice in its track (the copy is inert) for a seamless loop */
  .mk-testimonial-marquee {
    display: grid;
    gap: 1rem;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 4rem, #000 calc(100% - 4rem), transparent);
  }
  .mk-testimonial-marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: mk-testimonial-marquee var(--mk-testimonial-duration, 45s) linear infinite;

    &[data-direction="reverse"] {
      animation-direction: reverse;
    }
    & > .mk-testimonial-card {
      width: 20rem;
      flex: none;
    }
  }
  .mk-testimonial-marquee:is(:hover, :focus-within) .mk-testimonial-marquee-track {
    animation-play-state: paused;
  }
  @keyframes mk-testimonial-marquee {
    to {
      translate: calc(-50% - 0.5rem) 0;
    }
  }

  /* spotlight: one big quote, the author with a large avatar and the logo */
  .mk-testimonial-spotlight {
    display: grid;
    justify-items: center;
    gap: 1.5rem;
    max-width: 48rem;
    margin-inline: auto;
    text-align: center;

    & .mk-stars {
      color: oklch(0.78 0.16 75);
    }
    & .mk-stars svg {
      width: 1.25rem;
      height: 1.25rem;
    }
  }
  .mk-testimonial-spotlight-quote {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4cqi, 2.25rem);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .mk-testimonial-spotlight-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: start;

    & .mk-testimonial-card-name {
      font-size: 1rem;
    }
    & .mk-testimonial-spotlight-logo {
      padding-inline-start: 1rem;
      border-inline-start: 1px solid var(--border);
      font-weight: 700;
      letter-spacing: -0.02em;
    }
  }

  /* a result line inside a quote card: "+42% faster releases" */
  .mk-testimonial-card-metric {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: var(--muted);

    & strong {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      color: var(--primary);
    }
    & span {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-testimonial-marquee {
      overflow-x: auto;
      mask-image: none;
    }
    .mk-testimonial-marquee-track {
      animation: none;
    }
    .mk-testimonial-marquee-track > [aria-hidden="true"] {
      display: none;
    }
  }

  @media (prefers-reduced-transparency: reduce) {
    .mk-testimonial-card-body {
      background: var(--background);
      backdrop-filter: none;
    }
  }

  @media (forced-colors: active) {
    .mk-testimonial-card-body {
      background: Canvas;
    }
  }
}

/* ── components/stats/stats.css ── */
/* -- Stats (marketing) ---------------------------------------------
   Headline + rule-led metric grid beside a square photo. Each metric
   uses border-left (source: `border-l pl-6`) and a link-style CTA. */

@layer components {
  .mk-stats {
    /* the section is the query container; a container cannot query itself,
       so the responsive grid lives on the inner layout element */
    container: mk-stats / inline-size;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-stats-layout {
    display: grid;
    gap: 2.25rem;
  }

  .mk-stats-copy {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-self: center;
  }

  .mk-stats-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 48rem;
    text-align: left;
  }

  .mk-stats-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-stats-desc {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  .mk-stats-grid {
    display: grid;
    gap: 1.25rem;
  }

  /* each metric gets its own accent from the chart palette - the rule on
     its edge and the trend readout (the theme's chart tokens, so every
     preset recolors it) */
  .mk-stat {
    --_tone: var(--chart-1);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    border-left: 3px solid var(--_tone);
    padding-left: 1.25rem;

    &:nth-child(4n + 2) {
      --_tone: var(--chart-2);
    }
    &:nth-child(4n + 3) {
      --_tone: var(--chart-3);
    }
    &:nth-child(4n + 4) {
      --_tone: var(--chart-4);
    }
  }

  /* a trend chip beside the value - the Statistic component's colors */
  .mk-stat-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    margin-inline-start: 0.5rem;
    padding: 0.0625rem 0.4375rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    vertical-align: middle;

    &[data-trend="up"] {
      background: color-mix(in oklch, #16a34a 14%, transparent);
      color: #16a34a;
    }
    &[data-trend="down"] {
      background: color-mix(in oklch, #dc2626 14%, transparent);
      color: #dc2626;
    }
    & svg {
      width: 0.75rem;
      height: 0.75rem;
    }
  }

  .mk-stat-value {
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
  }

  .mk-stat-label {
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  /* link CTA flush-left inside the metric (source: `!px-0`) */
  .mk-stats .mk-stat-link {
    height: auto;
    padding-inline: 0;
    margin-block-start: 0.25rem;
  }

  .mk-stats-media {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--muted);
    margin: 0;

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
  }

  @container mk-stats (min-width: 30rem) {
    .mk-stats-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @container mk-stats (min-width: 52rem) {
    .mk-stats-layout {
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
    }
    .mk-stats-copy {
      gap: 4rem;
    }
    .mk-stats-title {
      font-size: 2.25rem;
    }
    .mk-stats-grid {
      gap: 2.25rem 2.25rem;
    }
  }

  /* cards: each metric on a card with a sparkline */
  .mk-stats-grid[data-variant="cards"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));

    & .mk-stat {
      padding: 1.25rem;
      border: 1px solid var(--border);
      border-inline-start: 3px solid var(--_tone);
      border-radius: var(--radius-lg);
      background: var(--card);
    }
  }
  .mk-stat-spark {
    width: 100%;
    height: 2.5rem;
    margin-block-start: 0.5rem;
    color: var(--_tone, var(--chart-1));
  }

  /* band: big numbers on a dark band, separated by rules */
  .mk-stats-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    border-radius: var(--radius-xl);
    background: var(--foreground);
    color: var(--background);
    overflow: hidden;

    & .mk-stat {
      align-items: center;
      padding: 2rem 1rem;
      border: 0;
      border-inline-start: 1px solid color-mix(in oklch, var(--background) 15%, transparent);
      text-align: center;

      &:first-child {
        border-inline-start: 0;
      }
    }
    & .mk-stat-value {
      font-size: 2.5rem;
      font-weight: 700;
    }
    & .mk-stat-label {
      color: color-mix(in oklch, var(--background) 70%, transparent);
    }
  }

  /* rings: percentages as Radial Progress */
  .mk-stats-rings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: 1.5rem;
    justify-items: center;
    text-align: center;

    & .mk-stat {
      align-items: center;
      border: 0;
      padding: 0;
      gap: 0.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */

  @media (forced-colors: active) {
    .mk-stat {
      border-left-color: CanvasText;
    }
  }
}

/* ── components/pricing/pricing.css ── */
/* -- Pricing (marketing) -------------------------------------------
   Section head + billing toggle (composed from the tabs component) +
   plan cards. The featured plan upgrades its border - no layout shift. */

@layer components {
  .mk-pricing {
    container: mk-pricing / inline-size;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  /* centered stack: eyebrow/title/desc + toggle all share the section's
     center line (align-items, not text-align - the toggle is a box) */
  .mk-pricing-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .mk-pricing-eyebrow {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
  }

  .mk-pricing-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-pricing-desc {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  /* Segmented billing toggle: real radios + :has() - keyboard, screen
     readers, and form semantics work natively; one checked radio flips
     every plan's price pair, which per-tab aria-controls could not. */
  .mk-pricing-billing {
    display: inline-flex;
    align-self: center;
    gap: 0.25rem;
    padding: 0.25rem;
    border-radius: var(--radius-md);
    background: var(--muted);

    & label {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.375rem 0.75rem;
      border-radius: var(--radius-sm);
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--muted-foreground);
      cursor: pointer;
    }

    & label:has(input:checked) {
      background: var(--background);
      color: var(--foreground);
      box-shadow: var(--shadow-2xs);
    }

    /* keyboard focus lands on the radio - show the ring on its label */
    & label:has(input:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* price swap: each plan ships yearly + monthly rows; the checked radio
     anywhere in the section flips every plan at once via :has() */
  .mk-plan-price.mk-price-monthly {
    display: none;
  }

  .mk-pricing:has(.mk-bill-monthly:checked) {
    & .mk-plan-price.mk-price-yearly {
      display: none;
    }
    & .mk-plan-price.mk-price-monthly {
      display: flex;
    }
  }

  .mk-plans {
    display: grid;
    align-items: stretch;
    gap: 1.25rem;
  }

  .mk-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
    padding-block: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-sm);

    /* featured plan: 2px primary border (same box size → no shift) and a
       soft primary wash from the top */
    &[data-featured] {
      border: 2px solid var(--primary);
      background:
        radial-gradient(120% 60% at 50% 0%, color-mix(in oklch, var(--primary) 9%, transparent), transparent 70%),
        var(--card);
      box-shadow: var(--shadow-lg);
    }
  }

  /* in an aura (shapes.css): the light is the border - the plan drops its own */
  .aura > .mk-plan {
    border-color: transparent;
    border-radius: var(--radius-lg);
  }
  .mk-plans > .aura {
    --shape-round: var(--radius-lg);
  }

  .mk-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-inline: 1.5rem;
  }

  .mk-plan-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--muted);

    & svg {
      width: 1rem;
      height: 1rem;
      color: var(--primary);
    }
  }

  .mk-plan-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-inline: 1.5rem;
  }

  .mk-plan-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
  }

  .mk-plan-desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-foreground);
  }

  .mk-plan-price {
    display: flex;
    gap: 0.5rem;
    margin-block-start: auto;
    padding-inline: 1.5rem;
  }

  .mk-plan-amount {
    align-self: flex-end;
    font-size: 3rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
  }

  .mk-plan-unit {
    display: flex;
    flex-direction: column;
    align-self: flex-end;
  }
  .mk-plan-unit-label {
    font-size: 0.875rem;
    font-weight: 500;
  }
  .mk-plan-unit-note {
    font-size: 0.875rem;
    color: var(--muted-foreground);
  }

  .mk-plan-cta {
    padding-inline: 1.5rem;
    & .btn {
      width: 100%;
    }
  }

  .mk-plan-features {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-inline: 1.5rem;
  }

  .mk-plan-features {
    margin: 0 1.5rem;
    padding: 1.25rem 0 0;
    border-block-start: 1px dashed var(--border);
    list-style: none;
  }

  /* the check sits in a small tinted disc */
  .mk-plan-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;

    & svg {
      width: 1.125rem;
      height: 1.125rem;
      margin-block-start: 0.125rem;
      padding: 0.1875rem;
      border-radius: 50%;
      background: color-mix(in oklch, var(--primary) 12%, transparent);
      color: var(--primary);
      flex-shrink: 0;
      box-sizing: border-box;
    }
    & span {
      flex: 1;
    }
    &[data-muted] {
      color: var(--muted-foreground);
    }
    &[data-muted] svg {
      background: var(--muted);
      color: var(--muted-foreground);
    }
  }

  /* the featured plan's label: a filled Badge with a sparkle */
  .mk-plan-badge {
    gap: 0.25rem;
  }

  /* a saving next to the billing choice (a Badge) */
  .mk-pricing-billing .badge {
    margin-inline-start: 0.125rem;
  }

  @container mk-pricing (min-width: 44rem) {
    .mk-pricing-title {
      font-size: 2.25rem;
    }
    .mk-plans {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: center;
    }
    /* the featured plan stands a little taller than its neighbours */
    .mk-plans > .mk-plan[data-featured],
    .mk-plans > .aura > .mk-plan {
      padding-block: 2.25rem;
    }
  }

  /* compare: a Table of features per plan - the featured column tinted */
  .mk-pricing-compare {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    & .table {
      min-width: 36rem;
    }
    & :is(th, td):not(:first-child) {
      text-align: center;
    }
    & [data-featured] {
      background: color-mix(in oklch, var(--primary) 6%, transparent);
    }
    & thead [data-featured] {
      box-shadow: inset 0 3px 0 var(--primary);
    }
    & .mk-pricing-yes {
      color: var(--primary);
    }
    & .mk-pricing-no {
      color: var(--muted-foreground);
      opacity: 0.5;
    }
    & svg {
      width: 1rem;
      height: 1rem;
      vertical-align: middle;
    }
    & tbody th {
      font-weight: 500;
      text-align: start;
    }
  }

  /* compact: plans as rows of one list - name, price, CTA */
  .mk-plans[data-variant="compact"] {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    & .mk-plan {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
      align-items: center;
      gap: 0.75rem 1.5rem;
      padding: 1.25rem 1.5rem;
      border: 0;
      border-block-end: 1px solid var(--border);
      border-radius: 0;
      box-shadow: none;

      &:last-child {
        border-block-end: 0;
      }
      &[data-featured] {
        border: 0;
        border-block-end: 1px solid var(--border);
        background: color-mix(in oklch, var(--primary) 5%, var(--card));
      }
      & :is(.mk-plan-body, .mk-plan-price, .mk-plan-cta) {
        padding: 0;
        margin: 0;
      }
      & .mk-plan-amount {
        font-size: 2rem;
      }
    }
  }

  /* wide: one plan, features in two columns beside the price */
  .mk-plan[data-variant="wide"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.5rem 2.5rem;
    padding: 2rem;

    & > * {
      padding-inline: 0;
    }
    & .mk-plan-features {
      margin: 0;
      padding: 0;
      border: 0;
      columns: 2 12rem;
      display: block;
    }
    & .mk-plan-feature {
      margin-block-end: 0.75rem;
      break-inside: avoid;
    }
  }

  /* usage: a Slider picks the seats, an <output> shows the price */
  .mk-pricing-usage {
    display: grid;
    gap: 1rem;
    max-width: 36rem;
    margin-inline: auto;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);

    & .mk-pricing-usage-row {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 1rem;
    }
    & output {
      font-size: 2.5rem;
      font-weight: 600;
      letter-spacing: -0.03em;
      font-variant-numeric: tabular-nums;
    }
  }

  /* cta: an enterprise strip - talk to sales */
  .mk-pricing-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius-xl);
    background: var(--foreground);
    color: var(--background);

    & p {
      margin: 0.25rem 0 0;
      color: color-mix(in oklch, var(--background) 70%, transparent);
      font-size: 0.9375rem;
    }
    & strong {
      font-size: 1.125rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */

  @media (forced-colors: active) {
    .mk-plan {
      border-color: CanvasText;
    }
    .mk-pricing-billing label:has(input:checked) {
      outline: 1px solid Highlight;
    }
  }
}

/* ── components/blog/blog.css ── */
/* -- Blog (marketing) ----------------------------------------------
   Insights grid: media card with category/read-time meta, line-clamped
   excerpt, and author row composed from the avatar component. */

@layer components {
  .mk-blog {
    container: mk-blog / inline-size;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-blog-head {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
  }

  .mk-blog-head-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 48rem;
    text-align: left;
  }

  .mk-blog-eyebrow {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
  }

  .mk-blog-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-blog-desc {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  .mk-blog-see-all {
    display: none;
    margin-inline-start: auto;
    align-self: flex-end;
    flex-shrink: 0;
  }

  .mk-blog-grid {
    display: grid;
    gap: 1.25rem;
    width: 100%;
  }

  .mk-blog-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
  }

  .mk-blog-media {
    position: relative;
    aspect-ratio: 3 / 2;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--muted);

    & img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: opacity 150ms ease;
    }
  }

  .mk-blog-card:hover .mk-blog-media img {
    opacity: 0.9;
  }

  .mk-blog-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
    padding-block: 0.875rem;
  }

  .mk-blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .mk-blog-category {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
  }

  /* read time: a muted pill with a clock glyph */
  .mk-blog-read {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;

    & svg {
      width: 0.75rem;
      height: 0.75rem;
      flex: none;
    }
  }

  .mk-blog-copy {
    display: grid;
    gap: 0.25rem;
  }

  .mk-blog-card-title {
    line-height: 1.3;
    margin: 0;
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  /* excerpt clamp: exactly 3 lines (source: line-clamp-3) */
  .mk-blog-excerpt {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mk-blog-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block-start: auto;
  }

  .mk-blog-author-name {
    font-size: 0.875rem;
    font-weight: 500;
  }

  .mk-blog-author-date {
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }

  @container mk-blog (min-width: 30rem) {
    .mk-blog-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @container mk-blog (min-width: 44rem) {
    .mk-blog-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @container mk-blog (min-width: 52rem) {
    .mk-blog-title {
      font-size: 2.25rem;
    }
    .mk-blog-see-all {
      display: inline-flex;
    }
    .mk-blog-grid {
      gap: 2.25rem;
    }
  }

  /* -- variants ------------------------------------------------- */
  /* featured: the first post spans two columns and two rows */
  .mk-blog-grid[data-variant="featured"] > :first-child {
    & .mk-blog-card-title {
      font-size: 1.5rem;
    }
    & .mk-blog-excerpt {
      -webkit-line-clamp: 4;
      font-size: 1rem;
    }
    /* the card spans two rows - keep the author with the text, not at the bottom */
    & .mk-blog-author {
      margin-block-start: 0.5rem;
    }
  }

  /* list: rows with the picture beside the text, separated by rules */
  .mk-blog-grid[data-variant="list"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;

    & .mk-blog-card {
      flex-direction: row;
      align-items: center;
      gap: 1.25rem;
      padding-block: 1.25rem;
      border-block-end: 1px solid var(--border);
    }
    & .mk-blog-card:first-child {
      padding-block-start: 0;
    }
    & .mk-blog-media {
      flex: none;
      width: 34%;
      max-width: 15rem;
      aspect-ratio: 4 / 3;
    }
    & .mk-blog-body {
      padding-block: 0;
    }
    & .mk-blog-author {
      display: none;
    }
  }

  /* minimal: text only - a rule on top of each post */
  .mk-blog-grid[data-variant="minimal"] .mk-blog-card {
    padding-block-start: 1rem;
    border-block-start: 2px solid var(--foreground);

    & .mk-blog-card-title {
      font-size: 1.25rem;
    }
    &:hover .mk-blog-card-title {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
  }

  /* overlay: the text sits on the picture, a scrim keeps it readable */
  .mk-blog-grid[data-variant="overlay"] .mk-blog-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 22rem;
    border-radius: var(--radius-xl);
    color: #fff;

    & .mk-blog-media {
      position: absolute;
      inset: 0;
      z-index: -2;
      aspect-ratio: auto;
      border-radius: 0;
    }
    & .mk-blog-media img {
      transition: scale 400ms ease;
    }
    &:hover .mk-blog-media img {
      opacity: 1;
      scale: 1.04;
    }
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(to top, oklch(0.12 0.02 260 / 0.9), oklch(0.12 0.02 260 / 0.1) 70%);
    }
    & .mk-blog-body {
      justify-content: flex-end;
      padding: 1.25rem;
    }
    & .mk-blog-category {
      color: inherit;
    }
    & .mk-blog-read {
      background: oklch(1 0 0 / 0.16);
      color: inherit;
    }
    & :is(.mk-blog-excerpt, .mk-blog-author-date) {
      color: oklch(1 0 0 / 0.75);
    }
    & .mk-blog-author {
      margin-block-start: 0.25rem;
    }
  }

  /* carousel: one row that scrolls sideways and snaps per post */
  .mk-blog-grid[data-variant="carousel"] {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    padding-block-end: 0.75rem;
    scrollbar-width: thin;

    & > * {
      flex: 0 0 min(82%, 20rem);
      scroll-snap-align: start;
    }
  }

  /* category filters: links with the current one filled */
  .mk-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    & a {
      padding: 0.375rem 0.875rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      color: var(--foreground);
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    & a[aria-current] {
      border-color: var(--foreground);
      background: var(--foreground);
      color: var(--background);
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  @container mk-blog (min-width: 44rem) {
    .mk-blog-grid[data-variant="featured"] > :first-child {
      grid-column: span 2;
      grid-row: span 2;
    }
    .mk-blog-grid[data-variant="featured"] > :first-child .mk-blog-media {
      aspect-ratio: 16 / 10;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-blog-grid[data-variant="overlay"] .mk-blog-media img {
      transition: none;
    }
    .mk-blog-grid[data-variant="overlay"] .mk-blog-card:hover .mk-blog-media img {
      scale: none;
    }
  }

  @media (forced-colors: active) {
    .mk-blog-filters a[aria-current] {
      border-color: Highlight;
      background: Highlight;
      color: HighlightText;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mk-blog-media img {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-blog-card {
      color: LinkText;
    }
  }
}

/* ── components/faq/faq.css ── */
/* -- FAQ (marketing) -----------------------------------------------
   "Frequently asked questions" as an icon-card grid (each answer is
   visible - no disclosure widget). Cards hold a muted icon tile and a
   question/answer pair. Responsive columns follow container width. */

@layer components {
  .mk-faq {
    container: mk-faq / inline-size;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-faq-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 48rem;
    text-align: left;
  }

  .mk-faq-eyebrow {
    color: var(--primary);
    font-size: 1rem;
    font-weight: 500;
  }

  .mk-faq-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-faq-grid {
    display: grid;
    gap: 3rem;
  }

  .mk-faq-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 36rem;
    text-align: left;
  }

  .mk-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--muted);

    & svg {
      width: 1.5rem;
      height: 1.5rem;
      color: var(--primary);
    }
  }

  .mk-faq-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mk-faq-question {
    line-height: 1.3;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-faq-answer {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  /* a link to the full answer (a detail page or a help article) */
  .mk-faq-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-block-start: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;

    & svg {
      width: 0.875rem;
      height: 0.875rem;
      transition: translate 150ms ease;
    }
    &:hover {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
    &:hover svg {
      translate: 0.125rem 0;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  @container mk-faq (min-width: 30rem) {
    .mk-faq-title {
      font-size: 2.25rem;
    }
    .mk-faq-grid {
      grid-template-columns: 1fr 1fr;
      gap: 2.25rem 2.25rem;
      row-gap: 3rem;
    }
  }

  @container mk-faq (min-width: 52rem) {
    .mk-faq-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  /* -- variants ------------------------------------------------- */
  /* accordion: the head centered above an Accordion */
  .mk-faq[data-variant="accordion"] {
    align-items: center;

    & .mk-faq-head {
      align-items: center;
      text-align: center;
    }
  }
  .mk-faq-accordion {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
  }
  .mk-faq-accordion .accordion-trigger {
    padding-block: 1.125rem;
    font-size: 1.0625rem;
  }

  .mk-faq-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  /* split: the head (sticky) beside the questions */
  .mk-faq-split {
    display: grid;
    gap: 2rem 4rem;
  }
  .mk-faq-split > :first-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  /* cards: each pair on a bordered card */
  .mk-faq-grid[data-variant="cards"] {
    gap: 1.25rem;
  }
  .mk-faq-grid[data-variant="cards"] .mk-faq-item {
    max-width: none;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);

    & .mk-faq-question {
      font-size: 1.0625rem;
    }
  }

  /* numbered: a mono counter instead of the icon, a rule on top */
  .mk-faq-grid[data-variant="numbered"] {
    counter-reset: mk-faq;

    & .mk-faq-item {
      counter-increment: mk-faq;
      gap: 0.75rem;
      padding-block-start: 1.25rem;
      border-block-start: 1px solid var(--border);
    }
    & .mk-faq-item::before {
      content: counter(mk-faq, decimal-leading-zero);
      color: var(--primary);
      font-family: var(--font-mono);
      font-size: 0.875rem;
      font-weight: 600;
    }
  }

  /* search + topics above the questions */
  .mk-faq-search {
    position: relative;
    width: 100%;
    max-width: 32rem;

    & svg {
      position: absolute;
      inset-inline-start: 0.875rem;
      top: 50%;
      translate: 0 -50%;
      width: 1.125rem;
      height: 1.125rem;
      color: var(--muted-foreground);
      pointer-events: none;
    }
    & .input {
      height: 2.75rem;
      padding-inline-start: 2.5rem;
      font-size: 1rem;
    }
  }
  .mk-faq-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    & a {
      padding: 0.375rem 0.875rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      color: var(--foreground);
    }
    & a[aria-current] {
      border-color: var(--primary);
      background: color-mix(in oklch, var(--primary) 10%, transparent);
      color: var(--primary);
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* contact: "still have questions" with the team and an action */
  .mk-faq-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--muted);

    & > div:nth-child(2) {
      flex: 1 1 14rem;
    }
    & strong {
      font-weight: 600;
    }
    & p {
      margin: 0.125rem 0 0;
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
  }
  .mk-faq-split .mk-faq-contact {
    margin: 0;
  }

  @container mk-faq (min-width: 52rem) {
    .mk-faq-split {
      grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }
    .mk-faq-split > :first-child {
      position: sticky;
      top: 1.5rem;
      align-self: start;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-faq-grid[data-variant="cards"] .mk-faq-item {
      border-color: CanvasText;
    }
    .mk-faq-topics a[aria-current] {
      border-color: Highlight;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .mk-faq-link svg {
      transition: none;
    }
    .mk-faq-link:hover svg {
      translate: none;
    }
  }

  @media (forced-colors: active) {
    .mk-faq-icon {
      border-color: CanvasText;
    }
  }
}

/* ── components/get-in-touch/get-in-touch.css ── */
/* -- Get In Touch (marketing) --------------------------------------
   Bordered contact CTA card: overlapping grayscale avatar stack,
   centered heading, single button. Avatar overlap via negative
   margin + ring (source: `-space-x-2 ring-2 ring-background`). */

@layer components {
  .mk-contact {
    container: mk-contact / inline-size;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.25rem;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--background);
    padding: 2.25rem 1.25rem;
  }

  .mk-contact-avatars {
    display: flex;
    margin-inline-start: 0.5rem;
  }

  .mk-contact-avatars .avatar {
    /* every avatar: background ring (survives forced-colors) + grayscale */
    outline: 2px solid var(--background);
    outline-offset: -2px;
    filter: grayscale(1);
  }

  .mk-contact-avatars .avatar + .avatar {
    /* overlap every avatar except the first (source: -space-x-2) */
    margin-inline-start: -0.5rem;
  }

  .mk-contact-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
    text-align: center;
  }

  .mk-contact-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-contact-desc {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  .mk-contact-cta {
    width: 100%;
  }

  @container mk-contact (min-width: 30rem) {
    .mk-contact-title {
      font-size: 2.25rem;
    }
    .mk-contact-cta {
      width: auto;
    }
  }

  /* split: a contact form beside the ways to reach you */
  .mk-contact[data-variant="split"] {
    align-items: stretch;
    padding: 2rem;
  }
  .mk-contact-split {
    display: grid;
    gap: 2rem 3rem;
    width: 100%;

    & form {
      display: grid;
      gap: 1rem;
    }
    & .mk-contact-copy {
      align-items: flex-start;
      text-align: start;
      margin: 0;
    }
  }
  /* the info column beside the form once the section has room */
  @container mk-contact (min-width: 44rem) {
    .mk-contact-split {
      grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    }
  }
  .mk-contact-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: 1rem;
  }
  .mk-contact-field {
    display: grid;
    gap: 0.375rem;
  }
  .mk-contact-info {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;

    & li {
      display: flex;
      gap: 0.875rem;
      align-items: flex-start;
    }
    & li > svg {
      flex: none;
      width: 2.25rem;
      height: 2.25rem;
      padding: 0.5rem;
      box-sizing: border-box;
      border-radius: var(--radius-md);
      background: var(--muted);
      color: var(--primary);
    }
    & strong {
      display: block;
      font-size: 0.9375rem;
    }
    & a,
    & span {
      color: var(--muted-foreground);
      font-size: 0.875rem;
      text-decoration: none;
    }
    & a:hover {
      color: var(--foreground);
      text-decoration: underline;
    }
  }

  /* channels: one card per way in - sales, support, press */
  .mk-contact-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
    width: 100%;
  }
  .mk-contact-channel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    text-align: start;

    & > svg {
      width: 1.5rem;
      height: 1.5rem;
      color: var(--primary);
    }
    & h3 {
      margin: 0.5rem 0 0;
      font-size: 1.0625rem;
      font-weight: 600;
    }
    & p {
      margin: 0;
      flex: 1;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      line-height: 1.55;
    }
    & .btn {
      align-self: flex-start;
      margin-block-start: 0.5rem;
    }
  }

  /* band: "talk to a human" - a dark band with an online indicator */
  .mk-contact[data-variant="band"] {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 2rem;
    border: 0;
    background:
      radial-gradient(60% 120% at 100% 0%, color-mix(in oklch, var(--chart-2) 35%, transparent), transparent 60%),
      var(--foreground);
    color: var(--background);

    & .mk-contact-copy {
      align-items: flex-start;
      text-align: start;
      margin: 0;
      flex: 1 1 20rem;
    }
    & .mk-contact-desc {
      color: color-mix(in oklch, var(--background) 72%, transparent);
    }
    & .mk-contact-avatars .avatar {
      outline-color: var(--foreground);
      filter: none;
    }
    & .mk-contact-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
  }
  .mk-contact-online {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
  }

  /* -- Accessibility ------------------------------------------- */

  @media (prefers-reduced-transparency: reduce) {
    /* grayscale is decorative identity, keep it; only guarantee contrast */
    .mk-contact-avatars .avatar {
      filter: none;
    }
  }

  @media (forced-colors: active) {
    .mk-contact {
      border-color: CanvasText;
    }
    .mk-contact-avatars .avatar {
      outline-color: Canvas;
    }
  }
}

/* ── components/newsletter/newsletter.css ── */
/* -- Newsletter (marketing) ----------------------------------------
   Two-column sign-up band: copy left, inline email form right. The
   form is a real <form> + <input type="email"> - browser validation
   and the native keyboard work for free. */

@layer components {
  .mk-newsletter {
    container: mk-newsletter / inline-size;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-newsletter-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3rem;
  }

  .mk-newsletter-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 48rem;
    text-align: left;
  }

  .mk-newsletter-title {
    line-height: 1.15;
    margin: 0;
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .mk-newsletter-desc {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    text-wrap: pretty;
  }

  .mk-newsletter-form-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mk-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .mk-newsletter-form .input {
    width: 100%;
  }

  .mk-newsletter-form .btn {
    width: 100%;
  }

  /* note and error sit just inside the input's edge */
  .mk-newsletter-note,
  .mk-newsletter-error {
    padding-inline-start: 0.375rem;
    font-size: 0.75rem;
  }
  .mk-newsletter-note {
    color: var(--muted-foreground);
  }

  /* the error shows only after an attempt - :user-invalid, no script */
  .mk-newsletter-error {
    display: none;
    align-items: center;
    gap: 0.25rem;
    color: var(--destructive);
    font-weight: 500;

    & svg {
      width: 0.875rem;
      height: 0.875rem;
      flex: none;
    }
  }
  .mk-newsletter-form-col:has(input:user-invalid) {
    & .mk-newsletter-error {
      display: flex;
    }
    & .mk-newsletter-note {
      display: none;
    }
  }

  @container mk-newsletter (min-width: 30rem) {
    .mk-newsletter-layout {
      flex-direction: row;
    }
    .mk-newsletter-form-col {
      align-self: flex-end;
    }
    .mk-newsletter-form {
      flex-direction: row;
    }
    .mk-newsletter-form .input {
      width: fit-content;
    }
    .mk-newsletter-form .btn {
      width: auto;
    }
  }

  @container mk-newsletter (min-width: 52rem) {
    .mk-newsletter-layout {
      gap: 4rem;
    }
    .mk-newsletter-title {
      font-size: 2.25rem;
    }
    .mk-newsletter-form-col {
      gap: 0.75rem;
    }
  }
  /* card: centered on a surface - an icon, the form, social proof */
  .mk-newsletter[data-variant="card"] .mk-newsletter-layout {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 36rem;
    margin-inline: auto;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
      radial-gradient(80% 60% at 50% 0%, color-mix(in oklch, var(--primary) 10%, transparent), transparent 70%),
      var(--card);
    text-align: center;

    & .mk-newsletter-copy {
      align-items: center;
      text-align: center;
    }
    & .mk-newsletter-form-col {
      align-self: stretch;
    }
    /* centered card: the input + button row and the note/error under it center too */
    & :is(.mk-newsletter-note, .mk-newsletter-error) {
      justify-content: center;
      padding-inline-start: 0;
      text-align: center;
    }
  }
  @container mk-newsletter (min-width: 30rem) {
    .mk-newsletter[data-variant="card"] .mk-newsletter-form {
      justify-content: center;
    }
    .mk-newsletter[data-variant="card"] .mk-newsletter-form .input {
      flex: 0 1 18rem;
      width: auto;
    }
  }
  .mk-newsletter-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--primary-foreground);

    & svg {
      width: 1.375rem;
      height: 1.375rem;
    }
  }
  .mk-newsletter-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;

    & strong {
      color: var(--foreground);
    }
  }

  /* banner: a gradient strip - copy and form on one row */
  .mk-newsletter[data-variant="banner"] .mk-newsletter-layout {
    align-items: center;
    padding: 1.75rem 2rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, var(--primary), color-mix(in oklch, var(--chart-2) 70%, var(--primary)));
    color: var(--primary-foreground);

    & .mk-newsletter-title {
      font-size: 1.5rem;
    }
    & .mk-newsletter-desc,
    & .mk-newsletter-note {
      color: color-mix(in oklch, var(--primary-foreground) 75%, transparent);
    }
    & .input {
      background: color-mix(in oklch, var(--primary-foreground) 92%, transparent);
      color: #111;
    }
    & .btn {
      background: var(--primary-foreground);
      color: var(--primary);
    }
  }

  /* topics: pick lists with Checkboxes */
  .mk-newsletter-topics {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    border: 0;

    & legend {
      margin-block-end: 0.5rem;
      font-size: 0.875rem;
      font-weight: 600;
    }
  }
  .mk-newsletter-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 2rem 3rem;
    align-items: center;

    & img {
      width: 100%;
      aspect-ratio: 4 / 5;
      object-fit: cover;
      border-radius: var(--radius-xl);
    }
    & form {
      display: grid;
      gap: 1rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-newsletter[data-variant="banner"] .mk-newsletter-layout {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/cookie-consent/cookie-consent.css ── */
/* -- Cookie Consent component -------------------------------------
   Built from the library: the dialog is the Dialog component (backdrop,
   animation, scroll lock), its controls are Button, Select, Tabs,
   Checkbox and Badge. This sheet adds only what consent needs on top -
   widths and the corner placement, a scrolling body between a fixed
   header and footer, the choice rows, the floating settings button and
   the placeholder that stands in for a blocked embed. */

@layer components {
  .cookie-consent {
    color: var(--foreground);
    font-family: var(--font-sans);

    /* sizes: sm 28rem · md (default) 40rem · lg 48rem */
    & .cookie-consent-dialog {
      max-width: 40rem;
      max-height: calc(100dvh - 2rem);
      overflow: hidden;
      overscroll-behavior: contain;
      & [hidden] {
        display: none !important;
      }
    }
    &[data-size="sm"] .cookie-consent-dialog {
      max-width: 28rem;
    }
    &[data-size="lg"] .cookie-consent-dialog {
      max-width: 48rem;
    }

    /* corner: a bottom-right modal - the page behind stays inert */
    &[data-variant="corner"] .cookie-consent-dialog {
      inset: auto 1rem 1rem auto;
      margin: 0;
    }

    /* banner: the first-visit view as a bar along the bottom of the page -
       NON-modal (the runtime opens it with show()), the page stays usable.
       Copy beside the buttons on wide screens, stacked on phones. The
       settings views reopen as the modal dialog, so this only styles the bar. */
    &[data-variant="banner"] .cookie-consent-dialog:not(:modal) {
      position: fixed;
      inset: auto 0 0;
      z-index: 60;
      container: cookie-banner / inline-size;
      width: 100%;
      max-width: none;
      max-height: min(60dvh, 28rem);
      margin: 0;
      border: 0;
      border-block-start: 1px solid var(--border);
      border-radius: 0;
      box-shadow: 0 -12px 32px -16px color-mix(in oklch, var(--foreground) 30%, transparent);
      transition:
        translate 300ms ease,
        opacity 300ms ease;

      @starting-style {
        translate: 0 100%;
        opacity: 0;
      }

      & .cookie-consent-content {
        grid-template-rows: none;
        max-width: 80rem;
        max-height: none;
        margin-inline: auto;
        padding: 1rem 1.25rem;
        gap: 0.5rem 2rem;
      }
      /* title and tools stay on one line, even on phones */
      & .cookie-consent-header {
        flex-direction: row;
        align-items: center;
      }
      & .cookie-consent-tools {
        align-self: center;
      }
      & .cookie-consent-title {
        font-size: 1rem;
      }
      & .cookie-consent-eyebrow {
        display: none;
      }
      & .cookie-consent-description {
        margin: 0;
      }
      & .cookie-consent-footer {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-block-start: 0;
        border-block-start: 0;
      }
    }
    @container cookie-banner (min-width: 48rem) {
      &[data-variant="banner"] .cookie-consent-dialog:not(:modal) .cookie-consent-content {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;

        /* the header spans the bar - title left, language + close at the far
           right; the text and the buttons share the row below */
        & > .cookie-consent-header {
          grid-column: 1 / -1;
          grid-row: 1;
          align-items: center;
        }
        & > .cookie-consent-body {
          grid-column: 1;
          grid-row: 2;
        }
        & > .cookie-consent-footer {
          grid-column: 2;
          grid-row: 2;
          justify-content: flex-end;
        }
        & > .cookie-consent-footer > .btn {
          flex: none;
        }
      }
    }

    /* header / scrolling body / footer */
    & .cookie-consent-content {
      display: grid;
      grid-template-rows: auto minmax(0, 1fr) auto;
      gap: 1rem;
      max-height: calc(100dvh - 2rem);
      box-sizing: border-box;
    }
    &[data-density="compact"] .cookie-consent-content {
      padding: 1rem;
      gap: 0.75rem;
    }
    &[data-density="spacious"] .cookie-consent-content {
      padding: 2rem;
      gap: 1.25rem;
    }

    & .cookie-consent-header {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 1rem;
      margin: 0;
    }
    & .cookie-consent-title {
      font-size: 1.25rem;
      line-height: 1.3;
      text-wrap: balance;
      &:focus {
        outline: none;
      }
    }
    & .cookie-consent-eyebrow {
      margin: 0 0 0.375rem;
      font-size: 0.75rem;
      color: var(--muted-foreground);
    }
    & .cookie-consent-tools {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    & .cookie-consent-tools > .select {
      width: auto;
    }

    & .cookie-consent-body {
      min-height: 0;
      max-height: 55dvh;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-gutter: stable;
    }
    & .cookie-consent-description {
      margin: 0 0 1rem;
      text-wrap: pretty;
    }
    & .cookie-consent-tabs > .tab-list {
      width: 100%;
      margin-bottom: 0.75rem;
    }
    & .cookie-consent-tabs > .tab-list > .tab-trigger {
      flex: 1;
    }

    /* one choice: a framed Checkbox row */
    & .cookie-consent-row {
      padding: 1rem;
      margin-bottom: 0.625rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      & .field-description {
        margin-top: 0.375rem;
      }
      & > .checkbox {
        margin-top: 0.125rem;
      }
    }
    & .cookie-consent-label {
      display: inline-flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
    }
    & .cookie-consent-data {
      display: flex;
      flex-wrap: wrap;
      gap: 0.375rem;
      margin: 0.625rem 0 0;
      padding: 0;
      list-style: none;
    }
    & a {
      color: var(--foreground);
      font-size: 0.8125rem;
      text-underline-offset: 0.2em;
    }
    & .cookie-consent-links {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-top: 1rem;
    }
    & .cookie-consent-links:empty {
      display: none;
    }

    & .cookie-consent-footer {
      flex-wrap: wrap;
      margin: 0;
      padding-top: 1rem;
      border-top: 1px solid var(--border);
      & > .btn {
        flex: 1 1 auto;
      }
    }

    /* the floating way back to the settings */
    & .cookie-consent-floating {
      position: fixed;
      inset-inline-start: 1rem;
      inset-block-end: 1rem;
      z-index: 20;
      box-shadow: var(--shadow-md);
    }
  }

  /* -- A blocked embed: placeholder until its service is allowed -- */
  .cookie-consent-embed {
    display: grid;
    min-height: 12rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--muted);
    & > iframe {
      width: 100%;
      min-height: 16rem;
      border: 0;
    }
    & [hidden] {
      display: none !important;
    }
  }
  .cookie-consent-placeholder {
    align-self: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--muted-foreground);
    font-family: var(--font-sans);
    font-size: 0.875rem;
  }
  .cookie-consent-embed-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  /* -- Accessibility -------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .cookie-consent .cookie-consent-dialog {
      transition: none;
    }
    .cookie-consent[data-variant="banner"] .cookie-consent-dialog:not(:modal) {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .cookie-consent .cookie-consent-row .field-description,
    .cookie-consent-placeholder {
      color: var(--foreground);
    }
    .cookie-consent .cookie-consent-row {
      border-color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .cookie-consent .cookie-consent-row,
    .cookie-consent-embed {
      border-color: CanvasText;
    }
  }

  @media (max-width: 36rem) {
    .cookie-consent .cookie-consent-header {
      flex-direction: column;
    }
    .cookie-consent .cookie-consent-tools {
      align-self: end;
    }
    .cookie-consent .cookie-consent-footer {
      flex-direction: column;
    }
  }
}

/* ── components/site-footer/site-footer.css ── */
/* -- Site Footer (marketing) ---------------------------------------
   Link columns + rule + brand/social/copyright row. Named .mk-footer
   to avoid colliding with the doc site's own .site-footer chrome. */

@layer components {
  .mk-footer {
    container: mk-footer / inline-size;
    width: 100%;
    background: var(--background);
    color: var(--foreground);
  }

  .mk-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 80rem;
    margin-inline: auto;
    padding: 2.5rem 1.25rem;
  }

  .mk-footer-nav {
    display: grid;
    gap: 3rem;
  }

  .mk-footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
  }

  .mk-footer-heading {
    line-height: 1.3;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 500;
  }

  .mk-footer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 1rem;

    & a {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      color: inherit;
      text-decoration: none;
      border-radius: var(--radius-sm);

      &:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }
  }

  .mk-footer-rule {
    width: 100%;
  }

  .mk-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }

  .mk-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    color: var(--primary);
    text-decoration: none;

    & svg {
      width: 1.25rem;
      height: 1.25rem;
      flex-shrink: 0;
    }
  }

  .mk-footer-brand-name {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
  }

  .mk-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .mk-footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted-foreground);

    & a {
      display: flex;
      color: inherit;
      border-radius: var(--radius-sm);
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }

  .mk-footer-copy {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }

  @container mk-footer (min-width: 30rem) {
    .mk-footer-nav {
      grid-template-columns: 1fr 1fr;
    }
    .mk-footer-bottom {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
    .mk-footer-meta {
      flex-direction: row;
      align-items: center;
      gap: 1rem;
    }
  }

  @container mk-footer (min-width: 52rem) {
    .mk-footer-inner {
      gap: 2.25rem;
      padding-inline: 2rem;
    }
    .mk-footer-nav {
      grid-template-columns: repeat(4, 1fr);
      gap: 2.25rem;
    }
  }

  /* -- variants ------------------------------------------------- */
  /* simple: one row - brand, inline links, copyright */
  .mk-footer[data-variant="simple"] .mk-footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding-block: 1.5rem;
  }
  .mk-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;

    & a {
      color: var(--muted-foreground);
      text-decoration: none;
      border-radius: var(--radius-sm);
    }
    & a:hover {
      color: var(--foreground);
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* top: an about column (brand, line, newsletter, social) beside the link columns */
  .mk-footer-top {
    display: grid;
    gap: 2.5rem;
  }
  .mk-footer-about {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 24rem;

    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      text-wrap: pretty;
    }
  }
  .mk-footer-top .mk-footer-nav {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  }
  .mk-footer-newsletter {
    display: flex;
    gap: 0.5rem;
    width: 100%;

    & .input {
      flex: 1;
      min-width: 0;
    }
  }
  .mk-footer-locale {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-footer-locale .select {
    width: auto;
    height: 2rem;
    font-size: 0.8125rem;
  }

  /* dark: the footer inverts - the page ends on a dark band */
  .mk-footer[data-variant="dark"] {
    background: var(--foreground);
    color: var(--background);

    & :is(.mk-footer-heading, .mk-footer-copy, .mk-footer-social, .mk-footer-about p) {
      color: color-mix(in oklch, var(--background) 65%, transparent);
    }
    & .mk-footer-brand {
      color: inherit;
    }
    & .separator {
      background: color-mix(in oklch, var(--background) 18%, transparent);
    }
    & .mk-footer-list a:focus-visible {
      outline-color: var(--background);
    }
  }

  /* cta: a call to action on top of the footer */
  .mk-footer-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(60% 120% at 100% 0%, color-mix(in oklch, var(--chart-1) 55%, transparent), transparent 70%),
      radial-gradient(50% 120% at 75% 100%, color-mix(in oklch, var(--chart-2) 40%, transparent), transparent 70%),
      color-mix(in oklch, var(--background) 8%, var(--foreground));
    color: var(--background);

    & h2 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 600;
      letter-spacing: -0.02em;
      text-wrap: balance;
    }
    & p {
      margin: 0.25rem 0 0;
      color: color-mix(in oklch, var(--background) 70%, transparent);
    }
    & .mk-footer-cta-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
  }
  .mk-footer:not([data-variant="dark"]) .mk-footer-cta {
    background:
      radial-gradient(60% 120% at 100% 0%, color-mix(in oklch, var(--chart-1) 55%, transparent), transparent 70%),
      radial-gradient(50% 120% at 75% 100%, color-mix(in oklch, var(--chart-2) 40%, transparent), transparent 70%),
      var(--foreground);
  }

  /* wordmark: the brand, huge, closing the page */
  .mk-footer-wordmark {
    margin: 0;
    overflow: hidden;
    color: color-mix(in oklch, currentColor 10%, transparent);
    font-size: 26cqi;
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.06em;
    text-align: center;
    white-space: nowrap;
    user-select: none;
  }

  @container mk-footer (min-width: 52rem) {
    .mk-footer-top {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
      gap: 4rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-footer[data-variant="dark"] {
      border-block-start: 1px solid CanvasText;
    }
    .mk-footer-cta {
      border: 1px solid CanvasText;
    }
    .mk-footer-wordmark {
      color: GrayText;
    }
  }

  @media (forced-colors: active) {
    .mk-footer-copy {
      color: CanvasText;
    }
  }
}

/* ── components/news-header/news-header.css ── */
/* -- News Header (website) ------------------------------------------
   Introduces a news collection: kicker + dateline, the title, a line of
   editorial context and the topic links (the current one marked with
   aria-current). The masthead variant sets it like a newspaper front page. */

/* the overflow hint's strength (0-1), animated by the topic row's scroll */
@property --mk-news-header-more {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@layer components {
  .mk-news-header {
    container: mk-news-header / inline-size;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-news-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    font-size: 0.8125rem;
  }

  .mk-news-header-kicker {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mk-news-header-date {
    color: var(--muted-foreground);
  }

  .mk-news-header-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .mk-news-header-desc {
    margin: 0;
    max-width: 44rem;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    line-height: 1.55;
    text-wrap: pretty;
  }

  /* topics: one scrolling row, the current topic underlined */
  .mk-news-header-topics {
    display: flex;
    gap: 1.25rem;
    margin-block-start: 0.5rem;
    border-block-end: 1px solid var(--border);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;

    & a {
      flex: none;
      padding-block: 0.625rem;
      border-block-end: 2px solid transparent;
      margin-block-end: -1px;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      font-weight: 500;
      text-decoration: none;
      white-space: nowrap;
      transition:
        color 120ms,
        border-color 120ms;

      &:hover {
        color: var(--foreground);
      }
      &[aria-current] {
        color: var(--foreground);
        border-block-end-color: var(--primary);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: -2px;
        border-radius: var(--radius-sm);
      }
    }
  }

  /* more topics than fit: an overlay at the row's end - a fade into the
     background and a chevron. Its strength follows the row's own scroll (a
     scroll-driven animation): full while there is more to see, gone at the
     end; a row that fits has no active timeline, so no hint at all. The
     overlay takes no room (width = -margin) and sticks to the row's end. */
  .mk-news-header-topics {
    --mk-news-header-more: 0;

    animation: mk-news-header-more linear both;

    &::after {
      content: "›";
      position: sticky;
      inset-inline-end: 0;
      flex: none;
      width: 3rem;
      margin-inline-start: -3rem;
      padding-inline-end: 0.125rem;
      background: linear-gradient(to right, transparent, var(--background) 65%);
      color: var(--foreground);
      font-size: 1.25rem;
      line-height: 1;
      text-align: end;
      align-self: stretch;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      opacity: var(--mk-news-header-more);
      pointer-events: none;
    }
  }
  @keyframes mk-news-header-more {
    from {
      --mk-news-header-more: 1;
    }
    to {
      --mk-news-header-more: 0;
    }
  }
  /* the timeline in its own rule: a minifier must not fold it into the
     `animation` shorthand (reset-only there - the declaration would be
     dropped). Unsupported: the animation runs once (0s) and ends at 0 - no
     hint, no harm */
  @supports (animation-timeline: scroll()) {
    .mk-news-header-topics {
      animation-timeline: scroll(self inline);
    }
    .mk-news-header-topics[data-wrap] {
      animation: none;
    }
  }

  /* data-wrap: break the topics onto more lines instead of scrolling */
  .mk-news-header-topics[data-wrap] {
    flex-wrap: wrap;
    column-gap: 1.25rem;
    overflow: visible;
    animation: none;

    &::after {
      content: none;
    }
  }

  /* masthead: a newspaper front - serif, centered, between double rules */
  .mk-news-header[data-variant="masthead"] {
    align-items: center;
    text-align: center;

    & .mk-news-header-top {
      width: 100%;
      padding-block: 0.375rem;
      border-block: 1px solid var(--foreground);
    }
    & .mk-news-header-title {
      font-family: var(--font-serif);
      font-weight: 800;
      font-size: 3rem;
      letter-spacing: -0.02em;
    }
    & .mk-news-header-topics {
      justify-content: safe center;
      width: 100%;
      border-block: 3px double var(--foreground);
      & a {
        padding-block: 0.5rem;
        border-block-end: 0;
        margin: 0;
      }
      & a[aria-current] {
        text-decoration: underline;
        text-underline-offset: 0.3em;
        text-decoration-color: var(--primary);
      }
    }
  }

  /* the live line: a pinging Indicator dot + "updated …" */
  .mk-news-header-live {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;

    & strong {
      color: oklch(0.58 0.22 27);
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
  }

  /* tools on the right of the top line: search, view switch, subscribe */
  .mk-news-header-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  /* bar: one compact row - title, topics, tools */
  .mk-news-header[data-variant="bar"] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    padding-block: 0.75rem;
    border-block: 1px solid var(--border);

    & .mk-news-header-title {
      font-size: 1.375rem;
      letter-spacing: -0.02em;
    }
    & .mk-news-header-topics {
      flex: 1 1 8rem;
      min-width: 0;
      margin: 0;
      border: 0;
    }
    & .mk-news-header-topics a {
      padding-block: 0.25rem;
    }
    & .mk-news-header-tools {
      margin-inline-start: auto;
    }
  }

  @container mk-news-header (min-width: 48rem) {
    .mk-news-header[data-variant="bar"] .mk-news-header-title {
      font-size: 1.5rem;
    }
    .mk-news-header-title {
      font-size: 3rem;
    }
    .mk-news-header[data-variant="masthead"] .mk-news-header-title {
      font-size: 4.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-news-header-topics a {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-news-header-desc,
    .mk-news-header-topics a {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-news-header-topics a[aria-current] {
      border-block-end-color: Highlight;
    }
  }
}

/* ── components/news-item/news-item.css ── */
/* -- News Item (website) --------------------------------------------
   Previews one story: category + time, the headline (its link stretches
   over the whole item - one tab stop, one click target), a summary and an
   optional image. Default: a row with the image at the end; lead: the top
   story, image above; compact: a headline list. */

@layer components {
  .mk-news-item {
    container: mk-news-item / inline-size;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    padding-block: 1rem;
    border-block-end: 1px solid var(--border);

    &:has(.mk-news-item-title a:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  .mk-news-item-body {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
  }

  .mk-news-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }

  .mk-news-item-category {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  /* live: a pulsing dot in front of the time */
  .mk-news-item-live {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: oklch(0.58 0.22 27);
    font-weight: 600;

    &::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background: currentColor;
      animation: mk-news-item-pulse 1.6s ease-in-out infinite;
    }
  }

  .mk-news-item-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;

    & a {
      color: inherit;
      text-decoration: none;
      outline: none;

      /* the stretched link: the whole item is the click target */
      &::after {
        content: "";
        position: absolute;
        inset: 0;
      }
    }
  }
  .mk-news-item:hover .mk-news-item-title a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  .mk-news-item-summary {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.55;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mk-news-item-media {
    width: 6rem;
    aspect-ratio: 4 / 3;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--muted);

    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  @container mk-news-item (min-width: 36rem) {
    .mk-news-item-media {
      width: 9rem;
    }
  }

  /* lead: the top story - image above, a big headline */
  .mk-news-item[data-variant="lead"] {
    grid-template-columns: minmax(0, 1fr);
    padding-block-start: 0;

    & .mk-news-item-media {
      order: -1;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: var(--radius-lg);
    }
    & .mk-news-item-title {
      font-size: 1.5rem;
      line-height: 1.15;
    }
    & .mk-news-item-summary {
      font-size: 1rem;
      -webkit-line-clamp: 4;
    }
  }
  @container mk-news-item (min-width: 36rem) {
    .mk-news-item[data-variant="lead"] .mk-news-item-title {
      font-size: 2rem;
    }
  }

  /* compact: time in front of the headline, no image, no summary */
  .mk-news-item[data-variant="compact"] {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 0.625rem;

    & .mk-news-item-body {
      flex-direction: row;
      align-items: baseline;
      gap: 0.75rem;
    }
    & .mk-news-item-meta {
      flex: none;
      min-width: 4.75rem;
    }
    & .mk-news-item-title {
      font-size: 0.9375rem;
      font-weight: 500;
    }
    & :is(.mk-news-item-summary, .mk-news-item-media, .mk-news-item-category) {
      display: none;
    }
  }

  /* tags, author, actions: raised above the stretched link so they stay clickable */
  .mk-news-item-footer {
    position: relative;
    z-index: 1;

    & a {
      text-decoration: none;
    }
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.75rem;
    margin-block-start: 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }

  /* a video story: a play glyph and the duration on the thumbnail */
  .mk-news-item-media[data-video] {
    position: relative;

    &::before {
      content: "";
      position: absolute;
      inset: 50% auto auto 50%;
      width: 2.25rem;
      height: 2.25rem;
      translate: -50% -50%;
      border-radius: 50%;
      background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E")
          55% 50% / 1rem 1rem no-repeat,
        rgb(0 0 0 / 0.55);
      backdrop-filter: blur(4px);
    }
    &::after {
      content: attr(data-video);
      position: absolute;
      inset-block-end: 0.375rem;
      inset-inline-end: 0.375rem;
      padding: 0.0625rem 0.375rem;
      border-radius: var(--radius-sm);
      background: rgb(0 0 0 / 0.7);
      color: #fff;
      font-size: 0.6875rem;
      font-variant-numeric: tabular-nums;
    }
  }

  /* overlay: the copy over the image, on a darkening gradient */
  .mk-news-item[data-variant="overlay"] {
    grid-template-columns: minmax(0, 1fr);
    isolation: isolate;
    min-height: 18rem;
    padding: 1.25rem;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-lg);
    background: #0b0b0f;
    color: #fff;
    align-content: end;

    /* the image sits under the copy; the body stays static so the stretched
       link still spans the whole item */
    & .mk-news-item-media {
      position: absolute;
      inset: 0;
      z-index: -1;
      width: auto;
      aspect-ratio: auto;
      border-radius: 0;

      &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgb(0 0 0 / 0.88), rgb(0 0 0 / 0.25) 60%, transparent);
      }
    }
    & .mk-news-item-title {
      font-size: 1.375rem;
      line-height: 1.2;
    }
    & :is(.mk-news-item-meta, .mk-news-item-summary) {
      color: rgb(255 255 255 / 0.8);
    }
    & .mk-news-item-category {
      color: #fff;
    }
  }

  /* ranked: "most read" - a big outlined number from data-rank */
  .mk-news-item[data-variant="ranked"] {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;

    &::before {
      content: attr(data-rank);
      min-width: 2.5rem;
      color: transparent;
      font-size: 2.5rem;
      font-weight: 800;
      line-height: 1;
      -webkit-text-stroke: 1.5px var(--primary);
      font-variant-numeric: tabular-nums;
    }
    & :is(.mk-news-item-media, .mk-news-item-summary) {
      display: none;
    }
  }

  /* card: on a surface - image on top, footer at the bottom */
  .mk-news-item[data-variant="card"] {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    transition:
      box-shadow 150ms ease,
      border-color 150ms ease;

    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 25%, var(--border));
      box-shadow: var(--shadow-md);
    }
    & .mk-news-item-media {
      order: -1;
      width: 100%;
      aspect-ratio: 16 / 9;
      border-radius: 0;
    }
    & .mk-news-item-body {
      padding: 1rem 1.125rem 1.125rem;
    }
    & .mk-news-item-footer {
      margin-block-start: auto;
      padding-block-start: 0.75rem;
    }
  }

  /* live: a live-blog entry - the time on a rail with a dot */
  .mk-news-item[data-variant="live"] {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    column-gap: 1.25rem;
    padding-block: 0;
    border: 0;

    & .mk-news-item-meta {
      position: relative;
      grid-row: span 4;
      align-self: stretch;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.125rem;
      /* the rail runs through the entry's bottom padding into the next one */
      padding-block-end: 1.75rem;
      padding-inline-end: 0.875rem;
      border-inline-end: 2px solid var(--border);
      font-variant-numeric: tabular-nums;

      &::after {
        content: "";
        position: absolute;
        inset-block-start: 0.3rem;
        inset-inline-end: calc(-0.375rem - 1px);
        width: 0.75rem;
        height: 0.75rem;
        border: 2px solid var(--background);
        border-radius: 50%;
        background: var(--primary);
      }
    }
    & .mk-news-item-body {
      display: contents;
    }
    & .mk-news-item-meta time {
      color: var(--foreground);
      font-weight: 600;
      font-size: 0.875rem;
    }
    & .mk-news-item-title {
      grid-column: 2;
    }
    & :is(.mk-news-item-summary, .mk-news-item-footer, .mk-news-item-media) {
      grid-column: 2;
    }
    & .mk-news-item-summary {
      -webkit-line-clamp: unset;
      display: block;
    }
    & .mk-news-item-media {
      width: 100%;
      max-width: 24rem;
      aspect-ratio: 16 / 9;
      margin-block: 0.5rem 1.75rem;
    }
    & .mk-news-item-summary:last-child {
      margin-block-end: 1.75rem;
    }
  }
  .mk-news-item[data-variant="live"][data-key] .mk-news-item-meta::after {
    background: oklch(0.58 0.22 27);
    box-shadow: 0 0 0 4px oklch(0.58 0.22 27 / 0.2);
  }

  @keyframes mk-news-item-pulse {
    50% {
      opacity: 0.25;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-news-item-live::before {
      animation: none;
    }
    .mk-news-item[data-variant="card"] {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-news-item-summary,
    .mk-news-item-meta {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-news-item-title a {
      color: LinkText;
    }
    .mk-news-item-live {
      color: CanvasText;
    }
  }
}

/* ── components/news-ticker/news-ticker.css ── */
/* -- News Ticker (website) ------------------------------------------
   A compact stream of linked headlines. The list runs twice in one track
   (the copy is inert + aria-hidden) and the track slides by half its width,
   so the loop is seamless - pure CSS. Hover or focus pauses it; under
   reduced motion it stops and the row scrolls by hand instead. */

@layer components {
  .mk-news-ticker {
    --_duration: var(--mk-news-ticker-duration, 40s);

    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card);
    color: var(--card-foreground);
    font-size: 0.875rem;
  }

  .mk-news-ticker-label {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 0.375rem;
    padding-inline: 0.875rem;
    background: var(--primary);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mk-news-ticker-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 1.5rem, #000 calc(100% - 1.5rem), transparent);
  }

  .mk-news-ticker-track {
    display: flex;
    width: max-content;
    animation: mk-news-ticker-scroll var(--_duration) linear infinite;
  }
  .mk-news-ticker:is(:hover, :focus-within) .mk-news-ticker-track {
    animation-play-state: paused;
  }

  .mk-news-ticker-items {
    display: flex;
    flex: none;
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
      display: flex;
      align-items: center;

      /* a separator dot between headlines (and after the last, for the loop) */
      &::after {
        content: "";
        width: 0.25rem;
        height: 0.25rem;
        border-radius: 50%;
        background: var(--muted-foreground);
        opacity: 0.6;
      }
    }

    & a {
      display: inline-flex;
      align-items: baseline;
      gap: 0.5rem;
      padding: 0.625rem 1.25rem;
      color: inherit;
      font-weight: 500;
      text-decoration: none;
      white-space: nowrap;

      &:hover {
        text-decoration: underline;
        text-underline-offset: 0.2em;
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: -2px;
        border-radius: var(--radius-sm);
      }
    }

    & time {
      color: var(--muted-foreground);
      font-size: 0.75rem;
      font-variant-numeric: tabular-nums;
    }
  }

  /* breaking: a red label with a pulsing dot */
  .mk-news-ticker[data-variant="breaking"] {
    border-color: oklch(0.58 0.22 27 / 0.45);

    & .mk-news-ticker-label {
      background: oklch(0.58 0.22 27);
      color: #fff;

      &::before {
        content: "";
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: currentColor;
        animation: mk-news-ticker-pulse 1.6s ease-in-out infinite;
      }
    }
  }

  /* static: no motion at all - the row scrolls by hand */
  .mk-news-ticker[data-variant="static"],
  .mk-news-ticker[data-variant="static"] .mk-news-ticker-viewport {
    mask-image: none;
  }
  .mk-news-ticker[data-variant="static"] {
    & .mk-news-ticker-viewport {
      overflow-x: auto;
      overscroll-behavior-inline: contain;
      scrollbar-width: thin;
    }
    & .mk-news-ticker-track {
      animation: none;
    }
    & .mk-news-ticker-items[aria-hidden="true"] {
      display: none;
    }
  }

  /* a change readout (market, scores): green up, red down */
  .mk-news-ticker-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;

    &[data-trend="up"] {
      color: oklch(0.6 0.16 150);
      &::before {
        content: "▲";
        font-size: 0.625em;
      }
    }
    &[data-trend="down"] {
      color: oklch(0.6 0.2 27);
      &::before {
        content: "▼";
        font-size: 0.625em;
      }
    }
  }

  /* market: a stock strip - symbol, price, change; mono numbers */
  .mk-news-ticker[data-variant="market"] {
    & .mk-news-ticker-label {
      background: var(--foreground);
      color: var(--background);
    }
    & .mk-news-ticker-items a {
      gap: 0.625rem;
      font-family: var(--font-mono);
      font-size: 0.8125rem;
    }
    & .mk-news-ticker-items b {
      font-weight: 700;
      letter-spacing: 0.02em;
    }
  }

  /* inverse: a dark band */
  .mk-news-ticker[data-variant="inverse"] {
    border-color: transparent;
    background: var(--foreground);
    color: var(--background);

    & .mk-news-ticker-label {
      background: var(--primary);
      color: var(--primary-foreground);
      box-shadow: 0.75rem 0 1rem -0.5rem rgb(0 0 0 / 0.5);
    }
    & .mk-news-ticker-items time {
      color: color-mix(in oklch, var(--background) 65%, transparent);
    }
    & .mk-news-ticker-items li::after {
      background: var(--background);
    }
  }

  /* pill: a rounded floating strip with a badge label */
  .mk-news-ticker[data-variant="pill"] {
    padding: 0.25rem;
    border-radius: 999px;
    box-shadow: var(--shadow-md);

    & .mk-news-ticker-label {
      border-radius: 999px;
      padding-block: 0.25rem;
    }
    & .mk-news-ticker-items a {
      padding-block: 0.375rem;
    }
  }

  /* sizes */
  .mk-news-ticker[data-size="sm"] {
    font-size: 0.8125rem;
    & .mk-news-ticker-items a {
      padding-block: 0.375rem;
    }
    & .mk-news-ticker-label {
      padding-inline: 0.625rem;
      font-size: 0.6875rem;
    }
  }

  @keyframes mk-news-ticker-scroll {
    to {
      translate: -50% 0;
    }
  }
  @keyframes mk-news-ticker-pulse {
    50% {
      opacity: 0.3;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-news-ticker {
      & .mk-news-ticker-viewport {
        overflow-x: auto;
        mask-image: none;
      }
      & .mk-news-ticker-track {
        animation: none;
      }
      & .mk-news-ticker-items[aria-hidden="true"] {
        display: none;
      }
      & .mk-news-ticker-label::before {
        animation: none;
      }
    }
  }

  @media (prefers-contrast: more) {
    .mk-news-ticker {
      border-color: var(--foreground);
    }
    .mk-news-ticker-items time {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-news-ticker-label {
      forced-color-adjust: none;
      background: Highlight;
      color: HighlightText;
    }
    .mk-news-ticker-items a {
      color: LinkText;
    }
  }
}

/* ── components/blog-header/blog-header.css ── */
/* -- Blog Header (website) ------------------------------------------
   Introduces a blog: eyebrow, title, editorial description, optional
   actions (subscribe, RSS) and the category chips - the current category
   marked with aria-current. Centered, or set on a banner surface. */

@layer components {
  .mk-blog-header {
    container: mk-blog-header / inline-size;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-blog-header-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 46rem;
  }

  .mk-blog-header-eyebrow {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
  }

  .mk-blog-header-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .mk-blog-header-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  .mk-blog-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* categories: chips, the current one filled */
  .mk-blog-header-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.3125rem 0.875rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--foreground);
      font-size: 0.8125rem;
      font-weight: 500;
      text-decoration: none;
      transition:
        background-color 120ms,
        border-color 120ms,
        color 120ms;

      &:hover {
        background: var(--accent);
        color: var(--accent-foreground);
      }
      &[aria-current] {
        border-color: var(--primary);
        background: var(--primary);
        color: var(--primary-foreground);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }
  }

  .mk-blog-header[data-align="center"] {
    align-items: center;
    text-align: center;

    & .mk-blog-header-copy {
      align-items: center;
    }
    & :is(.mk-blog-header-actions, .mk-blog-header-categories) {
      justify-content: center;
    }
  }

  /* banner: the header on a muted surface */
  .mk-blog-header[data-variant="banner"] {
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(120% 140% at 0% 0%, color-mix(in oklch, var(--primary) 14%, transparent), transparent 60%),
      var(--muted);
  }

  /* a count inside a category chip */
  .mk-blog-header-categories a .mk-blog-header-count {
    padding: 0 0.375rem;
    border-radius: 999px;
    background: color-mix(in oklch, currentColor 12%, transparent);
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
  }

  /* a toolbar row: search on the left, view / sort on the right */
  .mk-blog-header-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--border);
  }

  /* an inline subscribe form: email + button */
  .mk-blog-header-subscribe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 26rem;

    & .input {
      flex: 1 1 12rem;
    }
  }

  /* split: the copy beside a featured image */
  .mk-blog-header[data-variant="split"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    align-items: center;
    gap: 2rem;
  }
  .mk-blog-header-media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);
    box-shadow: var(--shadow-lg);
    rotate: 1.5deg;

    & img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }
  }

  /* editorial: a serif masthead, centered between ornaments */
  .mk-blog-header[data-variant="editorial"] {
    align-items: center;
    text-align: center;

    & .mk-blog-header-copy {
      align-items: center;
    }
    & .mk-blog-header-eyebrow {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: var(--muted-foreground);
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;

      &::before,
      &::after {
        content: "";
        width: 2.5rem;
        height: 1px;
        background: currentColor;
      }
    }
    & .mk-blog-header-title {
      font-family: var(--font-serif);
      font-weight: 700;
      font-style: italic;
      letter-spacing: -0.01em;
    }
    & .mk-blog-header-categories {
      justify-content: center;
    }
    & .mk-blog-header-categories a {
      border: 0;
      border-radius: 0;
      padding-inline: 0.25rem;
    }
    & .mk-blog-header-categories a[aria-current] {
      background: transparent;
      color: var(--foreground);
      box-shadow: inset 0 -2px var(--primary);
    }
  }

  @container mk-blog-header (min-width: 48rem) {
    .mk-blog-header-title {
      font-size: 3rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-blog-header-categories a {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-blog-header-desc {
      color: var(--foreground);
    }
    .mk-blog-header-categories a {
      border-color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-blog-header-categories a[aria-current] {
      forced-color-adjust: none;
      background: Highlight;
      color: HighlightText;
      border-color: Highlight;
    }
  }
}

/* ── components/blog-item/blog-item.css ── */
/* -- Blog Item (website) --------------------------------------------
   Previews one post: image, category + read time, the title (its link
   stretches over the whole item), a clamped excerpt and the byline (Avatar).
   Default: a vertical card; horizontal: image beside the copy; featured:
   the copy laid over the image. */

@layer components {
  .mk-blog-item {
    container: mk-blog-item / inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
    color: var(--foreground);

    &:has(.mk-blog-item-title a:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 4px;
      border-radius: var(--radius-lg);
    }
  }

  .mk-blog-item-media {
    aspect-ratio: 3 / 2;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--muted);

    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: scale 300ms ease;
    }
  }
  .mk-blog-item:hover .mk-blog-item-media img {
    scale: 1.03;
  }

  .mk-blog-item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
  }

  .mk-blog-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }

  .mk-blog-item-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-wrap: balance;

    & a {
      color: inherit;
      text-decoration: none;
      outline: none;

      &::after {
        content: "";
        position: absolute;
        inset: 0;
      }
    }
  }

  .mk-blog-item-excerpt {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mk-blog-item-byline {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-block-start: auto;
    padding-block-start: 0.5rem;
    font-size: 0.8125rem;
  }

  .mk-blog-item-author {
    font-weight: 500;
  }
  .mk-blog-item-date {
    color: var(--muted-foreground);
  }

  /* horizontal: image beside the copy - the row wraps (image above) once
     the copy would drop under 18rem; no query needed */
  .mk-blog-item[data-variant="horizontal"] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.5rem;

    & .mk-blog-item-media {
      flex: 1 1 14rem;
      max-width: 100%;
    }
    & .mk-blog-item-body {
      flex: 999 1 18rem;
    }
  }

  /* featured: the copy over the image, on a darkening gradient */
  .mk-blog-item[data-variant="featured"] {
    justify-content: flex-end;
    isolation: isolate;
    min-height: 24rem;
    padding: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #0b0b0f;
    color: #fff;

    & .mk-blog-item-media {
      position: absolute;
      inset: 0;
      z-index: -1;
      aspect-ratio: auto;
      border-radius: 0;

      &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.35) 55%, transparent);
      }
    }
    & .mk-blog-item-body {
      flex: none;
      max-width: 40rem;
    }
    & .mk-blog-item-title {
      font-size: 1.75rem;
    }
    & :is(.mk-blog-item-meta, .mk-blog-item-excerpt, .mk-blog-item-date) {
      color: rgb(255 255 255 / 0.8);
    }
  }
  @container mk-blog-item (min-width: 40rem) {
    .mk-blog-item[data-variant="featured"] .mk-blog-item-title {
      font-size: 2.25rem;
    }
  }

  /* tags under the excerpt, actions on the image (a bookmark Swap…): raised
     above the stretched link so they stay clickable */
  .mk-blog-item-tags {
    position: relative;
    z-index: 1;

    & a {
      text-decoration: none;
    }
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  .mk-blog-item-actions {
    position: absolute;
    inset-block-start: 0.625rem;
    inset-inline-end: 0.625rem;
    z-index: 1;
    display: flex;
    gap: 0.25rem;

    & .swap,
    & .btn {
      border-radius: 999px;
      background: color-mix(in oklch, var(--background) 85%, transparent);
      backdrop-filter: blur(6px);
      box-shadow: var(--shadow-sm);
    }
  }

  /* card: on a card surface, lifted on hover */
  .mk-blog-item[data-variant="card"] {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    transition:
      translate 200ms ease,
      box-shadow 200ms ease;

    &:hover {
      translate: 0 -3px;
      box-shadow: var(--shadow-lg);
    }
    & .mk-blog-item-media {
      border-radius: 0;
    }
    & .mk-blog-item-body {
      padding: 1.125rem 1.25rem 1.25rem;
    }
    & .mk-blog-item-byline {
      padding-block-start: 0.75rem;
      margin-block-start: auto;
      border-block-start: 1px solid var(--border);
    }
  }

  /* minimal: typographic - the date in a column, no image */
  .mk-blog-item[data-variant="minimal"] {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    gap: 0 1.5rem;
    padding-block: 1.25rem;
    border-block-end: 1px solid var(--border);

    & .mk-blog-item-media {
      display: none;
    }
    & .mk-blog-item-body {
      display: contents;
    }
    & .mk-blog-item-byline {
      grid-column: 1;
      grid-row: 1 / span 3;
      flex-direction: column;
      align-items: flex-start;
      gap: 0.125rem;
      padding: 0.25rem 0 0;
      margin: 0;
    }
    & :is(.mk-blog-item-byline .avatar, .mk-blog-item-author) {
      display: none;
    }
    & :is(.mk-blog-item-meta, .mk-blog-item-title, .mk-blog-item-excerpt, .mk-blog-item-tags) {
      grid-column: 2;
    }
    & .mk-blog-item-title {
      font-size: 1.375rem;
    }
    &:hover .mk-blog-item-title {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
  }

  /* quote: a post that leads with a pull quote */
  .mk-blog-item[data-variant="quote"] {
    justify-content: space-between;
    min-height: 16rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--primary);
    color: var(--primary-foreground);

    & .mk-blog-item-media {
      display: none;
    }
    & .mk-blog-item-title {
      font-family: var(--font-serif);
      font-size: 1.5rem;
      font-weight: 600;
      line-height: 1.3;

      &::before {
        content: "“";
        display: block;
        font-size: 3rem;
        line-height: 0.6;
        opacity: 0.5;
      }
    }
    & :is(.mk-blog-item-meta, .mk-blog-item-excerpt, .mk-blog-item-date) {
      color: color-mix(in oklch, var(--primary-foreground) 75%, transparent);
    }
    & .mk-blog-item-meta .badge {
      background: color-mix(in oklch, var(--primary-foreground) 15%, transparent);
      color: inherit;
    }
  }

  /* podcast: a square cover beside the copy, a player under it */
  .mk-blog-item[data-variant="podcast"] {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0 1.25rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);

    & .mk-blog-item-media {
      aspect-ratio: 1;
      border-radius: var(--radius-md);
    }
    & .mk-blog-item-excerpt {
      -webkit-line-clamp: 2;
    }
    & .mk-blog-item-byline {
      padding-block-start: 0.25rem;
    }
  }
  .mk-blog-item-player {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    width: 100%;
    height: 2.5rem;
    margin-block-start: 0.875rem;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-blog-item-media img {
      transition: none;
    }
    .mk-blog-item:hover .mk-blog-item-media img {
      scale: none;
    }
    .mk-blog-item[data-variant="card"] {
      transition: none;
    }
    .mk-blog-item[data-variant="card"]:hover {
      translate: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-blog-item-excerpt,
    .mk-blog-item-meta {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-blog-item-title a {
      color: LinkText;
    }
    .mk-blog-item[data-variant="featured"] {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/archive-index/archive-index.css ── */
/* -- Archive Index (website) ----------------------------------------
   Links to content grouped by year and month. Each year is a native
   <details> disclosure (name= makes them exclusive), its months a list of
   links with post counts. columns: every year open, side by side. */

@layer components {
  .mk-archive-index {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-sizing: border-box;
    width: 100%;
    font-size: 0.875rem;
  }

  .mk-archive-index-title {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-foreground);
  }

  .mk-archive-index-year {
    interpolate-size: allow-keywords;
    border-block-end: 1px solid var(--border);

    &::details-content {
      block-size: 0;
      overflow: clip;
      transition:
        block-size 200ms ease,
        content-visibility 200ms allow-discrete;
    }
    &[open]::details-content {
      block-size: auto;
    }

    & > summary {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding-block: 0.625rem;
      font-weight: 600;
      cursor: pointer;
      list-style: none;

      &::-webkit-details-marker {
        display: none;
      }
      &::after {
        content: "";
        width: 0.4375rem;
        height: 0.4375rem;
        margin-inline-start: 0.25rem;
        border-inline-end: 1.5px solid currentColor;
        border-block-end: 1.5px solid currentColor;
        rotate: -45deg;
        opacity: 0.6;
        transition: rotate 200ms ease;
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
        border-radius: var(--radius-sm);
      }
    }
    &[open] > summary::after {
      rotate: 45deg;
    }

    & ul {
      display: flex;
      flex-direction: column;
      margin: 0;
      padding: 0 0 0.5rem;
      list-style: none;
    }

    & li {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    & li a {
      flex: 1;
      padding: 0.3125rem 0.5rem;
      margin-inline-start: -0.5rem;
      border-radius: var(--radius-sm);
      color: var(--muted-foreground);
      text-decoration: none;

      &:hover {
        background: var(--accent);
        color: var(--accent-foreground);
      }
      &[aria-current] {
        color: var(--foreground);
        font-weight: 500;
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 0;
      }
    }
  }

  /* the year's count sits after its label; a month's at the row end */
  .mk-archive-index-count {
    margin-inline-start: auto;
    min-width: 1.5rem;
    padding: 0.0625rem 0.4375rem;
    border-radius: 999px;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    text-align: center;
  }
  .mk-archive-index-year > summary .mk-archive-index-count {
    order: 1;
    margin-inline-start: auto;
  }
  .mk-archive-index-year > summary::after {
    order: 2;
  }

  /* columns: the years side by side, each list open */
  .mk-archive-index[data-variant="columns"] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1rem 2rem;

    & .mk-archive-index-title {
      grid-column: 1 / -1;
    }
    & .mk-archive-index-year {
      border-block-end: 0;
      border-block-start: 2px solid var(--foreground);
    }
  }

  /* calendar: each year a 6 × 2 grid of months, shaded by how much was
     published (data-level 0-4 on the link, like a contribution graph) */
  .mk-archive-index[data-variant="calendar"] {
    gap: 1rem;

    & .mk-archive-index-year {
      border: 0;
    }
    & .mk-archive-index-year > summary::after {
      display: none;
    }
    & .mk-archive-index-year > summary {
      cursor: default;
      pointer-events: none;
      padding-block: 0 0.375rem;
    }
    & .mk-archive-index-year ul {
      display: grid;
      grid-template-columns: repeat(6, minmax(0, 1fr));
      gap: 0.375rem;
      padding: 0;
    }
    & .mk-archive-index-year li {
      flex-direction: column;
      gap: 0.125rem;
    }
    & .mk-archive-index-year li a {
      --_level: 0%;

      display: grid;
      place-items: center;
      width: 100%;
      aspect-ratio: 1.4;
      margin: 0;
      padding: 0;
      border-radius: var(--radius-md);
      background: color-mix(in oklch, var(--primary) var(--_level), var(--muted));
      color: var(--foreground);
      font-size: 0.75rem;
      font-weight: 500;

      &[data-level="1"] {
        --_level: 20%;
      }
      &[data-level="2"] {
        --_level: 40%;
      }
      &[data-level="3"] {
        --_level: 65%;
        color: var(--primary-foreground);
      }
      &[data-level="4"] {
        --_level: 90%;
        color: var(--primary-foreground);
      }
      &:hover {
        outline: 2px solid var(--ring);
        outline-offset: 1px;
        background: color-mix(in oklch, var(--primary) var(--_level), var(--muted));
      }
    }
    & .mk-archive-index-year li .mk-archive-index-count {
      margin: 0;
      padding: 0;
      background: none;
      min-width: 0;
      font-size: 0.6875rem;
    }
  }

  /* a legend under the calendar */
  .mk-archive-index-legend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.6875rem;

    & i {
      width: 0.75rem;
      height: 0.75rem;
      border-radius: 3px;
      background: var(--muted);
    }
    & i:nth-of-type(2) {
      background: color-mix(in oklch, var(--primary) 20%, var(--muted));
    }
    & i:nth-of-type(3) {
      background: color-mix(in oklch, var(--primary) 40%, var(--muted));
    }
    & i:nth-of-type(4) {
      background: color-mix(in oklch, var(--primary) 65%, var(--muted));
    }
    & i:nth-of-type(5) {
      background: color-mix(in oklch, var(--primary) 90%, var(--muted));
    }
  }

  /* tags: a cloud - data-weight 1-5 scales a tag */
  .mk-archive-index-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & a {
      color: var(--foreground);
      font-size: calc(0.75rem + (var(--_w, 1) - 1) * 0.25rem);
      font-weight: calc(400 + (var(--_w, 1) - 1) * 75);
      line-height: 1.3;
      text-decoration: none;

      &[data-weight="2"] {
        --_w: 2;
      }
      &[data-weight="3"] {
        --_w: 3;
      }
      &[data-weight="4"] {
        --_w: 4;
      }
      &[data-weight="5"] {
        --_w: 5;
        color: var(--primary);
      }
      &:hover {
        text-decoration: underline;
        text-underline-offset: 0.2em;
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
        border-radius: var(--radius-sm);
      }
    }
    & sup {
      color: var(--muted-foreground);
      font-size: 0.625rem;
      font-weight: 400;
      margin-inline-start: 0.125rem;
    }
  }

  /* month chips - pill links with their counts (inside a Timeline entry,
     a card, anywhere a compact month list fits) */
  .mk-archive-index-months {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;

    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.25rem 0.375rem 0.25rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--background);
      color: var(--foreground);
      font-size: 0.8125rem;
      font-weight: 500;
      text-decoration: none;
      transition:
        background-color 120ms,
        border-color 120ms;

      &:hover {
        border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
        background: var(--accent);
      }
      &[aria-current] {
        border-color: var(--primary);
        background: var(--primary);
        color: var(--primary-foreground);
      }
      &[aria-current] .mk-archive-index-count {
        background: color-mix(in oklch, var(--primary-foreground) 20%, transparent);
        color: inherit;
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }
    & .mk-archive-index-count {
      margin: 0;
    }
  }

  /* the year's highlight under the chips: "Most read: …" */
  .mk-archive-index-pick {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    margin-block-start: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;

    & a {
      color: var(--foreground);
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-archive-index-year::details-content,
    .mk-archive-index-year > summary::after {
      transition: none;
    }
    .mk-archive-index-months a {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-archive-index-year li a,
    .mk-archive-index-count {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-archive-index-year li a {
      color: LinkText;
    }
    .mk-archive-index-count {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/article-header/article-header.css ── */
/* -- Article Header (website) ---------------------------------------
   Presents an article: category, the title (h1), a subtitle, the byline
   (Avatar, author link, date, read time) and an optional lead image with
   its caption. Centered, or as a cover - the copy over the image. */

@layer components {
  .mk-article-header {
    container: mk-article-header / inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 52rem;
    margin-inline: auto;
    padding-inline: 1.25rem;
  }

  .mk-article-header-category {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  .mk-article-header-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .mk-article-header-subtitle {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1.1875rem;
    line-height: 1.5;
    text-wrap: pretty;
  }

  .mk-article-header-byline {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-block-start: 0.5rem;
    font-size: 0.875rem;
  }

  .mk-article-header-author {
    color: var(--foreground);
    font-weight: 600;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  /* date · read time · … - dots between the parts */
  .mk-article-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    color: var(--muted-foreground);

    & > * + *::before {
      content: "·";
      margin-inline-end: 0.5rem;
    }
  }

  .mk-article-header-media {
    width: 100%;
    margin: 1rem 0 0;

    & img {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
      border-radius: var(--radius-lg);
      background: var(--muted);
    }
    & figcaption {
      margin-block-start: 0.5rem;
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }

  /* tags (Badges) and actions (listen, save, share) - each a row */
  .mk-article-header-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  .mk-article-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    margin-inline-start: auto;
  }
  /* the byline grows to hold actions at its end */
  .mk-article-header-byline:has(.mk-article-header-actions) {
    align-self: stretch;
    flex-wrap: wrap;
  }

  /* a series line: "Part 2 of 4" + a Progress bar */
  .mk-article-header-series {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;

    & .progress {
      width: 8rem;
    }
    & strong {
      color: var(--foreground);
      font-weight: 600;
    }
  }

  @container mk-article-header (min-width: 40rem) {
    .mk-article-header-title {
      font-size: 3rem;
    }
  }

  /* split: the copy beside the image (wraps under it when narrow) */
  .mk-article-header[data-variant="split"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    align-items: center;
    gap: 1rem 2.5rem;
    max-width: 80rem;

    & > :not(.mk-article-header-media) {
      grid-column: 1;
    }
    & .mk-article-header-media {
      grid-column: -2;
      grid-row: 1 / span 6;
      margin: 0;
    }
    & .mk-article-header-media img {
      aspect-ratio: 4 / 5;
    }
  }

  /* one column: the image follows the copy */
  @container mk-article-header (max-width: 47rem) {
    .mk-article-header[data-variant="split"] .mk-article-header-media {
      grid-row: auto;
    }
  }

  /* editorial: serif, centered, an ornament and an italic subtitle */
  .mk-article-header[data-variant="editorial"] {
    align-items: center;
    text-align: center;

    & .mk-article-header-category {
      color: var(--muted-foreground);
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }
    & .mk-article-header-title {
      font-family: var(--font-serif);
      font-weight: 700;
      letter-spacing: -0.015em;
    }
    & .mk-article-header-subtitle {
      font-family: var(--font-serif);
      font-style: italic;
    }
    & .mk-article-header-byline::before,
    & .mk-article-header-byline::after {
      content: "";
      width: 2rem;
      height: 1px;
      background: var(--border);
    }
  }

  .mk-article-header[data-align="center"] {
    align-items: center;
    text-align: center;
  }

  /* cover: the image fills the header, the copy sits on it */
  .mk-article-header[data-variant="cover"] {
    justify-content: flex-end;
    max-width: 80rem;
    min-height: 26rem;
    padding: 2rem 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #0b0b0f;
    color: #fff;

    & .mk-article-header-media {
      position: absolute;
      inset: 0;
      margin: 0;

      & img {
        height: 100%;
        aspect-ratio: auto;
        border-radius: 0;
      }
      & figcaption {
        position: absolute;
        inset-block-start: 0.75rem;
        inset-inline-end: 1rem;
        margin: 0;
        color: rgb(255 255 255 / 0.75);
        font-size: 0.75rem;
      }
      &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgb(0 0 0 / 0.85), rgb(0 0 0 / 0.3) 60%, rgb(0 0 0 / 0.15));
      }
    }
    & > :not(.mk-article-header-media) {
      position: relative;
      z-index: 1;
      max-width: 44rem;
    }
    & :is(.mk-article-header-subtitle, .mk-article-header-meta) {
      color: rgb(255 255 255 / 0.82);
    }
    & :is(.mk-article-header-category, .mk-article-header-author) {
      color: #fff;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-contrast: more) {
    .mk-article-header-subtitle,
    .mk-article-header-meta {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-article-header[data-variant="cover"] {
      border: 1px solid CanvasText;
    }
    .mk-article-header-media::after {
      display: none;
    }
  }
}

/* ── components/article-body/article-body.css ── */
/* -- Article Body (website) -----------------------------------------
   Renders an article's formatted text. Plain elements - what a CMS or a
   Markdown renderer emits - are styled without classes; library components
   dropped into the text (.mockup-code, .table, .alert, .image, .kbd,
   .heading-anchor, .toc…) keep their own look, because the prose rules only
   reach class-less elements. Adds a lead, pull quotes, footnotes, a table of
   contents layout and a reading-progress bar. */

@layer components {
  .mk-article-body {
    --_measure: 42rem;

    box-sizing: border-box;
    width: 100%;
    max-width: var(--_measure);
    margin-inline: auto;
    padding-inline: 1.25rem;
    color: var(--foreground);
    font-size: 1.0625rem;
    line-height: 1.75;
    hanging-punctuation: first last;
    overflow-wrap: break-word;

    & > * {
      margin-block: 0;
    }
    & > * + * {
      margin-block-start: 1.25em;
    }

    & :is(h2, h3, h4) {
      line-height: 1.25;
      letter-spacing: -0.02em;
      text-wrap: balance;
      scroll-margin-block-start: 5rem;
    }
    & > h2 {
      margin-block-start: 2em;
      font-size: 1.625em;
      font-weight: 700;
    }
    & > h3 {
      margin-block-start: 1.75em;
      font-size: 1.25em;
      font-weight: 600;
    }
    & > h4 {
      margin-block-start: 1.5em;
      font-size: 1em;
      font-weight: 600;
    }
    & > :is(h2, h3, h4) + * {
      margin-block-start: 0.75em;
    }

    & p {
      text-wrap: pretty;
    }

    /* prose links - links with a class are components (heading anchors, buttons…) */
    & a:not([class]) {
      color: var(--primary);
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 0.2em;

      &:hover {
        text-decoration-thickness: 2px;
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
        border-radius: 2px;
      }
    }

    & :is(strong, b) {
      font-weight: 650;
    }

    & > :is(ul, ol) {
      padding-inline-start: 1.5em;
    }
    & > :is(ul, ol) li + li {
      margin-block-start: 0.4em;
    }
    & > :is(ul, ol) li::marker {
      color: var(--muted-foreground);
    }

    & > dl {
      display: grid;
      grid-template-columns: max-content 1fr;
      gap: 0.5em 1.25em;

      & dt {
        font-weight: 600;
      }
      & dd {
        margin: 0;
        color: var(--muted-foreground);
      }
    }

    & > blockquote:not([class]) {
      margin-inline: 0;
      padding-inline-start: 1.25em;
      border-inline-start: 3px solid var(--primary);
      font-size: 1.125em;
      font-style: italic;

      & p {
        margin: 0;
      }
      & cite {
        display: block;
        margin-block-start: 0.5em;
        color: var(--muted-foreground);
        font-size: 0.8em;
        font-style: normal;

        &::before {
          content: "- ";
        }
      }
    }

    & :not(pre) > code:not([class]) {
      padding: 0.125em 0.375em;
      border-radius: var(--radius-sm);
      background: var(--muted);
      font-family: var(--font-mono);
      font-size: 0.875em;
    }

    /* a bare <pre>; a .mockup-code brings its own window */
    & > pre {
      padding: 1em 1.25em;
      overflow-x: auto;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--muted);
      font-family: var(--font-mono);
      font-size: 0.875em;
      line-height: 1.6;
      tab-size: 2;
    }

    & > hr {
      height: 1px;
      margin-block: 2.5em;
      border: 0;
      background: var(--border);
    }

    & figure:not([class]) {
      margin-inline: 0;

      & :is(img, video) {
        display: block;
        width: 100%;
        height: auto;
        border-radius: var(--radius-lg);
      }
      & figcaption {
        margin-block-start: 0.625em;
        color: var(--muted-foreground);
        font-size: 0.8125em;
        text-align: center;
      }
    }
    & > :is(img, video) {
      display: block;
      width: 100%;
      height: auto;
      border-radius: var(--radius-lg);
    }

    /* embeds (YouTube, maps…): 16:9 unless the iframe says otherwise */
    & iframe {
      display: block;
      width: 100%;
      height: auto;
      aspect-ratio: 16 / 9;
      border: 0;
      border-radius: var(--radius-lg);
      background: var(--muted);
    }

    /* a bare table; a .table (in its .table-container) is the component */
    & > table {
      display: block;
      width: 100%;
      overflow-x: auto;
      border-collapse: collapse;
      font-size: 0.875em;
      line-height: 1.5;

      & :is(th, td) {
        padding: 0.5em 0.75em;
        border-block-end: 1px solid var(--border);
        text-align: start;
      }
      & th {
        color: var(--muted-foreground);
        font-weight: 600;
      }
    }

    & kbd:not([class]) {
      padding: 0.0625em 0.375em;
      border: 1px solid var(--border);
      border-block-end-width: 2px;
      border-radius: var(--radius-sm);
      font-family: var(--font-mono);
      font-size: 0.8em;
    }

    & mark {
      padding-inline: 0.125em;
      border-radius: 2px;
      background: color-mix(in oklch, var(--primary) 22%, transparent);
      color: inherit;
    }
    & abbr[title] {
      text-decoration: underline dotted;
      text-underline-offset: 0.2em;
      cursor: help;
    }
    & :is(del, s) {
      color: var(--muted-foreground);
    }
    & ins {
      text-decoration: none;
      background: color-mix(in oklch, oklch(0.72 0.17 150) 22%, transparent);
    }

    /* the library components inside the text */
    & > :is(.mockup-code, .table-container, .alert, .image, .mk-article-body-pullquote) {
      margin-block-start: 1.75em;
    }
    & > :is(.mockup-code, .table-container, .alert, .image) + * {
      margin-block-start: 1.75em;
    }
    & .heading-anchor {
      --heading-anchor-gap: 0.25em;
    }
  }

  /* the opening paragraph, larger */
  .mk-article-body-lead {
    color: var(--muted-foreground);
    font-size: 1.25em;
    line-height: 1.6;
  }

  /* a callout box inside the text */
  .mk-article-body-note {
    padding: 1em 1.25em;
    border: 1px solid var(--border);
    border-inline-start: 3px solid var(--primary);
    border-radius: var(--radius-md);
    background: color-mix(in oklch, var(--muted) 60%, transparent);
    font-size: 0.9375em;

    & > :first-child {
      margin-block-start: 0;
    }
    & > :last-child {
      margin-block-end: 0;
    }
  }

  /* a pull quote - set large between rules, the line repeated from the text */
  .mk-article-body-pullquote {
    margin-inline: 0;
    padding-block: 0.75em;
    border-block: 1px solid var(--border);
    font-family: var(--font-serif);
    font-size: 1.5em;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;

    &::before {
      content: "“";
      display: block;
      color: var(--primary);
      font-size: 2em;
      line-height: 0.5;
    }
  }

  /* footnotes: numbered refs jump to the notes, the notes jump back */
  .mk-article-body-ref {
    font-size: 0.75em;
    line-height: 0;
    vertical-align: super;

    & a {
      padding-inline: 0.125em;
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
      border-radius: 2px;
    }
  }
  .mk-article-body-footnotes {
    padding-block-start: 1em;
    border-block-start: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.875em;

    & ol {
      margin: 0;
      padding-inline-start: 1.25em;
    }
    & li {
      padding: 0.25em 0.5em;
      margin-inline-start: -0.5em;
      border-radius: var(--radius-sm);
      scroll-margin-block-start: 5rem;
    }
    & li:target {
      background: color-mix(in oklch, var(--primary) 12%, transparent);
      color: var(--foreground);
    }
    & a[href^="#"] {
      color: var(--primary);
      text-decoration: none;
    }
  }

  /* a wider figure than the measure (it stays inside the viewport) */
  .mk-article-body > .mk-article-body-wide {
    width: min(100vw - 2.5rem, var(--_measure) + 16rem);
    margin-inline: calc((100% - min(100vw - 2.5rem, var(--_measure) + 16rem)) / 2);
  }

  /* the text beside a sticky table of contents (the .toc component) */
  .mk-article-body-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 64rem;
    margin-inline: auto;

    & > .toc {
      display: none;
    }
    & > .mk-article-body {
      margin-inline: 0;
    }
  }
  @media (min-width: 56rem) {
    .mk-article-body-layout {
      grid-template-columns: 12rem minmax(0, 1fr);

      & > .toc {
        display: block;
        position: sticky;
        inset-block-start: 1rem;
        align-self: start;
      }
    }
  }

  /* a reading-progress bar - driven by the scroll of the nearest scroller */
  .mk-article-body-progress {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    height: 3px;
    margin-block-end: 1rem;
    background: var(--primary);
    transform-origin: left;
    scale: 0 1;
    animation: mk-article-body-read linear both;
  }
  /* the timeline in its own rule: a minifier must not fold it into the
     `animation` shorthand (where it is reset-only - the declaration would be
     dropped); unsupported, the bar hides */
  @supports (animation-timeline: scroll()) {
    .mk-article-body-progress {
      animation-timeline: scroll(nearest block);
    }
  }
  @supports not (animation-timeline: scroll()) {
    .mk-article-body-progress {
      display: none;
    }
  }

  /* serif: an editorial voice for the running text */
  .mk-article-body[data-variant="serif"] {
    font-family: var(--font-serif);
    font-size: 1.1875rem;

    & :is(h2, h3, h4) {
      font-family: var(--font-sans);
    }
  }

  /* sizes */
  .mk-article-body[data-size="sm"] {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  .mk-article-body[data-size="lg"] {
    font-size: 1.1875rem;
    --_measure: 46rem;
  }

  /* a drop cap opens the first paragraph */
  .mk-article-body[data-dropcap] > p:first-of-type::first-letter {
    float: inline-start;
    margin: 0.06em 0.12em 0 0;
    font-family: var(--font-serif);
    font-size: 3.6em;
    font-weight: 700;
    line-height: 0.8;
    color: var(--primary);
  }

  @keyframes mk-article-body-read {
    to {
      scale: 1 1;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-article-body-progress {
      animation: none;
      display: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-article-body :is(blockquote cite, figcaption),
    .mk-article-body-lead,
    .mk-article-body-footnotes {
      color: var(--foreground);
    }
    .mk-article-body li::marker {
      color: var(--foreground);
    }
    .mk-article-body a:not([class]) {
      text-decoration-thickness: 2px;
    }
  }

  @media (forced-colors: active) {
    .mk-article-body a:not([class]) {
      color: LinkText;
    }
    .mk-article-body :not(pre) > code:not([class]),
    .mk-article-body > pre {
      border: 1px solid CanvasText;
    }
    .mk-article-body-progress {
      background: Highlight;
    }
  }
}

/* ── components/author-bio/author-bio.css ── */
/* -- Author Bio (website) -------------------------------------------
   Introduces one author: portrait (Avatar), a label, the name (linking to
   the author page), role, biography and links (icon buttons). Default: a
   row between rules; card: on a surface; centered: a profile stack. */

@layer components {
  /* the body wraps under the portrait when the row is too narrow for both */
  .mk-author-bio {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.25rem;
    box-sizing: border-box;
    width: 100%;
    padding-block: 1.5rem;
    border-block: 1px solid var(--border);

    & > .avatar {
      flex: none;
    }
  }

  .mk-author-bio-body {
    display: flex;
    flex: 1 1 16rem;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
  }

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

  .mk-author-bio-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;

    & a {
      color: inherit;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
        text-underline-offset: 0.2em;
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
        border-radius: var(--radius-sm);
      }
    }
  }

  .mk-author-bio-role {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }

  .mk-author-bio-text {
    margin: 0.5rem 0 0;
    max-width: 40rem;
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  .mk-author-bio-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0.5rem 0 0 -0.375rem;
    padding: 0;
    list-style: none;
  }

  /* card: the bio on a surface */
  /* card: a raised profile card - a primary wash from the corner, a shadow,
     the portrait ringed in the primary colour (sidebars, author pages) */
  .mk-author-bio[data-variant="card"] {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background:
      radial-gradient(90% 120% at 0% 0%, color-mix(in oklch, var(--primary) 10%, transparent), transparent 60%),
      var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-lg);

    & > .avatar {
      box-shadow:
        0 0 0 3px var(--card),
        0 0 0 5px var(--primary);
    }
    & .mk-author-bio-label {
      color: var(--primary);
    }
  }

  /* topics the author writes about (Badges) */
  .mk-author-bio-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-block-start: 0.75rem;
  }

  /* centered: a profile stack - portrait on top */
  .mk-author-bio[data-variant="centered"] {
    flex-direction: column;
    align-items: center;
    border-block: 0;
    text-align: center;

    & .mk-author-bio-body {
      align-items: center;
    }
    & .mk-author-bio-links {
      justify-content: center;
      margin-inline: 0;
    }
  }

  /* a row of Statistics (articles, readers, since) */
  .mk-author-bio-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.75rem;
    margin-block-start: 0.75rem;

    & .statistic {
      gap: 0;
    }
    & .statistic-value {
      font-size: 1.125rem;
    }
  }

  /* actions: follow / message */
  .mk-author-bio-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block-start: 0.75rem;
  }

  /* cover: a banner image on top, the portrait overlapping it */
  .mk-author-bio[data-variant="cover"] {
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);

    & .mk-author-bio-cover {
      width: 100%;
      height: 7rem;
      margin: 0;
      object-fit: cover;
      background: var(--muted);
    }
    & > .avatar {
      margin: -2.5rem 0 0 1.5rem;
      box-shadow: 0 0 0 4px var(--card);
    }
    & .mk-author-bio-body {
      padding: 0.75rem 1.5rem 1.5rem;
    }
  }

  /* inline: a compact byline - one row, small portrait */
  .mk-author-bio[data-variant="inline"] {
    align-items: center;
    gap: 0.75rem;
    padding-block: 0.75rem;

    & .mk-author-bio-body {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: baseline;
      gap: 0 0.5rem;
      flex: 1;
    }
    & .mk-author-bio-name {
      font-size: 0.9375rem;
    }
    & :is(.mk-author-bio-label, .mk-author-bio-role) {
      font-size: 0.8125rem;
      text-transform: none;
      letter-spacing: 0;
      font-weight: 400;
    }
    & :is(.mk-author-bio-text, .mk-author-bio-links, .mk-author-bio-stats) {
      display: none;
    }
    & .mk-author-bio-actions {
      margin: 0;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-contrast: more) {
    .mk-author-bio-role,
    .mk-author-bio-label {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-author-bio[data-variant="card"] {
      border-color: CanvasText;
    }
  }
}

/* ── components/author-list/author-list.css ── */
/* -- Author List (website) ------------------------------------------
   Lists the contributors of a publication or article: avatar, name (a
   link), role and an optional count. Default: rows; grid: cards; stack:
   overlapping avatars with a one-line summary - the names stay in the
   accessibility tree, visually hidden. */

@layer components {
  .mk-author-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-sizing: border-box;
    width: 100%;
  }

  .mk-author-list-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-foreground);
  }

  .mk-author-list-items {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mk-author-list-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-block: 0.625rem;
    border-block-end: 1px solid var(--border);

    &:last-child {
      border-block-end: 0;
    }
    & > .avatar {
      flex: none;
    }
  }

  .mk-author-list-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mk-author-list-name {
    color: var(--foreground);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  .mk-author-list-role {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }

  .mk-author-list-count {
    margin-inline-start: auto;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .mk-author-list-summary {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }

  /* grid: contributor cards */
  .mk-author-list[data-variant="grid"] .mk-author-list-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
    gap: 0.75rem;
  }
  .mk-author-list[data-variant="grid"] .mk-author-list-item {
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
  }

  /* stack: overlapping avatars + a summary line */
  .mk-author-list[data-variant="stack"] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;

    & .mk-author-list-title {
      flex-basis: 100%;
    }
    & .mk-author-list-items {
      flex-direction: row;
      padding-inline-start: 0.5rem;
    }
    & .mk-author-list-item {
      padding: 0;
      border: 0;
      margin-inline-start: -0.5rem;
    }
    & .mk-author-list-item > .avatar {
      box-shadow: 0 0 0 2px var(--background);
    }
    /* the names stay readable to assistive tech */
    & :is(.mk-author-list-who, .mk-author-list-count) {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    & .mk-author-list-item:has(.mk-author-list-name:focus-visible) > .avatar {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  /* ranked: a leaderboard - the rank from data-rank, a Progress bar for the share */
  .mk-author-list[data-variant="ranked"] {
    & .mk-author-list-item {
      display: grid;
      grid-template-columns: 1.75rem auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.25rem 0.75rem;

      &::before {
        content: attr(data-rank);
        color: var(--muted-foreground);
        font-size: 0.875rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        text-align: center;
      }
      &[data-rank="1"]::before {
        content: "🥇";
        font-size: 1.125rem;
      }
      &[data-rank="2"]::before {
        content: "🥈";
        font-size: 1.125rem;
      }
      &[data-rank="3"]::before {
        content: "🥉";
        font-size: 1.125rem;
      }
    }
    & .progress {
      grid-column: 3 / -1;
      height: 0.375rem;
    }
  }

  /* the item's own action (follow) - at the row end */
  .mk-author-list-action {
    margin-inline-start: auto;
  }
  .mk-author-list-item:has(.mk-author-list-action) .mk-author-list-count {
    margin-inline-start: 0;
  }
  .mk-author-list[data-variant="grid"] .mk-author-list-item:has(.mk-author-list-action) {
    flex-wrap: wrap;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-contrast: more) {
    .mk-author-list-role,
    .mk-author-list-count,
    .mk-author-list-summary {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-author-list[data-variant="grid"] .mk-author-list-item {
      border-color: CanvasText;
    }
  }
}

/* ── components/related-item/related-item.css ── */
/* -- Related Item (website) -----------------------------------------
   Links to one related article or resource: a thumbnail, its kind, the
   title (the link stretches over the item) and meta. Default: a compact
   row; card: image above; text: no image, an arrow at the end. */

@layer components {
  .mk-related-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: var(--radius-lg);
    transition: background-color 120ms;

    &:hover {
      background: var(--accent);
    }
    &:has(.mk-related-item-title a:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 0;
    }
  }

  .mk-related-item-media {
    flex: none;
    width: 5rem;
    aspect-ratio: 1;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--muted);

    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .mk-related-item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.1875rem;
    min-width: 0;
  }

  .mk-related-item-kind {
    color: var(--primary);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mk-related-item-title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    & a {
      color: inherit;
      text-decoration: none;
      outline: none;

      &::after {
        content: "";
        position: absolute;
        inset: 0;
      }
    }
  }

  .mk-related-item-meta {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }

  /* the arrow of the text variant */
  .mk-related-item-arrow {
    flex: none;
    width: 1rem;
    height: 1rem;
    color: var(--muted-foreground);
    transition: translate 150ms ease;
  }
  .mk-related-item:hover .mk-related-item-arrow {
    translate: 0.25rem 0;
  }

  /* card: image above the copy */
  .mk-related-item[data-variant="card"] {
    flex-direction: column;
    align-items: stretch;

    & .mk-related-item-media {
      width: 100%;
      aspect-ratio: 16 / 9;
    }
  }

  /* text: no image, rules between the items */
  .mk-related-item[data-variant="text"] {
    margin: 0;
    padding: 0.75rem 0.25rem;
    border-block-end: 1px solid var(--border);
    border-radius: 0;

    &:hover {
      background: transparent;
    }
    &:hover .mk-related-item-title {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
  }

  /* a label on the thumbnail (duration, "Live") */
  .mk-related-item-media {
    position: relative;
  }
  .mk-related-item-badge {
    position: absolute;
    inset-block-end: 0.25rem;
    inset-inline-end: 0.25rem;
    padding: 0 0.3125rem;
    border-radius: var(--radius-sm);
    background: rgb(0 0 0 / 0.72);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
  }

  /* numbered: "read next" in order - the number from data-rank */
  .mk-related-item[data-variant="numbered"] {
    align-items: flex-start;

    &::before {
      content: attr(data-rank);
      flex: none;
      width: 1.75rem;
      color: var(--primary);
      font-size: 1.5rem;
      font-weight: 800;
      line-height: 1.1;
      font-variant-numeric: tabular-nums;
    }
    & .mk-related-item-media {
      display: none;
    }
  }

  /* overlay: the title over the image */
  .mk-related-item[data-variant="overlay"] {
    isolation: isolate;
    align-items: flex-end;
    min-height: 11rem;
    margin: 0;
    padding: 1rem;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #fff;

    &:hover {
      background: transparent;
    }
    & .mk-related-item-media {
      position: absolute;
      inset: 0;
      z-index: -1;
      width: auto;
      aspect-ratio: auto;
      border-radius: 0;

      & img {
        transition: scale 300ms ease;
      }
      &::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgb(0 0 0 / 0.85), transparent 70%);
      }
    }
    &:hover .mk-related-item-media img {
      scale: 1.05;
    }
    & :is(.mk-related-item-kind, .mk-related-item-meta) {
      color: rgb(255 255 255 / 0.8);
    }
    & .mk-related-item-badge {
      inset-block: 0.5rem auto;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-related-item,
    .mk-related-item-arrow {
      transition: none;
    }
    .mk-related-item:hover .mk-related-item-arrow {
      translate: none;
    }
    .mk-related-item-media img {
      transition: none;
    }
    .mk-related-item:hover .mk-related-item-media img {
      scale: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-related-item-meta {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-related-item-title a {
      color: LinkText;
    }
  }
}

/* ── components/share-links/share-links.css ── */
/* -- Share Links (website) ------------------------------------------
   Sharing actions for the current content: share-intent links (plain
   <a href>, no third-party script), mailto, and buttons for the page's own
   copy-link / native-share handlers - all Buttons. Default: a row of icon
   buttons; labeled: buttons with text; vertical: a rail beside an article. */

@layer components {
  .mk-share-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
  }

  .mk-share-links-label {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 500;
  }

  .mk-share-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & svg {
      flex: none;
    }
  }

  /* a confirmation next to the buttons (copy link) - an <output> */
  .mk-share-links-status {
    color: var(--muted-foreground);
    font-size: 0.8125rem;

    &:empty {
      display: none;
    }
  }

  /* vertical: a rail - sticky when the page sets a top */
  .mk-share-links[data-variant="vertical"] {
    flex-direction: column;
    align-items: center;
    width: max-content;

    & .mk-share-links-list {
      flex-direction: column;
    }
    & .mk-share-links-label {
      writing-mode: vertical-rl;
      rotate: 180deg;
    }
  }

  /* labeled: the buttons say what they do */
  .mk-share-links[data-variant="labeled"] .mk-share-links-list {
    gap: 0.5rem;
  }

  /* brand: each network in its own colour (data-network on the button) */
  .mk-share-links[data-variant="brand"] .mk-share-links-list .btn {
    border-color: transparent;
    color: #fff;

    &[data-network="x"] {
      background: #0f1419;
    }
    &[data-network="linkedin"] {
      background: #0a66c2;
    }
    &[data-network="bluesky"] {
      background: #1185fe;
    }
    &[data-network="mastodon"] {
      background: #6364ff;
    }
    &[data-network="email"],
    &[data-network="link"] {
      background: var(--foreground);
      color: var(--background);
    }
    &:hover {
      filter: brightness(1.12);
    }
  }

  /* pill: a floating toolbar - one rounded surface, the buttons inside */
  .mk-share-links[data-variant="pill"] {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.3125rem 0.3125rem 0.3125rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--popover);
    box-shadow: var(--shadow-lg);

    & .mk-share-links-list {
      gap: 0.125rem;
    }
    & .mk-share-links-list .btn {
      border-color: transparent;
      border-radius: 999px;
      background: transparent;
    }
    & .mk-share-links-list .btn:hover {
      background: var(--accent);
    }
  }

  /* the copy-the-URL field in a share popover: the URL + a copy button */
  .mk-share-links-url {
    display: flex;
    gap: 0.375rem;

    & .input {
      flex: 1;
      min-width: 0;
      font-family: var(--font-mono);
      font-size: 0.8125rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-contrast: more) {
    .mk-share-links-label,
    .mk-share-links-status {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-share-links-list svg {
      fill: currentColor;
    }
  }
}

/* ── components/article-navigation/article-navigation.css ── */
/* -- Article Navigation (website) -----------------------------------
   Links to the previous and next article (rel="prev" / rel="next"): a
   direction label and the title, the next link aligned to the end. A lone
   next link keeps its side. Default: two cards; minimal: text between rules. */

@layer components {
  .mk-article-nav {
    container: mk-article-nav / inline-size;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    box-sizing: border-box;
    width: 100%;
  }

  .mk-article-nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    color: var(--foreground);
    text-decoration: none;
    transition:
      border-color 120ms,
      background-color 120ms;

    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 35%, var(--border));
      background: var(--accent);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }

    &[rel~="next"] {
      align-items: flex-end;
      text-align: end;
    }
    /* only a next link: it stays on the end side */
    &[rel~="next"]:only-child {
      grid-column: 2;
    }
  }

  .mk-article-nav-dir {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 500;

    & svg {
      width: 1rem;
      height: 1rem;
      transition: translate 150ms ease;
    }
  }
  .mk-article-nav-link[rel~="prev"]:hover .mk-article-nav-dir svg {
    translate: -0.2rem 0;
  }
  .mk-article-nav-link[rel~="next"]:hover .mk-article-nav-dir svg {
    translate: 0.2rem 0;
  }

  .mk-article-nav-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
  }

  /* narrow: the links stack */
  @container mk-article-nav (max-width: 32rem) {
    .mk-article-nav > .mk-article-nav-link[rel] {
      grid-column: 1 / -1;
    }
  }

  /* media: a thumbnail on each card (start for prev, end for next) */
  .mk-article-nav[data-variant="media"] .mk-article-nav-link {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    align-items: start;
    gap: 0.25rem 1rem;
    padding: 0.75rem;

    & img {
      grid-row: 1 / span 2;
      width: 4.5rem;
      aspect-ratio: 1;
      border-radius: var(--radius-md);
      object-fit: cover;
      background: var(--muted);
    }
    &[rel~="next"] {
      grid-template-columns: minmax(0, 1fr) 4.5rem;
      justify-items: end;
    }
    &[rel~="next"] img {
      grid-column: 2;
      grid-row: 1 / span 2;
    }
    &[rel~="next"] :is(.mk-article-nav-dir, .mk-article-nav-title) {
      grid-column: 1;
    }
  }

  /* compact: two small pill links with the titles truncated */
  .mk-article-nav[data-variant="compact"] {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;

    & .mk-article-nav-link {
      flex-direction: row;
      align-items: center;
      gap: 0.5rem;
      max-width: 48%;
      padding: 0.375rem 0.875rem;
      border-radius: 999px;
    }
    & .mk-article-nav-link[rel~="next"]:only-child {
      margin-inline-start: auto;
    }
    & .mk-article-nav-title {
      overflow: hidden;
      font-size: 0.875rem;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    & .mk-article-nav-dir {
      flex: none;
    }
    & .mk-article-nav-dir span {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
  }

  /* minimal: no cards, a rule above */
  .mk-article-nav[data-variant="minimal"] {
    padding-block-start: 1.25rem;
    border-block-start: 1px solid var(--border);

    & .mk-article-nav-link {
      padding: 0;
      border: 0;
      border-radius: var(--radius-sm);

      &:hover {
        background: transparent;
      }
      &:hover .mk-article-nav-title {
        text-decoration: underline;
        text-underline-offset: 0.2em;
      }
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-article-nav-link,
    .mk-article-nav-dir svg {
      transition: none;
    }
    .mk-article-nav-link:hover .mk-article-nav-dir svg {
      translate: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-article-nav-link {
      border-color: var(--foreground);
    }
    .mk-article-nav-dir {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-article-nav-link {
      color: LinkText;
      border-color: LinkText;
    }
  }
}

/* ── components/comment-header/comment-header.css ── */
/* -- Comment Header (website) ---------------------------------------
   Introduces a discussion: the title with the comment count (a Badge) and
   the sorting - a native Select, or sort links (aria-current) in the tabs
   variant - plus optional actions (follow the thread). */

@layer components {
  .mk-comment-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    box-sizing: border-box;
    width: 100%;
    padding-block-end: 0.875rem;
    border-block-end: 1px solid var(--border);
  }

  .mk-comment-header-title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .mk-comment-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
  }

  /* "Sort by" + the select, one label */
  .mk-comment-header-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    white-space: nowrap;

    & .select {
      width: auto;
    }
  }

  /* sort links: a small segmented row */
  .mk-comment-header-tabs {
    display: inline-flex;
    gap: 0.125rem;
    padding: 0.1875rem;
    border-radius: var(--radius-md);
    background: var(--muted);

    & a {
      padding: 0.25rem 0.75rem;
      border-radius: calc(var(--radius-md) - 2px);
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      font-weight: 500;
      text-decoration: none;
      transition:
        color 120ms,
        background-color 120ms;

      &:hover {
        color: var(--foreground);
      }
      &[aria-current] {
        background: var(--background);
        color: var(--foreground);
        box-shadow: var(--shadow-xs);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 1px;
      }
    }
  }

  /* who is talking: an Avatar group + a sentence, on its own row */
  .mk-comment-header-people {
    display: flex;
    flex-basis: 100%;
    align-items: center;
    gap: 0.625rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;

    & strong {
      color: var(--foreground);
      font-weight: 600;
    }
  }

  /* plain: no rule under the header */
  .mk-comment-header[data-variant="plain"] {
    padding-block-end: 0;
    border-block-end: 0;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-comment-header-tabs a {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-comment-header-sort,
    .mk-comment-header-tabs a {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-comment-header-tabs {
      border: 1px solid CanvasText;
    }
    .mk-comment-header-tabs a[aria-current] {
      forced-color-adjust: none;
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/comment-item/comment-item.css ── */
/* -- Comment Item (website) -----------------------------------------
   One comment: avatar, author (+ a role Badge), the timestamp (a permalink
   to the comment's own id), the text and its actions (reply, like) - and
   its replies, nested on a thread line. A comment reached by its permalink
   (:target) or marked data-highlighted lights up. */

@layer components {
  .mk-comment-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 0.75rem;
    padding-block: 0.875rem;
    scroll-margin-block-start: 5rem;

    & > .avatar {
      grid-row: span 2;
    }
  }

  .mk-comment-item-main {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
  }

  .mk-comment-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }

  .mk-comment-item-author {
    color: var(--foreground);
    font-weight: 600;
    text-decoration: none;

    &:is(a):hover {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  .mk-comment-item-time {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    text-decoration: none;

    &:hover {
      text-decoration: underline;
      text-underline-offset: 0.2em;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  .mk-comment-item-body {
    font-size: 0.9375rem;
    line-height: 1.6;
    overflow-wrap: anywhere;

    & > * {
      margin: 0;
    }
    & > * + * {
      margin-block-start: 0.5em;
    }
    & a {
      color: var(--primary);
      text-underline-offset: 0.2em;
    }
    & blockquote {
      padding-inline-start: 0.75em;
      border-inline-start: 2px solid var(--border);
      color: var(--muted-foreground);
    }
  }

  .mk-comment-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.125rem;
    margin-inline-start: -0.5rem;
    color: var(--muted-foreground);
  }

  /* replies: nested comments on a thread line */
  .mk-comment-item-replies {
    grid-column: 2;
    margin: 0.25rem 0 0;
    padding: 0 0 0 1rem;
    border-inline-start: 2px solid var(--border);
    list-style: none;

    & > li > .mk-comment-item:last-child {
      padding-block-end: 0;
    }
  }

  /* reached by its permalink, or marked */
  .mk-comment-item:target,
  .mk-comment-item[data-highlighted] {
    margin-inline: -0.75rem;
    padding-inline: 0.75rem;
    border-radius: var(--radius-lg);
    background: color-mix(in oklch, var(--primary) 8%, transparent);
    animation: mk-comment-item-flash 1.6s ease-out;
  }

  /* compact: a tighter thread */
  .mk-comment-item[data-variant="compact"] {
    padding-block: 0.5rem;

    & .mk-comment-item-body {
      font-size: 0.875rem;
    }
    & .mk-comment-item-head {
      font-size: 0.8125rem;
    }
  }

  /* deleted: the text is gone, the thread stays */
  .mk-comment-item[data-variant="deleted"] .mk-comment-item-body {
    color: var(--muted-foreground);
    font-style: italic;
  }

  /* the ⋯ menu (a Dropdown trigger) at the end of the head */
  .mk-comment-item-menu {
    margin-inline-start: auto;
  }

  /* reactions: emoji chips - toggle buttons (aria-pressed), an add button */
  .mk-comment-item-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-block-start: 0.125rem;

    & button {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      height: 1.625rem;
      padding: 0 0.5rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: transparent;
      color: var(--muted-foreground);
      font: inherit;
      font-size: 0.75rem;
      font-variant-numeric: tabular-nums;
      cursor: pointer;
      transition:
        background-color 120ms,
        border-color 120ms,
        color 120ms;

      &:hover {
        background: var(--accent);
        color: var(--accent-foreground);
      }
      &[aria-pressed="true"] {
        border-color: color-mix(in oklch, var(--primary) 45%, transparent);
        background: color-mix(in oklch, var(--primary) 10%, transparent);
        color: var(--foreground);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 1px;
      }
      & svg {
        width: 0.875rem;
        height: 0.875rem;
      }
    }
  }

  /* voted: a score column (up / count / down) instead of the avatar column */
  .mk-comment-item-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    grid-row: span 2;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;

    & output {
      color: var(--foreground);
    }
    & button[aria-pressed="true"] {
      color: var(--primary);
    }
  }
  .mk-comment-item[data-variant="voted"] {
    grid-template-columns: auto auto minmax(0, 1fr);

    & > .avatar {
      grid-row: auto;
      align-self: start;
    }
    & > .mk-comment-item-replies {
      grid-column: 3;
    }
  }

  /* accepted: the answer - a green rail and a check badge */
  .mk-comment-item[data-variant="accepted"] {
    padding-inline: 0.875rem;
    margin-inline: -0.875rem;
    border-inline-start: 3px solid oklch(0.62 0.15 150);
    border-radius: var(--radius-md);
    background: color-mix(in oklch, oklch(0.62 0.15 150) 7%, transparent);
  }

  /* collapsible replies: a native <details> - "Show 3 replies" */
  .mk-comment-item-thread {
    grid-column: 2;

    & > summary {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      margin-block-start: 0.375rem;
      padding: 0.25rem 0.5rem;
      margin-inline-start: -0.5rem;
      border-radius: var(--radius-sm);
      color: var(--primary);
      font-size: 0.8125rem;
      font-weight: 600;
      cursor: pointer;
      list-style: none;

      &::-webkit-details-marker {
        display: none;
      }
      &::before {
        content: "";
        width: 0.375rem;
        height: 0.375rem;
        border-inline-end: 1.5px solid currentColor;
        border-block-end: 1.5px solid currentColor;
        rotate: -45deg;
        transition: rotate 150ms;
      }
      &:hover {
        background: var(--accent);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 1px;
      }
    }
    &[open] > summary::before {
      rotate: 45deg;
    }
    & > .mk-comment-item-replies {
      grid-column: auto;
    }
  }

  @keyframes mk-comment-item-flash {
    from {
      background: color-mix(in oklch, var(--primary) 22%, transparent);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-comment-item:target,
    .mk-comment-item[data-highlighted] {
      animation: none;
    }
    .mk-comment-item-reactions button,
    .mk-comment-item-thread > summary::before {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-comment-item-time,
    .mk-comment-item-actions {
      color: var(--foreground);
    }
    .mk-comment-item-replies {
      border-inline-start-color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-comment-item:target,
    .mk-comment-item[data-highlighted] {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/comment-form/comment-form.css ── */
/* -- Comment Form (website) -----------------------------------------
   Collects a new comment or a reply: the writer's avatar beside a Textarea
   that grows with its text (field-sizing), optional name / email fields for
   guests, a hint and the submit Button. Native validation (required,
   minlength) - :user-invalid marks the field only after an attempt. */

@layer components {
  .mk-comment-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    box-sizing: border-box;
    width: 100%;
    margin: 0;

    & > .avatar {
      margin-block-start: 0.25rem;
    }
    /* without an avatar the form takes the full row */
    &:not(:has(> .avatar)) {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  .mk-comment-form-main {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 0;

    & .textarea {
      field-sizing: content;
      min-height: 5.5rem;
      max-height: 20rem;
      resize: none;
    }
  }

  /* guest fields: name + email side by side */
  .mk-comment-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 0.625rem;

    & > div {
      display: flex;
      flex-direction: column;
      gap: 0.375rem;
    }
  }

  .mk-comment-form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .mk-comment-form-hint {
    margin: 0 auto 0 0;
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }

  /* a formatting row above the text (a Toggle Group, a Separator, Buttons) */
  .mk-comment-form-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
  }

  /* framed: toolbar, text and footer in one bordered box - the textarea
     loses its own border, the box takes the focus ring */
  .mk-comment-form[data-variant="framed"] .mk-comment-form-main {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--input);
    border-radius: var(--radius-lg);
    background: var(--background);
    transition:
      border-color 120ms,
      box-shadow 120ms;

    &:focus-within {
      border-color: var(--ring);
      box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 25%, transparent);
    }
    & .mk-comment-form-toolbar {
      padding: 0.375rem;
      border-block-end: 1px solid var(--border);
      background: color-mix(in oklch, var(--muted) 50%, transparent);
    }
    & .textarea {
      border: 0;
      border-radius: 0;
      box-shadow: none;
      outline: none;
      background: transparent;
    }
    & .mk-comment-form-footer {
      padding: 0.5rem 0.625rem;
      border-block-start: 1px solid var(--border);
    }
    & .tabs {
      gap: 0;
    }
    & .tab-content {
      padding: 0;
    }
  }

  /* reply: compact, under a comment */
  .mk-comment-form[data-variant="reply"] {
    gap: 0.5rem;

    & .mk-comment-form-main .textarea {
      min-height: 3.5rem;
      font-size: 0.875rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-comment-form[data-variant="framed"] .mk-comment-form-main {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-comment-form-hint {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-comment-form-main .textarea {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/about-intro/about-intro.css ── */
/* -- About Intro (website · Company) --------------------------------------
   Introduces an organization's identity, purpose, and background - a split intro with photos and key facts, a centered mission statement, or the values behind it. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-about-intro, .mk-about-intro *, .mk-about-intro ::before, .mk-about-intro ::after) {
    box-sizing: border-box;
  }

  .mk-about-intro {
    container: mk-about-intro / inline-size;
    width: 100%;
  }
  .mk-about-intro-layout {
    display: grid;
    gap: 2.5rem;
    align-items: center;
  }
  .mk-about-intro-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  .mk-about-intro-eyebrow {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mk-about-intro-title {
    margin: 0;
    font-size: clamp(1.875rem, 4.5cqi, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .mk-about-intro-lead {
    margin: 0;
    max-width: 40rem;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  .mk-about-intro-media {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: start;
    gap: 0.75rem;
    margin: 0;

    & img {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 4;
      object-fit: cover;
      border-radius: var(--radius-xl);
      background: var(--muted);
    }
    & img:last-child {
      margin-block-start: 3rem;
    }
  }

  .mk-about-intro-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 0.5rem 0 0;
    padding-block-start: 1.5rem;
    border-block-start: 1px solid var(--border);

    & div {
      display: flex;
      flex-direction: column-reverse;
      gap: 0.125rem;
    }
    & dt {
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
    & dd {
      margin: 0;
      font-size: 1.875rem;
      font-weight: 600;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;
    }
  }

  /* statement: one centered sentence in the serif face */
  .mk-about-intro[data-variant="statement"] {
    & .mk-about-intro-copy {
      align-items: center;
      max-width: 56rem;
      margin-inline: auto;
      text-align: center;
    }
    & .mk-about-intro-title {
      font-family: var(--font-serif);
      font-size: clamp(1.75rem, 4cqi, 2.75rem);
      font-weight: 400;
      line-height: 1.3;
      letter-spacing: -0.01em;
    }
    & .mk-about-intro-title em {
      color: var(--primary);
    }
  }
  .mk-about-intro-signature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: start;
    font-size: 0.875rem;
    & strong {
      display: block;
      font-weight: 600;
    }
    & span {
      color: var(--muted-foreground);
    }
  }

  /* values: icon cards */
  .mk-about-intro-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
      display: grid;
      gap: 0.5rem;
      align-content: start;
      padding: 1.25rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      background: var(--card);
      color: var(--card-foreground);
    }
    & svg {
      width: 1.5rem;
      height: 1.5rem;
      color: var(--primary);
    }
    & h3 {
      margin: 0.25rem 0 0;
      font-size: 1.0625rem;
      font-weight: 600;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.9375rem;
      text-wrap: pretty;
    }
  }

  @container mk-about-intro (min-width: 48rem) {
    .mk-about-intro-layout {
      grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
      gap: 4rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-about-intro-values li {
      border-color: CanvasText;
    }
  }
}

/* ── components/team-member/team-member.css ── */
/* -- Team Member (website · Company) --------------------------------------
   Presents one person with a portrait, role, and biography - a portrait card whose links slide in on hover, a profile beside its bio, or a compact row for long lists. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-team-member, .mk-team-member *, .mk-team-member ::before, .mk-team-member ::after) {
    box-sizing: border-box;
  }

  .mk-team-member {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }
  .mk-team-member-portrait {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-xl);
    background: var(--muted);
    &::after {
      content: "";
      position: absolute;
      inset: 40% 0 0;
      z-index: 0;
      background: linear-gradient(transparent, oklch(0.12 0.02 260 / 0.65));
      opacity: 0;
      transition: opacity 300ms ease;
      pointer-events: none;
    }
  }
  .mk-team-member-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: scale 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .mk-team-member:is(:hover, :focus-within) .mk-team-member-photo {
    scale: 1.05;
  }
  .mk-team-member:is(:hover, :focus-within) .mk-team-member-portrait::after {
    opacity: 1;
  }
  .mk-team-member-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.1875rem 0.5rem 0.1875rem 0.375rem;
    border-radius: 999px;
    background: color-mix(in oklch, var(--background) 82%, transparent);
    color: var(--foreground);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);

    & svg {
      width: 0.75rem;
      height: 0.75rem;
    }
  }
  .mk-team-member-links {
    position: absolute;
    inset: auto 0.75rem 0.75rem;
    z-index: 1;
    display: flex;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
    opacity: 0;
    translate: 0 0.75rem;
    transition:
      opacity 250ms ease,
      translate 250ms ease;

    & a {
      display: grid;
      place-items: center;
      width: 2.25rem;
      height: 2.25rem;
      border-radius: 999px;
      background: oklch(1 0 0 / 0.92);
      color: oklch(0.2 0 0);
      box-shadow: var(--shadow-sm);
      transition:
        background-color 150ms ease,
        color 150ms ease;
    }
    & a:hover {
      background: var(--primary);
      color: var(--primary-foreground);
    }
    & a:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }
  .mk-team-member:is(:hover, :focus-within) .mk-team-member-links {
    opacity: 1;
    translate: 0 0;
  }
  @media (hover: none) {
    .mk-team-member-links {
      opacity: 1;
      translate: 0 0;
    }
    .mk-team-member-portrait::after {
      opacity: 1;
    }
  }
  .mk-team-member-body {
    display: grid;
    gap: 0.125rem;
  }
  .mk-team-member-name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .mk-team-member-role {
    margin: 0;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
  }
  .mk-team-member-bio {
    margin: 0.5rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  .mk-team-member[data-variant="horizontal"] {
    display: grid;
    grid-template-columns: minmax(8rem, 40%) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    & .mk-team-member-photo {
      aspect-ratio: 1;
    }
    & .mk-team-member-links {
      opacity: 1;
      translate: 0 0;
      inset: auto 0.5rem 0.5rem;
      gap: 0.25rem;
    }
    & .mk-team-member-links a {
      width: 2rem;
      height: 2rem;
    }
    & .mk-team-member-portrait::after {
      opacity: 1;
    }
    & .mk-team-member-name {
      font-size: 1.25rem;
    }
  }

  .mk-team-member[data-variant="compact"] {
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;

    & .mk-team-member-portrait {
      flex: none;
      width: 3rem;
      height: 3rem;
      border-radius: 50%;
      box-shadow:
        0 0 0 2px var(--background),
        0 0 0 3px var(--border);
    }
    & .mk-team-member-photo {
      height: 100%;
      aspect-ratio: 1;
    }
    & .mk-team-member-portrait::after,
    & .mk-team-member-tag,
    & .mk-team-member-links {
      display: none;
    }
    & .mk-team-member-name {
      font-size: 0.9375rem;
    }
    & .mk-team-member-role {
      color: var(--muted-foreground);
      font-weight: 400;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-team-member-photo,
    .mk-team-member-links,
    .mk-team-member-portrait::after {
      transition: none;
    }
    .mk-team-member:is(:hover, :focus-within) .mk-team-member-photo {
      scale: none;
    }
  }

  @media (forced-colors: active) {
    .mk-team-member-links a {
      border: 1px solid CanvasText;
    }
    .mk-team-member[data-variant="horizontal"] {
      border-color: CanvasText;
    }
  }
}

/* ── components/job-item/job-item.css ── */
/* -- Job Item (website · Company) -----------------------------------------
   Previews one vacancy with its role, location, and employment type - as a list row or a card, grouped by department. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-job-item, .mk-job-item *, .mk-job-item ::before, .mk-job-item ::after) {
    box-sizing: border-box;
  }

  .mk-job-item {
    container: mk-job-item / inline-size;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    padding: 1.25rem 0.5rem;
    border-block-end: 1px solid var(--border);
    transition: background-color 150ms ease;

    &:hover {
      background: color-mix(in oklch, var(--accent) 50%, transparent);
    }
    & > svg {
      flex: none;
      width: 1.125rem;
      height: 1.125rem;
      color: var(--muted-foreground);
      transition: translate 150ms ease;
    }
    &:hover > svg {
      translate: 0.25rem 0;
      color: var(--foreground);
    }
  }
  .mk-job-item {
    position: relative;
  }
  .mk-job-item-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-job-item-title a:focus-visible {
    outline: none;
  }
  .mk-job-item:has(.mk-job-item-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-job-item :is(button, input, select, label, .btn):not(.mk-job-item-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-job-item-main {
    flex: 1 1 18rem;
    display: grid;
    gap: 0.5rem;
  }
  .mk-job-item-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;

    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-job-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;

    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  .mk-job-item-side {
    display: grid;
    justify-items: end;
    gap: 0.125rem;
    text-align: end;
  }
  .mk-job-item-salary {
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .mk-job-item-posted {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }

  .mk-job-item[data-variant="card"] {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    &:hover {
      background: var(--card);
      border-color: color-mix(in oklch, var(--foreground) 25%, var(--border));
    }
    & .mk-job-item-main {
      flex: none;
    }
    & .mk-job-item-side {
      justify-items: start;
      text-align: start;
      grid-auto-flow: column;
      justify-content: space-between;
      align-items: baseline;
    }
    & > svg {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
    }
  }

  .mk-job-group {
    display: grid;
    gap: 0.25rem;
  }
  .mk-job-group-title {
    margin: 0 0 0.5rem;
    padding-inline: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-job-item,
    .mk-job-item > svg {
      transition: none;
    }
    .mk-job-item:hover > svg {
      translate: none;
    }
  }

  @media (forced-colors: active) {
    .mk-job-item:has(.mk-job-item-title a:focus-visible) {
      outline-color: Highlight;
    }
  }
}

/* ── components/job-details/job-details.css ── */
/* -- Job Details (website · Company) --------------------------------------
   Describes one position's responsibilities, requirements, and benefits - with a summary that stays in view and the apply action. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-job-details, .mk-job-details *, .mk-job-details ::before, .mk-job-details ::after) {
    box-sizing: border-box;
  }

  .mk-job-details {
    container: mk-job-details / inline-size;
    width: 100%;
  }
  .mk-job-details-head {
    display: grid;
    gap: 0.75rem;
    padding-block-end: 2rem;
    border-block-end: 1px solid var(--border);
  }
  .mk-job-details-back {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-decoration: none;
    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      color: var(--foreground);
    }
  }
  .mk-job-details-title {
    margin: 0;
    font-size: clamp(1.75rem, 4cqi, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .mk-job-details-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .mk-job-details-layout {
    display: grid;
    gap: 2.5rem;
    padding-block-start: 2rem;
  }
  .mk-job-details-body {
    display: grid;
    gap: 2rem;
    min-width: 0;

    & section {
      display: grid;
      gap: 0.75rem;
    }
    & h2 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
      letter-spacing: -0.01em;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      line-height: 1.7;
      text-wrap: pretty;
    }
  }
  .mk-job-details-list {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
      position: relative;
      padding-inline-start: 1.75rem;
      line-height: 1.6;
    }
    & li::before {
      content: "";
      position: absolute;
      inset-inline-start: 0;
      top: 0.3em;
      width: 1.125rem;
      height: 1.125rem;
      border-radius: 50%;
      background: color-mix(in oklch, var(--primary) 12%, transparent)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
        center / 0.625rem no-repeat;
    }
  }
  .mk-job-details-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.875rem 1rem;
      border-radius: var(--radius-lg);
      background: var(--muted);
      font-size: 0.9375rem;
      font-weight: 500;
    }
    & svg {
      flex: none;
      width: 1.25rem;
      height: 1.25rem;
      color: var(--primary);
    }
  }
  .mk-job-details-summary {
    display: grid;
    gap: 1.25rem;
    align-self: start;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    & h2 {
      margin: 0;
      font-size: 1rem;
      font-weight: 600;
    }
    & dl {
      display: grid;
      gap: 0.875rem;
      margin: 0;
    }
    & dl div {
      display: grid;
      gap: 0.125rem;
    }
    & dt {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
    & dd {
      margin: 0;
      font-weight: 500;
    }
    & .btn {
      width: 100%;
    }
  }

  @container mk-job-details (min-width: 52rem) {
    .mk-job-details-layout {
      grid-template-columns: minmax(0, 1fr) 18rem;
      gap: 4rem;
    }
    .mk-job-details-summary {
      position: sticky;
      top: 1.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-job-details-list li::before {
      background: CanvasText;
      forced-color-adjust: none;
    }
    .mk-job-details-summary {
      border-color: CanvasText;
    }
  }
}

/* ── components/application-form/application-form.css ── */
/* -- Application Form (website · Company) ---------------------------------
   Collects candidate details and application documents - grouped fields, a résumé drop zone, links and consent, validated by the browser. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-application-form, .mk-application-form *, .mk-application-form ::before, .mk-application-form ::after) {
    box-sizing: border-box;
  }

  .mk-application-form {
    container: mk-application-form / inline-size;
    width: 100%;
  }
  .mk-application-form form {
    display: grid;
    gap: 2rem;
  }
  .mk-application-form-section {
    display: grid;
    gap: 1rem 3rem;
    margin: 0;
    padding: 0 0 2rem;
    border: 0;
    border-block-end: 1px solid var(--border);
    min-width: 0;

    & legend {
      float: left;
      width: 100%;
      padding: 0;
    }
    & legend + * {
      clear: both;
    }
  }
  .mk-application-form-legend {
    display: grid;
    gap: 0.25rem;
    & strong {
      font-size: 1rem;
      font-weight: 600;
    }
    & span {
      color: var(--muted-foreground);
      font-size: 0.875rem;
      font-weight: 400;
    }
  }
  .mk-application-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
  }
  .mk-application-form-field {
    display: grid;
    gap: 0.375rem;
    align-content: start;
    &[data-span="full"] {
      grid-column: 1 / -1;
    }
  }
  .mk-application-form-hint {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-application-form-field:has(:user-invalid) .mk-application-form-hint {
    color: var(--destructive);
  }

  /* drop zone: the whole label opens the picker */
  .mk-application-form-upload {
    display: grid;
    justify-items: center;
    gap: 0.375rem;
    padding: 1.75rem 1rem;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    transition:
      border-color 150ms ease,
      background-color 150ms ease;

    & svg {
      width: 1.5rem;
      height: 1.5rem;
      color: var(--foreground);
    }
    & strong {
      color: var(--foreground);
      font-weight: 600;
    }
    & input {
      width: 100%;
      max-width: 18rem;
      font-size: 0.8125rem;
    }
    &:hover,
    &:has(input:focus-visible) {
      border-color: var(--ring);
      background: color-mix(in oklch, var(--accent) 50%, transparent);
    }
    &:has(input:user-invalid) {
      border-color: var(--destructive);
    }
  }
  .mk-application-form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    & input {
      margin-block-start: 0.125rem;
    }
  }
  .mk-application-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .mk-application-form[data-variant="card"] {
    max-width: 30rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    & form {
      gap: 1.25rem;
    }
    & .mk-application-form-section {
      grid-template-columns: minmax(0, 1fr);
      padding-block-end: 1.25rem;
    }
    & .mk-application-form-fields {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  @container mk-application-form (min-width: 48rem) {
    .mk-application-form-section {
      grid-template-columns: 16rem minmax(0, 1fr);
    }
    .mk-application-form-section legend {
      float: none;
      width: auto;
      grid-column: 1;
    }
    .mk-application-form-section legend + * {
      grid-column: 2;
      grid-row: 1 / span 9;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-application-form-upload {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-application-form-upload {
      border-color: CanvasText;
    }
  }
}

/* ── components/service-item/service-item.css ── */
/* -- Service Item (website · Company) -------------------------------------
   Introduces one service with its description and detail link - as a card with an icon, a card with a picture, or an inline row. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-service-item, .mk-service-item *, .mk-service-item ::before, .mk-service-item ::after) {
    box-sizing: border-box;
  }

  .mk-service-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    transition:
      translate 200ms ease,
      box-shadow 200ms ease,
      border-color 200ms ease;

    &:hover {
      translate: 0 -2px;
      box-shadow: var(--shadow-lg);
      border-color: color-mix(in oklch, var(--foreground) 20%, var(--border));
    }
  }
  .mk-service-item {
    position: relative;
  }
  .mk-service-item-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-service-item-title a:focus-visible {
    outline: none;
  }
  .mk-service-item:has(.mk-service-item-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-service-item :is(button, input, select, label, .btn):not(.mk-service-item-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-service-item-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-lg);
    background: color-mix(in oklch, var(--primary) 10%, transparent);
    color: var(--primary);

    & svg {
      width: 1.375rem;
      height: 1.375rem;
    }
  }
  .mk-service-item-media {
    display: block;
    width: calc(100% + 3rem);
    margin: -1.5rem -1.5rem 0.25rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .mk-service-item-title {
    margin: 0.25rem 0 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-service-item-desc {
    margin: 0;
    flex: 1;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-service-item-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-block-start: 0.25rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
      transition: translate 150ms ease;
    }
  }
  .mk-service-item:hover .mk-service-item-more svg {
    translate: 0.25rem 0;
  }

  .mk-service-item[data-variant="inline"] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.25rem;
    padding: 0.75rem;
    border-color: transparent;
    background: transparent;

    &:hover {
      translate: none;
      box-shadow: none;
      background: var(--accent);
      border-color: transparent;
    }
    & .mk-service-item-icon {
      grid-row: 1 / span 3;
    }
    & .mk-service-item-title {
      margin: 0;
      font-size: 1rem;
    }
    & .mk-service-item-more {
      display: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-service-item,
    .mk-service-item-more svg {
      transition: none;
    }
    .mk-service-item:hover {
      translate: none;
    }
    .mk-service-item:hover .mk-service-item-more svg {
      translate: none;
    }
  }

  @media (forced-colors: active) {
    .mk-service-item {
      border-color: CanvasText;
    }
  }
}

/* ── components/process-step/process-step.css ── */
/* -- Process Step (website · Company) -------------------------------------
   Explains one numbered stage of a workflow - steps joined by a line, vertical or across, with the current one highlighted. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-process-step, .mk-process-step *, .mk-process-step ::before, .mk-process-step ::after) {
    box-sizing: border-box;
  }

  .mk-process-steps {
    container: mk-process-steps / inline-size;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mk-process-step {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-content: start;
    gap: 1.25rem;
    padding-block-end: 2rem;

    /* the line to the next step */
    &:not(:last-child)::before {
      content: "";
      position: absolute;
      inset-inline-start: 1.25rem;
      top: 2.75rem;
      bottom: 0.25rem;
      width: 2px;
      translate: -50% 0;
      background: var(--border);
    }
    &:last-child {
      padding-block-end: 0;
    }
  }
  .mk-process-step-number {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--background);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
  }
  .mk-process-step[aria-current] .mk-process-step-number {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
  }
  .mk-process-step-body {
    display: grid;
    gap: 0.25rem;
    padding-block-start: 0.375rem;
  }
  .mk-process-step-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
  }
  .mk-process-step-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  /* horizontal: a wrapping row - the list is the container, so only its
     steps change with its width (a container cannot query itself) */
  .mk-process-steps[data-variant="horizontal"] {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .mk-process-steps[data-variant="horizontal"] > .mk-process-step {
    flex: 1 1 100%;
  }

  @container mk-process-steps (min-width: 40rem) {
    .mk-process-steps[data-variant="horizontal"] > .mk-process-step {
      flex: 1 1 0;
      grid-template-columns: minmax(0, 1fr);
      gap: 1rem;
      padding: 0 1.5rem 0 0;

      &:not(:last-child)::before {
        inset-inline-start: 3.25rem;
        inset-inline-end: 0.5rem;
        top: 1.25rem;
        bottom: auto;
        width: auto;
        height: 2px;
        translate: 0 -50%;
      }
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-process-step:not(:last-child)::before {
      background: CanvasText;
    }
    .mk-process-step[aria-current] .mk-process-step-number {
      border-color: Highlight;
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/use-case/use-case.css ── */
/* -- Use Case (website · Company) -----------------------------------------
   Explains how an offering addresses one specific situation - the situation, how it helps, the outcomes, and a result worth remembering. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-use-case, .mk-use-case *, .mk-use-case ::before, .mk-use-case ::after) {
    box-sizing: border-box;
  }

  .mk-use-case {
    container: mk-use-case / inline-size;
    width: 100%;
  }
  .mk-use-case-layout {
    display: grid;
    gap: 2rem;
    align-items: center;
  }
  .mk-use-case-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .mk-use-case-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }
  .mk-use-case-title {
    margin: 0;
    font-size: clamp(1.5rem, 3.5cqi, 2.25rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .mk-use-case-text {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.7;
    text-wrap: pretty;
  }
  .mk-use-case-outcomes {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
      display: flex;
      gap: 0.625rem;
      align-items: flex-start;
    }
    & svg {
      flex: none;
      width: 1.125rem;
      height: 1.125rem;
      margin-block-start: 0.15rem;
      color: #16a34a;
    }
  }
  .mk-use-case-metric {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 0.25rem 0 0;
    padding: 0.875rem 1.125rem;
    border-inline-start: 3px solid var(--chart-1);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: color-mix(in oklch, var(--chart-1) 8%, transparent);
    color: var(--muted-foreground);
    font-size: 0.9375rem;

    & strong {
      color: var(--foreground);
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;
    }
  }
  .mk-use-case-media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);
    & img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }
  }

  .mk-use-case[data-variant="card"] {
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    & .mk-use-case-title {
      font-size: 1.25rem;
    }
  }

  @container mk-use-case (min-width: 48rem) {
    .mk-use-case-layout {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 4rem;
    }
    .mk-use-case[data-variant="reverse"] .mk-use-case-media {
      order: -1;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-use-case-metric {
      border-inline-start-color: CanvasText;
    }
    .mk-use-case-outcomes svg {
      color: CanvasText;
    }
  }
}

/* ── components/case-preview/case-preview.css ── */
/* -- Case Preview (website · Company) -------------------------------------
   Summarizes one case study and links to its full account - the client, the headline result and a picture, as a card or a wide row. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-case-preview, .mk-case-preview *, .mk-case-preview ::before, .mk-case-preview ::after) {
    box-sizing: border-box;
  }

  .mk-case-preview {
    container: mk-case-preview / inline-size;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-case-preview {
    position: relative;
  }
  .mk-case-preview-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-case-preview-title a:focus-visible {
    outline: none;
  }
  .mk-case-preview:has(.mk-case-preview-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-case-preview :is(button, input, select, label, .btn):not(.mk-case-preview-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-case-preview-media {
    margin: 0;
    overflow: hidden;
    background: var(--muted);
    & img {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 10;
      object-fit: cover;
      transition: scale 400ms ease;
    }
  }
  .mk-case-preview:hover .mk-case-preview-media img {
    scale: 1.04;
  }
  .mk-case-preview-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem 1.5rem;
    flex: 1;
  }
  .mk-case-preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .mk-case-preview-logo {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
  }
  .mk-case-preview-title {
    margin: 0;
    font-size: 1.1875rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;
    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-case-preview-metric {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    & strong {
      color: var(--foreground);
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-inline-end: 0.25rem;
    }
  }
  .mk-case-preview-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-block-start: auto;
    padding-block-start: 0.5rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }

  @container mk-case-preview (min-width: 40rem) {
    .mk-case-preview[data-variant="wide"] .mk-case-preview-body {
      padding: 2rem;
    }
  }
  .mk-case-preview[data-variant="wide"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));

    & .mk-case-preview-media img {
      height: 100%;
      aspect-ratio: auto;
      min-height: 14rem;
    }
    & .mk-case-preview-title {
      font-size: 1.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-case-preview-media img {
      transition: none;
    }
    .mk-case-preview:hover .mk-case-preview-media img {
      scale: none;
    }
  }

  @media (forced-colors: active) {
    .mk-case-preview {
      border-color: CanvasText;
    }
  }
}

/* ── components/case-study/case-study.css ── */
/* -- Case Study (website · Company) ---------------------------------------
   Describes a project's problem, approach, and documented outcome - a header with the client, results as figures, the story in sections and a pull quote. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-case-study, .mk-case-study *, .mk-case-study ::before, .mk-case-study ::after) {
    box-sizing: border-box;
  }

  .mk-case-study {
    container: mk-case-study / inline-size;
    display: grid;
    gap: 2.5rem;
    width: 100%;
  }
  .mk-case-study-head {
    display: grid;
    gap: 1rem;
  }
  .mk-case-study-client {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    & strong {
      color: var(--foreground);
      font-size: 1.125rem;
      font-weight: 800;
      letter-spacing: -0.03em;
    }
  }
  .mk-case-study-title {
    margin: 0;
    max-width: 48rem;
    font-size: clamp(1.75rem, 4.5cqi, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .mk-case-study-cover {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);
    & img {
      display: block;
      width: 100%;
      aspect-ratio: 21 / 9;
      object-fit: cover;
    }
  }
  .mk-case-study-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--border);

    & div {
      display: flex;
      flex-direction: column-reverse;
      gap: 0.25rem;
      padding: 1.5rem;
      background: var(--card);
    }
    & dd {
      margin: 0;
      font-size: 2.25rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      font-variant-numeric: tabular-nums;
    }
    & dt {
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
  }
  .mk-case-study-layout {
    display: grid;
    gap: 2.5rem;
  }
  .mk-case-study-body {
    display: grid;
    gap: 2.25rem;
    min-width: 0;

    & section {
      display: grid;
      gap: 0.75rem;
    }
    & h2 {
      margin: 0;
      font-size: 1.375rem;
      font-weight: 600;
      letter-spacing: -0.015em;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      line-height: 1.75;
      text-wrap: pretty;
    }
  }
  .mk-case-study-steps {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: mk-case-step;

    & li {
      counter-increment: mk-case-step;
      display: grid;
      grid-template-columns: 2rem minmax(0, 1fr);
      gap: 0.25rem 0.75rem;
    }
    & li::before {
      content: counter(mk-case-step);
      grid-row: span 2;
      display: grid;
      place-items: center;
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      background: var(--muted);
      font-size: 0.875rem;
      font-weight: 700;
    }
    & strong {
      font-weight: 600;
    }
    & span {
      color: var(--muted-foreground);
    }
  }
  .mk-case-study-quote {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: var(--muted);

    & blockquote {
      margin: 0;
      font-family: var(--font-serif);
      font-size: 1.375rem;
      line-height: 1.45;
      text-wrap: pretty;
    }
    & figcaption {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.875rem;
    }
    & figcaption span {
      color: var(--muted-foreground);
    }
  }
  .mk-case-study-facts {
    display: grid;
    gap: 1rem;
    align-self: start;
    margin: 0;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    & div {
      display: grid;
      gap: 0.125rem;
    }
    & dt {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
    & dd {
      margin: 0;
      font-weight: 500;
    }
  }

  @container mk-case-study (min-width: 52rem) {
    .mk-case-study-layout {
      grid-template-columns: minmax(0, 1fr) 16rem;
      gap: 4rem;
    }
    .mk-case-study-facts {
      position: sticky;
      top: 1.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-case-study-results,
    .mk-case-study-facts {
      border-color: CanvasText;
    }
  }
}

/* ── components/project-item/project-item.css ── */
/* -- Project Item (website · Company) -------------------------------------
   Previews one portfolio project with imagery and context - picture first, caption under it or revealed over it, or a wide feature. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-project-item, .mk-project-item *, .mk-project-item ::before, .mk-project-item ::after) {
    box-sizing: border-box;
  }

  .mk-project-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }
  .mk-project-item {
    position: relative;
  }
  .mk-project-item-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-project-item-title a:focus-visible {
    outline: none;
  }
  .mk-project-item:has(.mk-project-item-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-project-item :is(button, input, select, label, .btn):not(.mk-project-item-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-project-item:has(.mk-project-item-title a:focus-visible) {
    border-radius: var(--radius-xl);
  }
  .mk-project-item-media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);
    & img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      transition: scale 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }
  }
  .mk-project-item:hover .mk-project-item-media img {
    scale: 1.05;
  }
  .mk-project-item-body {
    display: grid;
    gap: 0.25rem;
  }
  .mk-project-item-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-project-item-meta {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    & span + span::before {
      content: "·";
      margin-inline-end: 0.5rem;
    }
  }
  .mk-project-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0.375rem 0 0;
    padding: 0;
    list-style: none;
    & li {
      padding: 0.125rem 0.5rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--muted-foreground);
      font-size: 0.75rem;
    }
  }

  .mk-project-item[data-variant="overlay"] {
    overflow: hidden;
    border-radius: var(--radius-xl);

    & .mk-project-item-media img {
      aspect-ratio: 4 / 5;
    }
    & .mk-project-item-body {
      position: absolute;
      inset: auto 0 0;
      padding: 3rem 1.25rem 1.25rem;
      background: linear-gradient(transparent, oklch(0.12 0.02 260 / 0.85));
      color: #fff;
      opacity: 0;
      translate: 0 1rem;
      transition:
        opacity 250ms ease,
        translate 250ms ease;
    }
    & .mk-project-item-meta {
      color: oklch(1 0 0 / 0.8);
    }
    &:is(:hover, :focus-within) .mk-project-item-body {
      opacity: 1;
      translate: 0 0;
    }
  }
  @media (hover: none) {
    .mk-project-item[data-variant="overlay"] .mk-project-item-body {
      opacity: 1;
      translate: 0 0;
    }
  }

  .mk-project-item[data-variant="wide"] {
    & .mk-project-item-media img {
      aspect-ratio: 21 / 9;
    }
    & .mk-project-item-body {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: baseline;
    }
    & .mk-project-item-title {
      font-size: 1.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-project-item-media img,
    .mk-project-item[data-variant="overlay"] .mk-project-item-body {
      transition: none;
    }
    .mk-project-item:hover .mk-project-item-media img {
      scale: none;
    }
  }

  @media (forced-colors: active) {
    .mk-project-item[data-variant="overlay"] .mk-project-item-body {
      background: Canvas;
      color: CanvasText;
    }
  }
}

/* ── components/project-details/project-details.css ── */
/* -- Project Details (website · Company) ----------------------------------
   Presents one project's brief, scope, deliverables, and media - a cover, the facts, the story and a gallery, ending with the next project. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-project-details, .mk-project-details *, .mk-project-details ::before, .mk-project-details ::after) {
    box-sizing: border-box;
  }

  .mk-project-details {
    container: mk-project-details / inline-size;
    display: grid;
    gap: 2.5rem;
    width: 100%;
  }
  .mk-project-details-head {
    display: grid;
    gap: 1rem;
  }
  .mk-project-details-title {
    margin: 0;
    font-size: clamp(2rem, 6cqi, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
  }
  .mk-project-details-summary {
    margin: 0;
    max-width: 44rem;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-project-details-cover {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    & img {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 8;
      object-fit: cover;
    }
  }
  .mk-project-details-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
    gap: 1.5rem;
    margin: 0;
    padding-block: 1.5rem;
    border-block: 1px solid var(--border);

    & div {
      display: grid;
      gap: 0.25rem;
    }
    & dt {
      color: var(--muted-foreground);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    & dd {
      margin: 0;
      font-weight: 500;
    }
  }
  .mk-project-details-brief {
    display: grid;
    gap: 2rem;
    & h2 {
      margin: 0 0 0.75rem;
      font-size: 1.25rem;
      font-weight: 600;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      line-height: 1.75;
    }
  }
  .mk-project-details-deliverables {
    margin: 0;
    padding: 0;
    list-style: none;
    border-block-start: 1px solid var(--border);

    & li {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      padding-block: 0.75rem;
      border-block-end: 1px solid var(--border);
    }
    & span {
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
  }
  .mk-project-details-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    grid-auto-rows: 14rem;
    grid-auto-flow: dense;
    gap: 0.75rem;

    & figure {
      position: relative;
      margin: 0;
      overflow: hidden;
      border-radius: var(--radius-lg);
      background: var(--muted);
    }
    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    & figcaption {
      position: absolute;
      inset: auto 0.5rem 0.5rem;
      width: fit-content;
      padding: 0.25rem 0.625rem;
      border-radius: 999px;
      background: oklch(0.12 0.02 260 / 0.7);
      color: #fff;
      font-size: 0.75rem;
      backdrop-filter: blur(6px);
    }
    & [data-span="wide"] {
      grid-column: span 2;
    }
    & [data-span="tall"] {
      grid-row: span 2;
    }
  }
  .mk-project-details-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-block-start: 1px solid var(--border);
    color: inherit;
    text-decoration: none;

    & small {
      display: block;
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
    & strong {
      font-size: clamp(1.25rem, 3cqi, 2rem);
      font-weight: 600;
      letter-spacing: -0.02em;
    }
    & svg {
      width: 1.75rem;
      height: 1.75rem;
      transition: translate 200ms ease;
    }
    &:hover svg {
      translate: 0.375rem 0;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-md);
    }
  }

  @container mk-project-details (min-width: 48rem) {
    .mk-project-details-brief {
      grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
      gap: 4rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-project-details-next svg {
      transition: none;
    }
    .mk-project-details-next:hover svg {
      translate: none;
    }
  }

  @media (forced-colors: active) {
    .mk-project-details-gallery figcaption {
      background: Canvas;
      color: CanvasText;
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/timeline-item/timeline-item.css ── */
/* -- Timeline Item (website · Company) ------------------------------------
   Describes one dated milestone or historical event - a date, a dot on a line, a title and a short story, optionally with a picture. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-timeline-item, .mk-timeline-item *, .mk-timeline-item ::before, .mk-timeline-item ::after) {
    box-sizing: border-box;
  }

  .mk-timeline-list {
    container: mk-timeline-list / inline-size;
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mk-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.375rem;
    padding: 0 0 2.25rem 1.75rem;

    /* the line and the dot */
    &::before {
      content: "";
      position: absolute;
      inset-inline-start: 0.3125rem;
      top: 0.5rem;
      bottom: -0.5rem;
      width: 2px;
      background: var(--border);
    }
    &:last-child::before {
      bottom: auto;
      height: 0;
    }
    &::after {
      content: "";
      position: absolute;
      inset-inline-start: 0;
      top: 0.3rem;
      width: 0.75rem;
      height: 0.75rem;
      border: 2px solid var(--primary);
      border-radius: 50%;
      background: var(--background);
      box-sizing: border-box;
    }
  }
  .mk-timeline-item-date {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }
  .mk-timeline-item-body {
    display: grid;
    gap: 0.375rem;
  }
  .mk-timeline-item-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .mk-timeline-item-text {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.65;
    text-wrap: pretty;
  }
  .mk-timeline-item-media {
    display: block;
    width: 100%;
    max-width: 28rem;
    margin-block-start: 0.5rem;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }

  .mk-timeline-item[data-variant="milestone"] {
    &::after {
      inset-inline-start: -0.125rem;
      top: 0.875rem;
      width: 1rem;
      height: 1rem;
      border-width: 0;
      background: var(--primary);
      box-shadow: 0 0 0 4px color-mix(in oklch, var(--primary) 18%, transparent);
    }
    & .mk-timeline-item-body {
      padding: 1.25rem;
      border-radius: var(--radius-xl);
      background: color-mix(in oklab, var(--primary) 6%, var(--card));
      border: 1px solid color-mix(in oklab, var(--primary) 20%, var(--border));
    }
    & .mk-timeline-item-date {
      padding-block-start: 0.625rem;
    }
  }

  @container mk-timeline-list (min-width: 40rem) {
    .mk-timeline-item {
      grid-template-columns: 7rem minmax(0, 1fr);
      gap: 1.5rem;
      padding-inline-start: 0;
    }
    .mk-timeline-item::before {
      inset-inline-start: 8.8125rem;
    }
    .mk-timeline-item::after {
      inset-inline-start: 8.5rem;
    }
    .mk-timeline-item[data-variant="milestone"]::after {
      inset-inline-start: 8.375rem;
    }
    .mk-timeline-item-date {
      text-align: end;
      padding-inline-end: 1.75rem;
    }
    .mk-timeline-item-body {
      margin-inline-start: 1.75rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-timeline-item::before {
      background: CanvasText;
    }
    .mk-timeline-item::after {
      border-color: CanvasText;
    }
    .mk-timeline-item[data-variant="milestone"]::after {
      background: Highlight;
    }
  }
}

/* ── components/integration-item/integration-item.css ── */
/* -- Integration Item (website · Company) ---------------------------------
   Presents one compatible tool with its purpose and connection link - logo, name, category, what it does, and connect or manage. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-integration-item, .mk-integration-item *, .mk-integration-item ::before, .mk-integration-item ::after) {
    box-sizing: border-box;
  }

  .mk-integration-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    & > .btn {
      margin-block-start: auto;
    }
  }
  .mk-integration-item-logo {
    --mk-integration-color: var(--foreground);

    display: grid;
    place-items: center;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-lg);
    background: var(--mk-integration-color);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.12);
  }
  .mk-integration-item-body {
    display: grid;
    gap: 0.125rem;
    flex: 1;
  }
  .mk-integration-item-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
  }
  .mk-integration-item-category {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-integration-item-desc {
    margin: 0.5rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.55;
    text-wrap: pretty;
  }

  .mk-integration-item[data-variant="compact"] {
    flex-direction: row;
    align-items: center;
    padding: 0.875rem 1rem;

    & .mk-integration-item-logo {
      width: 2.25rem;
      height: 2.25rem;
      font-size: 0.8125rem;
    }
    & .mk-integration-item-desc {
      display: none;
    }
    & > .btn {
      margin: 0;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-integration-item {
      border-color: CanvasText;
    }
    .mk-integration-item-logo {
      forced-color-adjust: none;
    }
  }
}

/* ── components/comparison-table/comparison-table.css ── */
/* -- Comparison Table (website · Company) ---------------------------------
   Compares alternatives across a shared set of criteria - a real table with a highlighted column and a sticky first column, or a two-sided versus card. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-comparison-table, .mk-comparison-table *, .mk-comparison-table ::before, .mk-comparison-table ::after) {
    box-sizing: border-box;
  }

  .mk-comparison-table {
    container: mk-comparison-table / inline-size;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    & table {
      min-width: 36rem;
      margin: 0;
    }
    & caption {
      padding: 1rem 1.25rem 0;
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      text-align: start;
      caption-side: top;
    }
    & :is(th, td) {
      padding: 0.875rem 1.25rem;
      text-align: center;
    }
    & th[scope="row"],
    & thead th:first-child {
      position: sticky;
      inset-inline-start: 0;
      z-index: 1;
      background: var(--background);
      text-align: start;
      font-weight: 500;
    }
    & thead th {
      font-size: 0.9375rem;
      font-weight: 600;
    }
    & [data-highlight] {
      background: color-mix(in oklab, var(--chart-1) 8%, var(--background));
    }
    & thead [data-highlight] {
      box-shadow: inset 0 3px 0 var(--chart-1);
    }
  }
  .mk-comparison-yes {
    color: #16a34a;
    vertical-align: middle;
  }
  .mk-comparison-no {
    color: var(--muted-foreground);
    opacity: 0.6;
    vertical-align: middle;
  }
  .mk-comparison-partial {
    color: #b45309;
    font-size: 0.8125rem;
    font-weight: 500;
  }

  /* versus: two sides of a card */
  .mk-comparison-versus {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    & section {
      display: grid;
      align-content: start;
      gap: 1rem;
      padding: 1.75rem;
    }
    & section + section {
      border-inline-start: 1px solid var(--border);
    }
    & section[data-highlight] {
      background: color-mix(in oklab, var(--chart-1) 7%, var(--card));
    }
    & h3 {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin: 0;
      font-size: 1.125rem;
      font-weight: 600;
    }
    & ul {
      display: grid;
      gap: 0.75rem;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    & li {
      display: flex;
      gap: 0.625rem;
      align-items: flex-start;
      font-size: 0.9375rem;
    }
    & li svg {
      flex: none;
      margin-block-start: 0.125rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-comparison-table thead [data-highlight] {
      box-shadow: inset 0 3px 0 Highlight;
    }
    .mk-comparison-yes,
    .mk-comparison-no {
      color: CanvasText;
    }
  }
}

/* ── components/credential-item/credential-item.css ── */
/* -- Credential Item (website · Company) ----------------------------------
   Presents one certification or accreditation with verification details - the seal, the issuer, the validity and a link to verify it. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-credential-item, .mk-credential-item *, .mk-credential-item ::before, .mk-credential-item ::after) {
    box-sizing: border-box;
  }

  .mk-credential-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem 1rem;
    align-items: start;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-credential-item-seal {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, oklch(0.95 0.06 85), oklch(0.82 0.12 80));
    color: oklch(0.42 0.1 70);
    box-shadow:
      0 0 0 3px var(--card),
      0 0 0 4px oklch(0.82 0.12 80);

    & svg {
      width: 1.375rem;
      height: 1.375rem;
    }
  }
  .mk-credential-item-body {
    display: grid;
    gap: 0.125rem;
  }
  .mk-credential-item-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
  }
  .mk-credential-item-issuer {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-credential-item-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin: 0.625rem 0 0;

    & div {
      display: grid;
    }
    & dt {
      color: var(--muted-foreground);
      font-size: 0.75rem;
    }
    & dd {
      margin: 0;
      font-size: 0.875rem;
      font-weight: 500;
    }
    & code {
      font-family: var(--font-mono);
      font-size: 0.8125rem;
    }
  }
  .mk-credential-item-verify {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: fit-content;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;

    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  .mk-credential-item[data-variant="compact"] {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    padding: 0.875rem 1rem;

    & .mk-credential-item-seal {
      width: 2.25rem;
      height: 2.25rem;
      & svg {
        width: 1rem;
        height: 1rem;
      }
    }
    & .mk-credential-item-dates {
      display: none;
    }
    & .mk-credential-item-verify {
      grid-column: 3;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-credential-item {
      border-color: CanvasText;
    }
    .mk-credential-item-seal {
      forced-color-adjust: none;
    }
  }
}

/* ── components/press-item/press-item.css ── */
/* -- Press Item (website · Company) ---------------------------------------
   Links to one external media mention with publication metadata - the outlet, the date and the headline, a pull quote, or a compact list row. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-press-item, .mk-press-item *, .mk-press-item ::before, .mk-press-item ::after) {
    box-sizing: border-box;
  }

  .mk-press-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    transition: border-color 150ms ease;

    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 25%, var(--border));
    }
  }
  .mk-press-item {
    position: relative;
  }
  .mk-press-item-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-press-item-title a:focus-visible {
    outline: none;
  }
  .mk-press-item:has(.mk-press-item-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-press-item :is(button, input, select, label, .btn):not(.mk-press-item-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-press-item-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-press-item-publication {
    color: var(--foreground);
    font-size: 1.0625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .mk-press-item-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-press-item-quote {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.45;
    text-wrap: pretty;
    & p {
      margin: 0;
    }
    & p::before {
      content: "“";
    }
    & p::after {
      content: "”";
    }
  }
  .mk-press-item-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-block-start: auto;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }

  .mk-press-item[data-variant="quote"] {
    & .mk-press-item-title {
      order: 3;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      font-weight: 500;
    }
    & .mk-press-item-more {
      order: 4;
    }
  }

  .mk-press-item[data-variant="compact"] {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 1rem;
    padding: 1rem 0.5rem;
    border-width: 0 0 1px;
    border-radius: 0;
    background: transparent;

    & .mk-press-item-meta {
      display: contents;
    }
    & time {
      grid-column: 3;
      grid-row: 1;
    }
    & .mk-press-item-title {
      grid-column: 2;
      grid-row: 1;
      font-size: 1rem;
    }
    & .mk-press-item-more {
      display: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-press-item {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-press-item {
      border-color: CanvasText;
    }
  }
}

/* ── components/resume-header/resume-header.css ── */
/* -- Resume Header (website · Resume & Portfolio) -------------------------
   Opens a personal site or a CV: the portrait, the name as the page's <h1>, the role, a short summary, the facts
   (where, how long, which languages, how to reach you), the actions and the profiles elsewhere. Beside the portrait
   (default), centered, or compact - the head of a printed CV. The layout wraps by itself (flex-wrap), the name
   scales with the header's width (a container) - no breakpoints, no script. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-resume-header, .mk-resume-header *, .mk-resume-header ::before, .mk-resume-header ::after) {
    box-sizing: border-box;
  }

  .mk-resume-header {
    container: mk-resume-header / inline-size;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2.5rem;
    width: 100%;
  }

  .mk-resume-header-photo {
    flex: 0 0 auto;
    width: clamp(6rem, 22cqi, 11rem);
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    background: var(--muted);
    object-fit: cover;
  }

  .mk-resume-header-body {
    display: flex;
    flex: 1 1 22rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
  }

  /* the availability line above the name: an Indicator dot and a sentence in a pill */
  .mk-resume-header-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 500;
  }

  .mk-resume-header-name {
    margin: 0;
    font-size: clamp(2rem, 1.25rem + 3.5cqi, 3.25rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }

  .mk-resume-header-role {
    margin: 0;
    color: var(--foreground);
    font-size: clamp(1.0625rem, 0.9rem + 0.8cqi, 1.375rem);
    font-weight: 500;
    line-height: 1.35;
    text-wrap: balance;
  }

  .mk-resume-header-summary {
    max-width: 40rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  /* where, how long, which languages, how to reach you - an icon and a phrase each */
  .mk-resume-header-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;

    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
    }
    & svg {
      flex: none;
      width: 1rem;
      height: 1rem;
    }
    & a {
      color: inherit;
      text-decoration: underline;
      text-decoration-color: var(--border);
      text-underline-offset: 3px;

      &:hover {
        color: var(--foreground);
        text-decoration-color: currentColor;
      }
    }
  }

  .mk-resume-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-block-start: 0.25rem;
  }

  /* the profiles elsewhere: icon buttons in a row */
  .mk-resume-header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* centered: the portrait above, everything on the axis */
  .mk-resume-header[data-variant="centered"] {
    flex-direction: column;
    text-align: center;

    & .mk-resume-header-body {
      flex-basis: auto;
      align-items: center;
    }
    & .mk-resume-header-photo {
      border-radius: 50%;
    }
    & .mk-resume-header-facts,
    & .mk-resume-header-actions {
      justify-content: center;
    }
  }

  /* compact: the head of a CV - a small portrait, a smaller name, a rule below */
  .mk-resume-header[data-variant="compact"] {
    gap: 1rem 1.5rem;
    padding-block-end: 1.25rem;
    border-block-end: 1px solid var(--border);

    & .mk-resume-header-photo {
      width: 5rem;
    }
    & .mk-resume-header-body {
      gap: 0.375rem;
    }
    & .mk-resume-header-name {
      font-size: clamp(1.5rem, 1.1rem + 1.5cqi, 2rem);
    }
    & .mk-resume-header-role {
      font-size: 1rem;
    }
    & .mk-resume-header-facts {
      font-size: 0.8125rem;
    }
  }

  /* poster: the name as the picture - huge, uppercase, tight; the role a tilted label; the portrait tilted beside.
     The row runs end to start: the portrait (first in the markup) sits at the end, and when the row wraps it goes
     first, above the text. A container query restyles only what is inside the header, never the header itself - the
     wrap is how the header itself changes with its width. */
  .mk-resume-header[data-variant="poster"] {
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 1.5rem 2rem;

    & .mk-resume-header-photo {
      align-self: flex-start;
      width: clamp(6rem, 22cqi, 14rem);
      rotate: 4deg;
      /* the tilt pokes out of its box - room for it, so a lone portrait on a narrow row stays inside */
      margin: 0.5rem 0.75rem;
    }
    & .mk-resume-header-body {
      flex: 1 1 20rem;
      gap: 1rem;
    }
    & .mk-resume-header-name {
      font-size: clamp(3rem, 0.5rem + 11cqi, 9rem);
      font-weight: 800;
      line-height: 0.86;
      letter-spacing: -0.05em;
      text-transform: uppercase;
    }
    & .mk-resume-header-role {
      padding: 0.25rem 0.75rem;
      background: var(--primary);
      color: var(--primary-foreground);
      font-size: clamp(1rem, 0.8rem + 0.8cqi, 1.375rem);
      rotate: -1.5deg;
    }
  }

  /* split: the text and a tall portrait side by side - the portrait fills its share of the row. The two bases and
     the gap add up to 34rem, the width below which the query stacks them (portrait first, landscape) */
  .mk-resume-header[data-variant="split"] {
    flex-direction: row-reverse;
    gap: 2rem 3.5rem;

    & .mk-resume-header-photo {
      flex: 0.85 1 12rem;
      width: auto;
      min-width: 0;
      aspect-ratio: 4 / 5;
    }
    & .mk-resume-header-body {
      flex: 1.15 1 18.5rem;
      gap: 1rem;
    }
    & .mk-resume-header-name {
      font-size: clamp(2.5rem, 0.75rem + 6.5cqi, 5.5rem);
      line-height: 0.95;
    }
  }

  /* narrow: the split portrait takes the whole first row, in landscape */
  @container mk-resume-header (max-width: 34rem) {
    .mk-resume-header[data-variant="split"] .mk-resume-header-photo {
      flex-basis: 100%;
      aspect-ratio: 4 / 3;
    }
  }

  /* -- Print ------------------------------------------------------ */
  @media print {
    /* buttons do nothing on paper - the facts carry the contact details */
    .mk-resume-header-actions {
      display: none;
    }
    .mk-resume-header-facts a {
      text-decoration: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-contrast: more) {
    .mk-resume-header-status,
    .mk-resume-header-summary,
    .mk-resume-header-facts {
      color: var(--foreground);
    }
    .mk-resume-header-status {
      border-color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-resume-header-status {
      border-color: CanvasText;
    }
    .mk-resume-header-photo {
      outline: 1px solid CanvasText;
    }
  }
}

/* ── components/availability/availability.css ── */
/* -- Availability (website · Resume & Portfolio) --------------------------
   Says whether someone can be hired and on what terms: the status (an Indicator dot and a word), a sentence, the
   facts (start, capacity, engagement, rate) as a <dl> and the ways to get in touch. A card (default) or one row
   across the page (banner). The dot's variant carries the status colour - no script. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-availability, .mk-availability *, .mk-availability ::before, .mk-availability ::after) {
    box-sizing: border-box;
  }

  .mk-availability {
    container: mk-availability / inline-size;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    width: 100%;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-sm);
  }

  /* the status: an Indicator dot and a word */
  .mk-availability-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mk-availability-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }

  .mk-availability-text {
    max-width: 40rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  /* start, capacity, engagement, rate: label over value, as many columns as fit */
  .mk-availability-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    gap: 0.875rem 1.5rem;
    width: 100%;
    margin: 0.25rem 0;
    padding-block: 1rem;
    border-block: 1px solid var(--border);

    & div {
      display: grid;
      gap: 0.125rem;
    }
    & dt {
      color: var(--muted-foreground);
      font-size: 0.75rem;
    }
    & dd {
      margin: 0;
      font-size: 0.9375rem;
      font-weight: 500;
    }
  }

  .mk-availability-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  /* banner: one row - status, the sentence, the actions; anything else on a row of its own */
  .mk-availability[data-variant="banner"] {
    flex-flow: row wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
    padding: 0.875rem 1.25rem;
    box-shadow: none;

    & .mk-availability-title {
      flex: 1 1 16rem;
      font-size: 1rem;
    }
    & .mk-availability-text,
    & .mk-availability-facts {
      flex-basis: 100%;
    }
  }

  /* spotlight: the closing call - centered on the primary colour, the heading as large as a headline */
  .mk-availability[data-variant="spotlight"] {
    align-items: center;
    gap: 1.25rem;
    padding: clamp(2rem, 7cqi, 4.5rem) clamp(1.25rem, 5cqi, 3rem);
    border-color: transparent;
    background: var(--primary);
    color: var(--primary-foreground);
    text-align: center;

    & .mk-availability-status {
      color: var(--primary-foreground);
    }
    & .mk-availability-title {
      max-width: 22ch;
      font-size: clamp(2rem, 1rem + 5cqi, 4.25rem);
      line-height: 1.02;
      letter-spacing: -0.035em;
    }
    & .mk-availability-text {
      color: color-mix(in oklch, var(--primary-foreground) 78%, transparent);
    }
    & .mk-availability-facts {
      border-color: color-mix(in oklch, var(--primary-foreground) 22%, transparent);

      & dt {
        color: color-mix(in oklch, var(--primary-foreground) 70%, transparent);
      }
    }
    & .mk-availability-actions {
      justify-content: center;
    }
  }

  /* -- Print ------------------------------------------------------ */
  @media print {
    .mk-availability {
      break-inside: avoid;
      box-shadow: none;
    }
    .mk-availability-actions {
      display: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-contrast: more) {
    .mk-availability {
      border-color: var(--foreground);
    }
    .mk-availability-status,
    .mk-availability-text,
    .mk-availability-facts dt {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-availability[data-variant="spotlight"] {
      border-color: CanvasText;
    }
    .mk-availability,
    .mk-availability-facts {
      border-color: CanvasText;
    }
  }
}

/* ── components/resume-entry/resume-entry.css ── */
/* -- Resume Entry (website · Resume & Portfolio) --------------------------
   One line of a CV - a position, a degree, a volunteer role, a talk: the title, the organisation, when and where,
   a sentence, the highlights and the skills it used; several roles at one employer as a promotion path. Entries
   with a logo and rules between them (default), on a line through their logos (timeline), or with the dates in
   a column of their own (columns, the classic CV). The list is a container: narrow, the dates move under the
   title - no breakpoints, no script. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-resume-entries, .mk-resume-entries *, .mk-resume-entries ::before, .mk-resume-entries ::after) {
    box-sizing: border-box;
  }

  .mk-resume-entries {
    container: mk-resume-entries / inline-size;
    display: grid;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mk-resume-entry {
    position: relative;
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    column-gap: 1rem;
    padding-block: 1.25rem;

    &:first-child {
      padding-block-start: 0;
    }
    &:last-child {
      padding-block-end: 0;
    }
    & + .mk-resume-entry {
      border-block-start: 1px solid var(--border);
    }
    /* no logo: the body takes the row */
    &:not(:has(> .mk-resume-entry-mark)) {
      grid-template-columns: minmax(0, 1fr);
    }
  }

  /* the organisation's logo (an <img>) or its initials (a <span>); an empty span is a dot */
  .mk-resume-entry-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-weight: 600;
    object-fit: cover;
  }
  .mk-resume-entry-mark:not(img):empty {
    justify-self: center;
    width: 0.875rem;
    height: 0.875rem;
    margin-block-start: 0.3rem;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
  }

  .mk-resume-entry-body {
    display: grid;
    align-content: start;
    gap: 0.625rem;
    min-width: 0;
  }

  /* title and organisation on the start side, when and where on the end side */
  .mk-resume-entry-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.125rem 1rem;

    & > .mk-resume-entry-title {
      grid-column: 1;
      grid-row: 1;
    }
    & > .mk-resume-entry-org {
      grid-column: 1;
      grid-row: 2;
    }
    & > .mk-resume-entry-when {
      grid-column: 2;
      grid-row: 1;
      text-align: end;
    }
    & > .mk-resume-entry-where {
      grid-column: 2;
      grid-row: 2;
      text-align: end;
    }
  }

  .mk-resume-entry-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
  }

  /* the organisation and the kind of engagement, dot-separated */
  .mk-resume-entry-org {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    margin: 0;
    font-size: 0.875rem;

    & > * + *::before {
      content: "·";
      margin-inline-end: 0.5rem;
      color: var(--muted-foreground);
    }
    & > :not(:first-child) {
      color: var(--muted-foreground);
    }
    & a {
      color: inherit;
      font-weight: 500;
      text-decoration: none;

      &:hover {
        text-decoration: underline;
        text-underline-offset: 3px;
      }
    }
  }

  .mk-resume-entry-when,
  .mk-resume-entry-where {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .mk-resume-entry-when {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .mk-resume-entry-text {
    max-width: 44rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
  }

  .mk-resume-entry-highlights {
    display: grid;
    gap: 0.25rem;
    max-width: 44rem;
    margin: 0;
    padding-inline-start: 1.125rem;
    font-size: 0.9375rem;
    line-height: 1.55;

    & li::marker {
      color: var(--muted-foreground);
    }
  }

  /* the skills it used */
  .mk-resume-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
      padding: 0.125rem 0.5rem;
      border-radius: 999px;
      background: var(--secondary);
      color: var(--secondary-foreground);
      font-size: 0.75rem;
      font-weight: 500;
    }
  }

  /* several roles at one employer: a promotion path on a short line */
  .mk-resume-entry-roles {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & > li {
      position: relative;
      display: grid;
      gap: 0.25rem;
      padding-inline-start: 1.25rem;

      &::before {
        content: "";
        position: absolute;
        inset-block-start: 0.45rem;
        inset-inline-start: 0;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: var(--muted-foreground);
      }
      &:first-child::before {
        background: var(--primary);
      }
      &:not(:last-child)::after {
        content: "";
        position: absolute;
        inset-block: 1.2rem -0.8rem;
        inset-inline-start: calc(0.25rem - 1px);
        width: 2px;
        background: var(--border);
      }
    }
  }
  .mk-resume-entry-role {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
  }

  /* timeline: no rules - one line runs through the logos */
  .mk-resume-entries[data-variant="timeline"] {
    & > .mk-resume-entry {
      padding-block: 0 1.75rem;
      border-block-start: 0;

      &:last-child {
        padding-block-end: 0;
      }
      &:not(:last-child)::before {
        content: "";
        position: absolute;
        inset-block: 3.25rem 0.5rem;
        inset-inline-start: calc(1.375rem - 1px);
        width: 2px;
        background: var(--border);
      }
      &:has(> .mk-resume-entry-mark:not(img):empty):not(:last-child)::before {
        inset-block-start: 1.6rem;
      }
    }
  }

  /* columns: the classic CV - the dates in a column of their own, no logos */
  .mk-resume-entries[data-variant="columns"] {
    & > .mk-resume-entry {
      grid-template-columns: minmax(0, 1fr);
      padding-inline-start: 9.5rem;
    }
    & .mk-resume-entry-mark {
      display: none;
    }
    & .mk-resume-entry-body {
      position: relative;
    }
    /* the body is a grid AND the date's containing block: the head's grid placement would pick its area */
    & .mk-resume-entry-head > .mk-resume-entry-when {
      position: absolute;
      grid-area: auto;
      inset-block-start: 0.1rem;
      inset-inline-start: -9.5rem;
      width: 8rem;
      color: var(--foreground);
      font-weight: 500;
      text-align: start;
      white-space: normal;
    }
  }

  /* narrow: when and where move under the title, the date column folds in */
  @container mk-resume-entries (max-width: 34rem) {
    .mk-resume-entry-head {
      grid-template-columns: minmax(0, 1fr);

      & > .mk-resume-entry-title,
      & > .mk-resume-entry-org,
      & > .mk-resume-entry-when,
      & > .mk-resume-entry-where {
        grid-column: 1;
        grid-row: auto;
        text-align: start;
      }
    }
    .mk-resume-entries[data-variant="columns"] {
      & > .mk-resume-entry {
        padding-inline-start: 0;
      }
      & .mk-resume-entry-head > .mk-resume-entry-when {
        position: static;
        width: auto;
        color: var(--muted-foreground);
        font-weight: 400;
      }
    }
  }

  /* horizontal: the entries side by side, left to right on one line through their marks; more than fit scroll sideways */
  .mk-resume-entries[data-variant="horizontal"] {
    grid-auto-columns: minmax(14rem, 1fr);
    grid-auto-flow: column;
    padding-block-end: 0.75rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;

    & > .mk-resume-entry {
      grid-template-columns: minmax(0, 1fr);
      row-gap: 1rem;
      align-content: start;
      padding: 0 1.5rem 0 0;
      border-block-start: 0;
      scroll-snap-align: start;

      &:not(:last-child)::before {
        content: "";
        position: absolute;
        inset-block-start: calc(1.375rem - 1px);
        inset-inline: 3.25rem 0.5rem;
        height: 2px;
        background: var(--border);
      }
      &:has(> .mk-resume-entry-mark:not(img):empty):not(:last-child)::before {
        inset-block-start: calc(0.7375rem - 1px);
        inset-inline-start: 1.375rem;
      }
    }
    & .mk-resume-entry-mark:not(img):empty {
      justify-self: start;
    }
    /* the date leads, the rest stacks under it */
    & .mk-resume-entry-head {
      grid-template-columns: minmax(0, 1fr);

      & > .mk-resume-entry-when {
        grid-column: 1;
        grid-row: 1;
        color: var(--primary);
        font-weight: 600;
        text-align: start;
      }
      & > .mk-resume-entry-title {
        grid-row: 2;
      }
      & > .mk-resume-entry-org {
        grid-row: 3;
      }
      & > .mk-resume-entry-where {
        grid-column: 1;
        grid-row: 4;
        text-align: start;
      }
    }
  }

  /* the projects of an entry: Project Items in a grid under it - the timeline and the work in one view */
  .mk-resume-entry-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: 1.25rem 1rem;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
  }

  /* -- Print ------------------------------------------------------ */
  @media print {
    .mk-resume-entry {
      break-inside: avoid;
    }
    /* on paper the horizontal line stacks: nothing may hide in a scroll box */
    .mk-resume-entries[data-variant="horizontal"] {
      grid-auto-flow: row;
      overflow: visible;

      & > .mk-resume-entry {
        padding-block-end: 1rem;
      }
      & > .mk-resume-entry::before {
        display: none;
      }
    }
    .mk-resume-entry-tags li {
      border: 1px solid var(--border);
      background: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-contrast: more) {
    .mk-resume-entry-org > :not(:first-child),
    .mk-resume-entry-when,
    .mk-resume-entry-where,
    .mk-resume-entry-text {
      color: var(--foreground);
    }
    .mk-resume-entry-tags li {
      border: 1px solid var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-resume-entry-tags li,
    .mk-resume-entry-mark {
      border: 1px solid CanvasText;
    }
    .mk-resume-entry-mark:not(img):empty,
    .mk-resume-entry-roles > li::before,
    .mk-resume-entry-roles > li::after,
    .mk-resume-entries[data-variant="timeline"] > .mk-resume-entry::before,
    .mk-resume-entries[data-variant="horizontal"] > .mk-resume-entry::before {
      forced-color-adjust: none;
      background: CanvasText;
    }
  }
}

/* ── components/skill-matrix/skill-matrix.css ── */
/* -- Skill Matrix (website · Resume & Portfolio) --------------------------
   What someone can do, in groups: each skill a name, its level as a native <meter> and a note (years, a CEFR
   level). Levels as bars (default) or as five dots (dots - the mask turns the meter's fill into whole dots), or no
   levels at all (tags, pills). The rows of a group share their columns through subgrid; the groups fill an
   auto-fill grid - no breakpoints, no script. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-skill-matrix, .mk-skill-matrix *, .mk-skill-matrix ::before, .mk-skill-matrix ::after) {
    box-sizing: border-box;
  }

  .mk-skill-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
    gap: 2rem 2.5rem;
    width: 100%;
  }

  .mk-skill-matrix-group {
    display: grid;
    align-content: start;
    gap: 0.875rem;
    min-width: 0;
  }

  .mk-skill-matrix-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;

    & svg {
      flex: none;
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
    }
  }

  /* name | level | note - one set of columns for the whole group */
  .mk-skill-matrix-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(4rem, 6.5rem) auto;
    align-items: center;
    gap: 0.625rem 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mk-skill-matrix-skill {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
  }

  .mk-skill-matrix-name {
    grid-column: 1;
    font-size: 0.875rem;
    font-weight: 500;
    overflow-wrap: anywhere;
  }

  .mk-skill-matrix-note {
    grid-column: 3;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    text-align: end;
    white-space: nowrap;
  }

  /* the level: a native <meter>, drawn as a bar - track and fill per engine */
  .mk-skill-matrix-level {
    --mk-skill-matrix-bar: 0.375rem;
    display: block;
    grid-column: 2;
    width: 100%;
    height: var(--mk-skill-matrix-bar);
    border: 0;
    border-radius: 999px;
    background: var(--muted);
    appearance: none;

    /* Chromium resolves a percentage height of its bar to half the meter: a length, inherited from the meter */
    &::-webkit-meter-bar {
      height: var(--mk-skill-matrix-bar);
      border: 0;
      border-radius: 999px;
      background: var(--muted);
    }
    &::-webkit-meter-optimum-value,
    &::-webkit-meter-suboptimum-value,
    &::-webkit-meter-even-less-good-value {
      height: var(--mk-skill-matrix-bar);
      border-radius: 999px;
      background: var(--primary);
    }
    &::-moz-meter-bar {
      border-radius: 999px;
      background: var(--primary);
    }
  }

  /* dots: five dots - a 20% tile per dot, so a fill that ends on a whole step ends between two dots */
  .mk-skill-matrix[data-variant="dots"] {
    & .mk-skill-matrix-list {
      grid-template-columns: minmax(0, 1fr) 5rem auto;
    }
    & .mk-skill-matrix-level {
      --mk-skill-matrix-bar: 0.75rem;
      border-radius: 0;
      mask: radial-gradient(circle closest-side, #000 92%, transparent) 0 50% / 20% 100% repeat-x;

      /* square ends: a rounded end would bite into the last whole dot */
      &::-webkit-meter-bar,
      &::-webkit-meter-optimum-value,
      &::-webkit-meter-suboptimum-value,
      &::-webkit-meter-even-less-good-value {
        border-radius: 0;
      }
      &::-moz-meter-bar {
        border-radius: 0;
      }
    }
  }

  /* stars: each level five stars - a star tile masks the meter, so half steps show half a star; amber like Rating */
  .mk-skill-matrix[data-variant="stars"] {
    --mk-skill-matrix-star: #f59e0b;
    --mk-skill-matrix-empty: color-mix(in oklch, var(--foreground) 14%, transparent);

    & .mk-skill-matrix-list {
      grid-template-columns: minmax(0, 1fr) 6.25rem auto;
    }
    & .mk-skill-matrix-level {
      --mk-skill-matrix-bar: 1.25rem;
      border-radius: 0;
      background: var(--mk-skill-matrix-empty);
      mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01z'/%3E%3C/svg%3E")
        0 50% / 20% 100% repeat-x;

      &::-webkit-meter-bar {
        border-radius: 0;
        background: var(--mk-skill-matrix-empty);
      }
      &::-webkit-meter-optimum-value,
      &::-webkit-meter-suboptimum-value,
      &::-webkit-meter-even-less-good-value {
        border-radius: 0;
        background: var(--mk-skill-matrix-star);
      }
      &::-moz-meter-bar {
        border-radius: 0;
        background: var(--mk-skill-matrix-star);
      }
    }
  }

  /* tags: no levels - the skills as pills, the note inside */
  .mk-skill-matrix[data-variant="tags"] {
    & .mk-skill-matrix-list {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    & .mk-skill-matrix-skill {
      display: flex;
      align-items: baseline;
      gap: 0.375rem;
      padding: 0.3125rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: 999px;
    }
    & .mk-skill-matrix-name {
      font-size: 0.8125rem;
    }
    & .mk-skill-matrix-level {
      display: none;
    }
  }

  /* -- Print ------------------------------------------------------ */
  @media print {
    .mk-skill-matrix-group {
      break-inside: avoid;
    }
    /* a level is a background - paper keeps it only when asked */
    .mk-skill-matrix-level {
      print-color-adjust: exact;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-contrast: more) {
    .mk-skill-matrix-note,
    .mk-skill-matrix-title svg {
      color: var(--foreground);
    }
    .mk-skill-matrix-level {
      outline: 1px solid var(--foreground);
    }
    .mk-skill-matrix[data-variant="tags"] .mk-skill-matrix-skill {
      border-color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-skill-matrix[data-variant="stars"] .mk-skill-matrix-level {
      outline: 0;
      background: GrayText;
      &::-webkit-meter-bar {
        background: GrayText;
      }
      &::-webkit-meter-optimum-value,
      &::-webkit-meter-suboptimum-value,
      &::-webkit-meter-even-less-good-value {
        background: Highlight;
      }
      &::-moz-meter-bar {
        background: Highlight;
      }
    }
    .mk-skill-matrix-level {
      forced-color-adjust: none;
      background: Canvas;
      outline: 1px solid CanvasText;

      &::-webkit-meter-bar {
        background: Canvas;
      }
      &::-webkit-meter-optimum-value,
      &::-webkit-meter-suboptimum-value,
      &::-webkit-meter-even-less-good-value {
        background: Highlight;
      }
      &::-moz-meter-bar {
        background: Highlight;
      }
    }
    .mk-skill-matrix[data-variant="tags"] .mk-skill-matrix-skill {
      border-color: CanvasText;
    }
  }
}

/* ── components/repository-item/repository-item.css ── */
/* -- Repository Item (website · Resume & Portfolio) -----------------------
   One open-source project of a developer: owner/name as a stretched link, the visibility, a description, the topics
   and the numbers - language (a dot in its colour), stars, forks, licence, last update. A card in a grid (default),
   or a row of a list (plain). The language colour comes from data-language or from the dot's own `color` - no
   script. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-repository-item, .mk-repository-item *, .mk-repository-item ::before, .mk-repository-item ::after) {
    box-sizing: border-box;
  }

  .mk-repository-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    height: 100%;
    padding: 1rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    color: var(--card-foreground);
    transition: border-color 150ms;

    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    &:has(.mk-repository-item-name a:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  .mk-repository-item-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;

    & > svg {
      flex: none;
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
    }
    & .badge {
      margin-inline-start: auto;
    }
  }

  .mk-repository-item-name {
    min-width: 0;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    overflow-wrap: anywhere;

    & a {
      color: inherit;
      text-decoration: none;

      /* the whole card is the link */
      &::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
      }
      &:focus-visible {
        outline: none;
      }
    }
  }
  .mk-repository-item:hover .mk-repository-item-name a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .mk-repository-item-owner {
    color: var(--muted-foreground);
    font-weight: 400;
  }

  .mk-repository-item-description {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.55;
    text-wrap: pretty;
  }

  .mk-repository-item-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
      padding: 0.0625rem 0.5rem;
      border-radius: 999px;
      background: color-mix(in oklch, var(--primary) 12%, transparent);
      color: var(--foreground);
      font-size: 0.75rem;
      font-weight: 500;
    }
  }

  /* language, stars, forks, licence, last update - pushed to the bottom of the card */
  .mk-repository-item-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 1rem;
    margin: auto 0 0;
    padding: 0.25rem 0 0;
    list-style: none;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;

    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.3125rem;
    }
    & svg {
      flex: none;
      width: 0.875rem;
      height: 0.875rem;
    }
  }

  /* the language dot: its colour is `color` - set by data-language, or inline */
  .mk-repository-item-language {
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: currentColor;

    &[data-language="typescript"] {
      color: #3178c6;
    }
    &[data-language="javascript"] {
      color: #f1e05a;
    }
    &[data-language="css"] {
      color: #663399;
    }
    &[data-language="html"] {
      color: #e34c26;
    }
    &[data-language="rust"] {
      color: #dea584;
    }
    &[data-language="go"] {
      color: #00add8;
    }
    &[data-language="python"] {
      color: #3572a5;
    }
    &[data-language="swift"] {
      color: #f05138;
    }
    &[data-language="kotlin"] {
      color: #a97bff;
    }
    &[data-language="shell"] {
      color: #89e051;
    }
  }

  /* plain: a row of a list - no card, a rule below */
  .mk-repository-item[data-variant="plain"] {
    height: auto;
    padding: 0 0 1rem;
    border: 0;
    border-block-end: 1px solid var(--border);
    border-radius: 0;
    background: none;

    &:hover {
      border-color: var(--border);
    }
  }

  /* -- Print ------------------------------------------------------ */
  @media print {
    .mk-repository-item {
      break-inside: avoid;
    }
    .mk-repository-item-language {
      print-color-adjust: exact;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-repository-item {
      transition: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-repository-item {
      border-color: var(--foreground);
    }
    .mk-repository-item-owner,
    .mk-repository-item-description,
    .mk-repository-item-stats {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-repository-item {
      border-color: CanvasText;
    }
    .mk-repository-item-topics li {
      border: 1px solid CanvasText;
    }
    .mk-repository-item-language {
      forced-color-adjust: none;
    }
  }
}

/* ── components/portfolio-grid/portfolio-grid.css ── */
/* -- Portfolio Grid (website · Resume & Portfolio) ------------------------
   The work, arranged: a list of projects, each a link around its picture and caption. A bento mosaic (default -
   items span wide, tall or big, the gaps fill densely), masonry columns, scattered polaroids that straighten on
   hover, a film strip that scrolls sideways and snaps, or an editorial index of big titles whose picture shows on
   hover and focus. The list is a container: narrow, the spans fold and the index shows its pictures inline. No
   script - pair the items with shape utilities, Motion entrances or Parallax reveals for character. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-portfolio-grid, .mk-portfolio-grid *, .mk-portfolio-grid ::before, .mk-portfolio-grid ::after) {
    box-sizing: border-box;
  }

  /* bento: a dense mosaic - items span wide, tall or big */
  .mk-portfolio-grid {
    container: mk-portfolio-grid / inline-size;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
    grid-auto-rows: 12rem;
    grid-auto-flow: dense;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: mk-portfolio-grid;
  }

  .mk-portfolio-grid-item {
    min-width: 0;
    counter-increment: mk-portfolio-grid;

    &[data-span="wide"] {
      grid-column: span 2;
    }
    &[data-span="tall"] {
      grid-row: span 2;
    }
    &[data-span="big"] {
      grid-column: span 2;
      grid-row: span 2;
    }
  }

  .mk-portfolio-grid-link {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);
    color: inherit;
    text-decoration: none;

    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 3px;
    }
  }

  .mk-portfolio-grid-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .mk-portfolio-grid-link:is(:hover, :focus-visible) .mk-portfolio-grid-media {
    scale: 1.06;
  }

  /* the caption: over the picture on a scrim in the mosaic, under it elsewhere */
  .mk-portfolio-grid-caption {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 0.125rem;
    padding: 2.5rem 1rem 0.875rem;
    background: linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0));
    color: #fff;
    transition: translate 300ms ease;
  }
  .mk-portfolio-grid-link:is(:hover, :focus-visible) .mk-portfolio-grid-caption {
    translate: 0 -0.25rem;
  }
  .mk-portfolio-grid-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
  }
  .mk-portfolio-grid-meta {
    font-size: 0.8125rem;
    opacity: 0.85;
  }

  /* narrow: the spans fold into the single column */
  @container mk-portfolio-grid (max-width: 26rem) {
    .mk-portfolio-grid-item[data-span] {
      grid-column: auto;
      grid-row: auto;
    }
  }

  /* masonry, scatter, strip: the caption sits under the picture */
  .mk-portfolio-grid:is([data-variant="masonry"], [data-variant="scatter"], [data-variant="strip"]) {
    & .mk-portfolio-grid-link {
      height: auto;
      overflow: visible;
      background: none;
    }
    & .mk-portfolio-grid-media {
      height: auto;
      border-radius: var(--radius-xl);
    }
    & .mk-portfolio-grid-caption {
      position: static;
      padding: 0.75rem 0.125rem 0;
      background: none;
      color: inherit;
    }
    & .mk-portfolio-grid-meta {
      color: var(--muted-foreground);
      opacity: 1;
    }
    & .mk-portfolio-grid-link:is(:hover, :focus-visible) .mk-portfolio-grid-caption {
      translate: none;
    }
  }

  /* masonry: columns of natural heights */
  .mk-portfolio-grid[data-variant="masonry"] {
    display: block;
    columns: 15rem;
    column-gap: 1rem;

    & .mk-portfolio-grid-item {
      margin-block-end: 1.25rem;
      break-inside: avoid;
    }
    & .mk-portfolio-grid-link {
      border-radius: var(--radius-xl);
    }
    & .mk-portfolio-grid-media {
      overflow: hidden;
    }
  }

  /* scatter: polaroids on a table - each one tilted, straight and lifted on hover or focus */
  .mk-portfolio-grid[data-variant="scatter"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 0.5rem;
    padding-block: 1rem;

    & .mk-portfolio-grid-item {
      --mk-portfolio-grid-tilt: -3deg;
      position: relative;
      width: clamp(10rem, 30%, 15rem);

      &:nth-child(2n) {
        --mk-portfolio-grid-tilt: 2.5deg;
      }
      &:nth-child(3n) {
        --mk-portfolio-grid-tilt: -1.5deg;
      }
      &:nth-child(5n) {
        --mk-portfolio-grid-tilt: 4deg;
      }
      &:has(:hover, :focus-visible) {
        z-index: 1;
      }
    }
    & .mk-portfolio-grid-link {
      padding: 0.75rem 0.75rem 1rem;
      border-radius: 2px;
      background: var(--card);
      color: var(--card-foreground);
      box-shadow: var(--shadow-lg);
      rotate: var(--mk-portfolio-grid-tilt);
      transition:
        rotate 300ms ease,
        scale 300ms ease,
        box-shadow 300ms ease;

      &:is(:hover, :focus-visible) {
        rotate: 0deg;
        scale: 1.06;
        box-shadow: var(--shadow-2xl);
      }
    }
    & .mk-portfolio-grid-media {
      aspect-ratio: 1;
      border-radius: 0;
    }
    & .mk-portfolio-grid-link:is(:hover, :focus-visible) .mk-portfolio-grid-media {
      scale: none;
    }
    & .mk-portfolio-grid-caption {
      text-align: center;
    }
    & .mk-portfolio-grid-title {
      font-family: var(--font-serif);
      font-style: italic;
      font-weight: 500;
    }
  }

  /* strip: a film strip that scrolls sideways and snaps to each project */
  .mk-portfolio-grid[data-variant="strip"] {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: min(78%, 20rem);
    grid-auto-rows: auto;
    gap: 1.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-block-end: 0.75rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;

    & .mk-portfolio-grid-item {
      scroll-snap-align: start;
    }
    & .mk-portfolio-grid-link {
      overflow: hidden;
    }
    & .mk-portfolio-grid-media {
      aspect-ratio: 4 / 5;
    }
  }

  /* index: an editorial list - numbered big titles; the picture shows beside the title on hover or focus */
  .mk-portfolio-grid[data-variant="index"] {
    display: block;
    border-block-start: 1px solid var(--border);

    & .mk-portfolio-grid-item {
      position: relative;
      border-block-end: 1px solid var(--border);
    }
    & .mk-portfolio-grid-link {
      position: static;
      display: grid;
      grid-template-columns: 3rem minmax(0, 1fr) auto;
      align-items: baseline;
      gap: 1rem;
      height: auto;
      padding-block: 1.25rem;
      overflow: visible;
      border-radius: 0;
      background: none;

      &::before {
        content: counter(mk-portfolio-grid, decimal-leading-zero);
        color: var(--muted-foreground);
        font-family: var(--font-mono);
        font-size: 0.8125rem;
      }
    }
    & .mk-portfolio-grid-caption {
      position: static;
      display: contents;
      padding: 0;
      background: none;
      color: inherit;
    }
    & .mk-portfolio-grid-title {
      font-size: clamp(1.5rem, 1rem + 3cqi, 3rem);
      font-weight: 600;
      letter-spacing: -0.03em;
      line-height: 1.1;
      transition: translate 300ms ease;
    }
    & .mk-portfolio-grid-meta {
      color: var(--muted-foreground);
      font-size: 0.875rem;
      opacity: 1;
      text-align: end;
    }
    & .mk-portfolio-grid-media {
      position: absolute;
      inset-block-start: 50%;
      inset-inline-end: 22%;
      z-index: 1;
      width: clamp(9rem, 22cqi, 15rem);
      height: auto;
      aspect-ratio: 4 / 3;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-xl);
      opacity: 0;
      pointer-events: none;
      rotate: -4deg;
      scale: 0.85;
      translate: 0 -50%;
      transition:
        opacity 250ms ease,
        scale 300ms cubic-bezier(0.2, 0.7, 0.2, 1),
        rotate 300ms ease;
    }
    & .mk-portfolio-grid-link:is(:hover, :focus-visible) {
      & .mk-portfolio-grid-title {
        translate: 0.75rem 0;
      }
      & .mk-portfolio-grid-media {
        opacity: 1;
        rotate: 2deg;
        scale: 1;
      }
    }
  }

  /* a narrow index: each picture a thumbnail in the row, always shown */
  @container mk-portfolio-grid (max-width: 36rem) {
    .mk-portfolio-grid[data-variant="index"] {
      & .mk-portfolio-grid-link {
        grid-template-columns: 4rem minmax(0, 1fr);
        align-items: center;

        &::before {
          display: none;
        }
      }
      & .mk-portfolio-grid-media {
        position: static;
        grid-row: span 2;
        width: 4rem;
        opacity: 1;
        rotate: none;
        scale: none;
        translate: none;
        box-shadow: none;
      }
      & .mk-portfolio-grid-meta {
        grid-column: 2;
        text-align: start;
      }
      & .mk-portfolio-grid-link:is(:hover, :focus-visible) .mk-portfolio-grid-title {
        translate: none;
      }
    }
  }

  /* -- Print ------------------------------------------------------ */
  @media print {
    .mk-portfolio-grid-item {
      break-inside: avoid;
    }
    .mk-portfolio-grid[data-variant="strip"] {
      grid-auto-flow: row;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      overflow: visible;
    }
    .mk-portfolio-grid[data-variant="index"] .mk-portfolio-grid-media {
      display: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-portfolio-grid-media,
    .mk-portfolio-grid-caption,
    .mk-portfolio-grid-title,
    .mk-portfolio-grid[data-variant="scatter"] .mk-portfolio-grid-link {
      transition: none;
    }
    .mk-portfolio-grid-link:is(:hover, :focus-visible) .mk-portfolio-grid-media {
      scale: none;
    }
  }

  @media (prefers-contrast: more) {
    .mk-portfolio-grid-caption {
      background: rgb(0 0 0 / 0.85);
    }
    .mk-portfolio-grid:is(
        [data-variant="masonry"],
        [data-variant="scatter"],
        [data-variant="strip"],
        [data-variant="index"]
      )
      .mk-portfolio-grid-meta {
      color: var(--foreground);
    }
  }

  @media (forced-colors: active) {
    .mk-portfolio-grid-link {
      border: 1px solid CanvasText;
    }
    .mk-portfolio-grid-caption {
      forced-color-adjust: none;
      background: Canvas;
      color: CanvasText;
    }
  }
}

/* ── components/cta/cta.css ── */
/* -- CTA (website · Events & Promotions) ----------------------------------
   Combines a focused message with a prominent action - centered, split, on a dark glow or over a picture. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-cta, .mk-cta *, .mk-cta ::before, .mk-cta ::after) {
    box-sizing: border-box;
  }

  .mk-cta {
    container: mk-cta / inline-size;
    width: 100%;
  }
  .mk-cta-inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 3.5rem 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--muted);
    text-align: center;
  }
  .mk-cta-copy {
    display: grid;
    gap: 0.75rem;
    justify-items: inherit;
    max-width: 40rem;
  }
  .mk-cta-title {
    margin: 0;
    font-size: clamp(1.75rem, 4.5cqi, 2.75rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .mk-cta-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    text-wrap: pretty;
  }
  .mk-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .mk-cta-note {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-cta-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 26rem;
    & .input {
      flex: 1 1 12rem;
    }
  }

  .mk-cta[data-variant="dark"] .mk-cta-inner {
    background:
      radial-gradient(50% 80% at 15% 0%, color-mix(in oklch, var(--chart-1) 45%, transparent), transparent 70%),
      radial-gradient(45% 80% at 90% 100%, color-mix(in oklch, var(--chart-2) 40%, transparent), transparent 70%),
      var(--foreground);
    color: var(--background);

    & :is(.mk-cta-desc, .mk-cta-note) {
      color: color-mix(in oklch, var(--background) 72%, transparent);
    }
  }

  .mk-cta[data-variant="image"] .mk-cta-inner {
    padding-block: 5rem;
    background: transparent;
    color: #fff;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(oklch(0.15 0.02 260 / 0.55), oklch(0.15 0.02 260 / 0.75));
    }
    & .mk-cta-desc {
      color: oklch(1 0 0 / 0.82);
    }
    & .btn[data-variant="outline"] {
      border-color: oklch(1 0 0 / 0.45);
      background: transparent;
      color: inherit;
    }
  }
  .mk-cta-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @container mk-cta (min-width: 44rem) {
    .mk-cta[data-variant="split"] .mk-cta-inner {
      flex-direction: row;
      justify-content: space-between;
      gap: 2rem;
      padding: 2.5rem 3rem;
      text-align: start;
    }
    .mk-cta[data-variant="split"] .mk-cta-copy {
      justify-items: start;
    }
    .mk-cta[data-variant="split"] .mk-cta-actions {
      flex: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-cta-inner {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/announcement/announcement.css ── */
/* -- Announcement (website · Events & Promotions) -------------------------
   Highlights an important update with an optional link or dismissal - a bar, a filled strip, an inline card or a floating notice. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-announcement, .mk-announcement *, .mk-announcement ::before, .mk-announcement ::after) {
    box-sizing: border-box;
  }

  .mk-announcement {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--muted);
    color: var(--foreground);

    &:not([open]) {
      display: none;
    }
  }
  .mk-announcement-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem 0.75rem;
    padding: 0.625rem 3rem;
    font-size: 0.875rem;
    text-align: center;

    & > svg {
      flex: none;
      width: 1rem;
      height: 1rem;
    }
    & p {
      margin: 0;
    }
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      color: inherit;
      font-weight: 600;
      text-underline-offset: 3px;
    }
    & a svg {
      width: 0.875rem;
      height: 0.875rem;
    }
    & a:focus-visible {
      outline: 2px solid currentColor;
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }
  .mk-announcement-close {
    position: absolute;
    top: 50%;
    inset-inline-end: 0.5rem;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;

    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      opacity: 1;
      background: color-mix(in oklch, currentColor 12%, transparent);
    }
    &:focus-visible {
      opacity: 1;
      outline: 2px solid currentColor;
      outline-offset: 1px;
    }
  }
  .mk-announcement-tag {
    padding: 0.0625rem 0.5rem;
    border-radius: 999px;
    background: var(--foreground);
    color: var(--background);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mk-announcement[data-variant="primary"] {
    background: var(--primary);
    color: var(--primary-foreground);

    & .mk-announcement-tag {
      background: var(--primary-foreground);
      color: var(--primary);
    }
  }

  .mk-announcement[data-variant="inline"] {
    border: 1px solid color-mix(in oklab, var(--chart-1) 35%, var(--border));
    border-radius: var(--radius-xl);
    background: color-mix(in oklab, var(--chart-1) 7%, var(--card));

    & .mk-announcement-inner {
      justify-content: flex-start;
      padding: 1rem 3.25rem 1rem 1.25rem;
      text-align: start;
    }
    & .mk-announcement-inner > svg {
      color: var(--chart-1);
      width: 1.25rem;
      height: 1.25rem;
    }
    & .mk-announcement-close {
      top: 0.75rem;
      translate: none;
    }
  }

  .mk-announcement[data-variant="floating"] {
    position: fixed;
    inset: auto 1rem 1rem;
    z-index: 40;
    width: auto;
    max-width: 34rem;
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--popover);
    color: var(--popover-foreground);
    box-shadow: var(--shadow-xl);

    & .mk-announcement-inner {
      justify-content: flex-start;
      padding: 0.875rem 3.25rem 0.875rem 1rem;
      text-align: start;
    }
  }
  @starting-style {
    .mk-announcement[data-variant="floating"][open] {
      opacity: 0;
      translate: 0 1rem;
    }
  }
  .mk-announcement[data-variant="floating"] {
    transition:
      opacity 300ms ease,
      translate 300ms ease;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-announcement[data-variant="floating"] {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-announcement {
      border-block-end: 1px solid CanvasText;
    }
    .mk-announcement-close {
      border: 1px solid ButtonText;
    }
  }
}

/* ── components/offer-banner/offer-banner.css ── */
/* -- Offer Banner (website · Events & Promotions) -------------------------
   Presents a promotion with its conditions and action - a gradient card, a slim ribbon or a coupon with a tear-off edge. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-offer-banner, .mk-offer-banner *, .mk-offer-banner ::before, .mk-offer-banner ::after) {
    box-sizing: border-box;
  }

  .mk-offer-banner {
    container: mk-offer-banner / inline-size;
    width: 100%;
  }
  .mk-offer-banner-inner {
    display: grid;
    gap: 1.25rem;
    align-items: center;
    padding: 2rem;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(60% 120% at 0% 0%, color-mix(in oklch, var(--chart-1) 32%, transparent), transparent 70%),
      radial-gradient(60% 120% at 100% 100%, color-mix(in oklch, var(--chart-3) 28%, transparent), transparent 70%),
      var(--card);
    border: 1px solid var(--border);
  }
  .mk-offer-banner-discount {
    font-size: clamp(3rem, 10cqi, 5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
  }
  .mk-offer-banner-copy {
    display: grid;
    gap: 0.5rem;
  }
  .mk-offer-banner-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .mk-offer-banner-terms {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    line-height: 1.5;
  }
  .mk-offer-banner-action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }
  .mk-offer-banner-code {
    padding: 0.375rem 0.75rem;
    border: 1.5px dashed currentColor;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    user-select: all;
  }

  .mk-offer-banner[data-variant="ribbon"] .mk-offer-banner-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    padding: 0.625rem 1rem;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, var(--chart-1), var(--chart-3));
    color: #fff;
    font-size: 0.875rem;
    text-align: center;

    & .mk-offer-banner-title {
      font-size: 0.875rem;
      font-weight: 600;
    }
    & .mk-offer-banner-code {
      padding: 0.0625rem 0.5rem;
      font-size: 0.8125rem;
      border-color: oklch(1 0 0 / 0.7);
    }
    & .mk-offer-banner-terms {
      color: oklch(1 0 0 / 0.85);
    }
  }

  /* coupon: notched edges and a dashed tear line */
  .mk-offer-banner[data-variant="coupon"] .mk-offer-banner-inner {
    --_notch: 0.875rem;

    grid-template-columns: auto 1fr;
    gap: 0;
    padding: 0;
    border: 0;
    background: color-mix(in oklab, var(--chart-4) 18%, var(--card));
    mask:
      radial-gradient(circle at 0 50%, #0000 var(--_notch), #000 calc(var(--_notch) + 0.5px)) left / 51% 100% no-repeat,
      radial-gradient(circle at 100% 50%, #0000 var(--_notch), #000 calc(var(--_notch) + 0.5px)) right / 51% 100%
        no-repeat;

    & .mk-offer-banner-discount {
      display: grid;
      place-items: center;
      height: 100%;
      padding: 1.5rem 2rem;
      border-inline-end: 2px dashed color-mix(in oklch, var(--foreground) 25%, transparent);
      font-size: clamp(2.25rem, 7cqi, 3.5rem);
    }
    & .mk-offer-banner-copy {
      padding: 1.5rem 2rem;
    }
  }

  @container mk-offer-banner (min-width: 44rem) {
    .mk-offer-banner:not([data-variant]) .mk-offer-banner-inner {
      grid-template-columns: auto minmax(0, 1fr) auto;
      gap: 2.5rem;
      padding: 2rem 2.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-offer-banner-inner {
      border: 1px solid CanvasText;
    }
    .mk-offer-banner[data-variant="coupon"] .mk-offer-banner-inner {
      mask: none;
    }
  }
}

/* ── components/event-countdown/event-countdown.css ── */
/* -- Event Countdown (website · Events & Promotions) ----------------------
   Displays the remaining time until a specified event - days, hours, minutes and seconds ticking down beside the date and the action. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-event-countdown, .mk-event-countdown *, .mk-event-countdown ::before, .mk-event-countdown ::after) {
    box-sizing: border-box;
  }

  .mk-event-countdown {
    container: mk-event-countdown / inline-size;
    width: 100%;
  }
  .mk-event-countdown-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    text-align: center;
  }
  .mk-event-countdown-eyebrow {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mk-event-countdown-title {
    margin: 0;
    font-size: clamp(1.5rem, 4cqi, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .mk-event-countdown-date {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }
  .mk-event-countdown-timer {
    justify-content: center;
  }

  .mk-event-countdown[data-variant="dark"] .mk-event-countdown-inner {
    border: 0;
    background:
      radial-gradient(70% 90% at 50% 0%, color-mix(in oklch, var(--chart-1) 40%, transparent), transparent 70%),
      var(--foreground);
    color: var(--background);

    & .mk-event-countdown-eyebrow {
      color: color-mix(in oklab, var(--background) 80%, var(--chart-1));
    }
    & .mk-event-countdown-date {
      color: color-mix(in oklch, var(--background) 70%, transparent);
    }
    & .countdown-unit {
      background: color-mix(in oklch, var(--background) 10%, transparent);
      color: inherit;
    }
    & .countdown-label {
      color: color-mix(in oklch, var(--background) 65%, transparent);
    }
  }

  .mk-event-countdown[data-variant="inline"] .mk-event-countdown-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 2rem;
    padding: 1.5rem 2rem;

    & .mk-event-countdown-title {
      font-size: clamp(1.25rem, 3cqi, 1.625rem);
    }
    & .mk-event-countdown-timer {
      gap: 0.5rem;
    }
    & .countdown-unit {
      min-width: 4.25rem;
      padding: 0.5rem 0.75rem;
    }
    & .countdown {
      font-size: 1.75rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-event-countdown-inner {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/booking-form/booking-form.css ── */
/* -- Booking Form (website · Events & Promotions) -------------------------
   Collects a service selection, available slot, and customer details - radio cards, a native date, time chips and the contact fields. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-booking-form, .mk-booking-form *, .mk-booking-form ::before, .mk-booking-form ::after) {
    box-sizing: border-box;
  }

  .mk-booking-form {
    container: mk-booking-form / inline-size;
    width: 100%;
  }
  .mk-booking-form form {
    display: grid;
    gap: 2rem;
  }
  .mk-booking-form-group {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    & legend {
      margin-block-end: 0.75rem;
      padding: 0;
      font-size: 1rem;
      font-weight: 600;
    }
  }
  .mk-booking-form-options {
    display: grid;
    gap: 0.5rem;
  }
  .mk-booking-form-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition:
      border-color 150ms ease,
      background-color 150ms ease;

    & span {
      display: grid;
    }
    & small {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
    & b {
      font-variant-numeric: tabular-nums;
    }
    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    &:has(input:checked) {
      border-color: var(--primary);
      background: color-mix(in oklch, var(--primary) 6%, transparent);
      box-shadow: 0 0 0 1px var(--primary);
    }
  }
  .mk-booking-form-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
    gap: 0.5rem;
  }
  .mk-booking-form-slot {
    position: relative;
    display: grid;

    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & span {
      display: grid;
      place-items: center;
      height: 2.5rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      font-size: 0.875rem;
      font-weight: 500;
      font-variant-numeric: tabular-nums;
      transition:
        background-color 150ms ease,
        color 150ms ease;
    }
    &:hover span {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    & input:checked + span {
      border-color: var(--primary);
      background: var(--primary);
      color: var(--primary-foreground);
    }
    & input:focus-visible + span {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
    & input:disabled {
      cursor: not-allowed;
    }
    & input:disabled + span {
      color: var(--muted-foreground);
      text-decoration: line-through;
      opacity: 0.55;
      background: var(--muted);
    }
  }
  .mk-booking-form-tz {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-booking-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem;
  }
  .mk-booking-form-field {
    display: grid;
    gap: 0.375rem;
    &[data-span="full"] {
      grid-column: 1 / -1;
    }
  }
  .mk-booking-form-summary {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--muted);

    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
    & .btn {
      width: 100%;
    }
  }
  .mk-booking-form-layout {
    display: grid;
    gap: 2rem;
  }

  .mk-booking-form[data-variant="compact"] {
    max-width: 28rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }

  @container mk-booking-form (min-width: 52rem) {
    .mk-booking-form-layout {
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 3rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-booking-form-option,
    .mk-booking-form-slot span {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-booking-form-option:has(input:checked) {
      border-color: Highlight;
    }
    .mk-booking-form-slot input:checked + span {
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/event-item/event-item.css ── */
/* -- Event Item (website · Events & Promotions) ---------------------------
   Previews one event with its date, location, and attendance link - a calendar tile, the title, time and place, and a register action. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-event-item, .mk-event-item *, .mk-event-item ::before, .mk-event-item ::after) {
    box-sizing: border-box;
  }

  .mk-event-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem 1.25rem;
    padding: 1rem;
    border-radius: var(--radius-xl);
    transition: background-color 150ms ease;

    &:hover {
      background: color-mix(in oklch, var(--accent) 60%, transparent);
    }
  }
  .mk-event-item {
    position: relative;
  }
  .mk-event-item-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-event-item-title a:focus-visible {
    outline: none;
  }
  .mk-event-item:has(.mk-event-item-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-event-item :is(button, input, select, label, .btn):not(.mk-event-item-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-event-item-date {
    display: grid;
    justify-items: center;
    width: 3.75rem;
    padding: 0.375rem 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    line-height: 1;

    & span {
      color: var(--destructive);
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    & b {
      margin-block-start: 0.25rem;
      font-size: 1.625rem;
      font-weight: 700;
      letter-spacing: -0.03em;
      font-variant-numeric: tabular-nums;
    }
  }
  .mk-event-item-body {
    display: grid;
    gap: 0.375rem;
  }
  .mk-event-item-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    text-wrap: balance;
    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-event-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  .mk-event-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
  }
  .mk-event-item-media {
    display: none;
  }

  .mk-event-item[data-variant="card"] {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    &:hover {
      background: var(--card);
    }
    & .mk-event-item-media {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }
    & .mk-event-item-date {
      position: absolute;
      top: 0.75rem;
      left: 0.75rem;
      box-shadow: var(--shadow-md);
    }
    & .mk-event-item-body {
      padding: 0 1.25rem;
    }
    & > .btn {
      margin: 0 1.25rem 1.25rem;
      justify-self: start;
    }
  }

  .mk-event-item[data-variant="compact"] {
    gap: 0.75rem;
    padding: 0.5rem;

    & .mk-event-item-date {
      width: 3rem;
      & b {
        font-size: 1.25rem;
      }
    }
    & .mk-event-item-title {
      font-size: 0.9375rem;
    }
    & > .btn {
      display: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-event-item {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-event-item-date {
      border-color: CanvasText;
    }
  }
}

/* ── components/event-header/event-header.css ── */
/* -- Event Header (website · Events & Promotions) -------------------------
   Introduces an event with its title, date, venue, and primary action - on a gradient band, over a cover picture, or beside a poster. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-event-header, .mk-event-header *, .mk-event-header ::before, .mk-event-header ::after) {
    box-sizing: border-box;
  }

  .mk-event-header {
    container: mk-event-header / inline-size;
    width: 100%;
  }
  .mk-event-header-inner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 3rem 2rem;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(60% 90% at 100% 0%, color-mix(in oklch, var(--chart-2) 30%, transparent), transparent 70%),
      radial-gradient(50% 80% at 0% 100%, color-mix(in oklch, var(--chart-1) 28%, transparent), transparent 70%),
      var(--muted);
  }
  .mk-event-header-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .mk-event-header-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .mk-event-header-title {
    margin: 0;
    font-size: clamp(2.25rem, 6cqi, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }
  .mk-event-header-tagline {
    margin: 0;
    max-width: 36rem;
    font-size: 1.125rem;
    color: color-mix(in oklch, currentColor 75%, transparent);
    text-wrap: pretty;
  }
  .mk-event-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    font-weight: 500;

    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
    & svg {
      width: 1.125rem;
      height: 1.125rem;
      opacity: 0.75;
    }
    & address {
      font-style: normal;
    }
  }
  .mk-event-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .mk-event-header-speakers {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: color-mix(in oklch, currentColor 75%, transparent);
  }
  .mk-event-header-poster {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    rotate: 2deg;
    & img {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 4;
      object-fit: cover;
    }
  }
  .mk-event-header-cover {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .mk-event-header[data-variant="image"] .mk-event-header-inner {
    padding-block: 5rem 3rem;
    background: transparent;
    color: #fff;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(to top, oklch(0.12 0.02 260 / 0.9), oklch(0.12 0.02 260 / 0.25));
    }
    & .btn[data-variant="outline"] {
      border-color: oklch(1 0 0 / 0.45);
      background: transparent;
      color: inherit;
    }
  }

  @container mk-event-header (min-width: 48rem) {
    .mk-event-header[data-variant="split"] .mk-event-header-inner {
      grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
      gap: 3rem;
      padding: 3rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-event-header-inner {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/event-description/event-description.css ── */
/* -- Event Description (website · Events & Promotions) --------------------
   Explains an event's purpose, audience, and participation details - the story, who it is for, what you take away, and the practical facts. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(
    .mk-event-description,
    .mk-event-description *,
    .mk-event-description ::before,
    .mk-event-description ::after
  ) {
    box-sizing: border-box;
  }

  .mk-event-description {
    container: mk-event-description / inline-size;
    width: 100%;
  }
  .mk-event-description-layout {
    display: grid;
    gap: 2.5rem;
  }
  .mk-event-description-body {
    display: grid;
    gap: 2rem;
    min-width: 0;
    & section {
      display: grid;
      gap: 0.75rem;
    }
    & h2 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      line-height: 1.75;
      text-wrap: pretty;
    }
  }
  .mk-event-description-audience {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.375rem 0.75rem;
      border-radius: 999px;
      background: var(--muted);
      font-size: 0.875rem;
      font-weight: 500;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
      color: var(--primary);
    }
  }
  .mk-event-description-takeaways {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 0.75rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & li {
      display: flex;
      gap: 0.625rem;
      align-items: flex-start;
      line-height: 1.5;
    }
    & svg {
      flex: none;
      width: 1.125rem;
      height: 1.125rem;
      margin-block-start: 0.125rem;
      color: #16a34a;
    }
  }
  .mk-event-description-facts {
    display: grid;
    gap: 1.25rem;
    align-self: start;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    & dl {
      display: grid;
      gap: 0.875rem;
      margin: 0;
    }
    & dl div {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      padding-block-end: 0.875rem;
      border-block-end: 1px solid var(--border);
      font-size: 0.9375rem;
    }
    & dt {
      color: var(--muted-foreground);
    }
    & dd {
      margin: 0;
      font-weight: 500;
      text-align: end;
    }
    & .btn {
      width: 100%;
    }
  }
  .mk-event-description-capacity {
    display: grid;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    & meter {
      width: 100%;
      height: 0.5rem;
    }
    & strong {
      color: var(--foreground);
    }
  }

  @container mk-event-description (min-width: 52rem) {
    .mk-event-description-layout {
      grid-template-columns: minmax(0, 1fr) 20rem;
      gap: 4rem;
    }
    .mk-event-description-facts {
      position: sticky;
      top: 1.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-event-description-facts {
      border-color: CanvasText;
    }
  }
}

/* ── components/speaker-item/speaker-item.css ── */
/* -- Speaker Item (website · Events & Promotions) -------------------------
   Introduces one speaker with a portrait, role, and biography - with their talk, as a card, a featured keynote or a compact row. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-speaker-item, .mk-speaker-item *, .mk-speaker-item ::before, .mk-speaker-item ::after) {
    box-sizing: border-box;
  }

  .mk-speaker-item {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
  }
  .mk-speaker-item-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: var(--muted);
    filter: grayscale(1) contrast(1.05);
    transition: filter 300ms ease;
  }
  .mk-speaker-item:hover .mk-speaker-item-photo,
  .mk-speaker-item:focus-within .mk-speaker-item-photo {
    filter: none;
  }
  .mk-speaker-item-body {
    display: grid;
    gap: 0.25rem;
  }
  .mk-speaker-item-name {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.01em;
  }
  .mk-speaker-item-role {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-speaker-item-bio {
    margin: 0.5rem 0;
    color: var(--muted-foreground);
    line-height: 1.65;
    text-wrap: pretty;
  }
  .mk-speaker-item-talk {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.375rem;
    margin-block-start: 0.375rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.4;
    & svg {
      flex: none;
      width: 0.875rem;
      height: 0.875rem;
      margin-block-start: 0.15rem;
    }
    &:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }

  .mk-speaker-item[data-variant="featured"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);

    & .mk-speaker-item-photo {
      aspect-ratio: 4 / 5;
      filter: none;
    }
    & .mk-speaker-item-name {
      font-size: 1.75rem;
      letter-spacing: -0.02em;
    }
    & .mk-speaker-item-role {
      font-size: 1rem;
    }
  }
  .mk-speaker-item-keynote {
    width: fit-content;
    margin-block-end: 0.5rem;
    padding: 0.125rem 0.625rem;
    border-radius: 999px;
    background: var(--foreground);
    color: var(--background);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .mk-speaker-item[data-variant="compact"] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.875rem;

    & .mk-speaker-item-photo {
      width: 3.5rem;
      height: 3.5rem;
      border-radius: 50%;
      filter: none;
    }
    & .mk-speaker-item-body {
      gap: 0;
    }
    & .mk-speaker-item-name {
      font-size: 0.9375rem;
    }
    & .mk-speaker-item-talk {
      margin: 0.125rem 0 0;
      font-size: 0.8125rem;
    }
  }

  /* topics as tags - in any variant */
  .mk-speaker-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
    & li {
      padding: 0.125rem 0.5rem;
      border-radius: 999px;
      background: var(--secondary);
      color: var(--secondary-foreground);
      font-size: 0.75rem;
      font-weight: 600;
    }
  }
  /* where else to find the speaker - icon links, each named by its aria-label */
  .mk-speaker-item-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    & a {
      display: grid;
      place-items: center;
      width: 2rem;
      height: 2rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--muted-foreground);
      transition:
        color 150ms ease,
        background-color 150ms ease;
      &:hover {
        background: var(--accent);
        color: var(--accent-foreground);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
      }
    }
    & svg {
      width: 0.9375rem;
      height: 0.9375rem;
    }
  }

  /* overlay: the portrait fills the card, the name over a scrim; the talk and the links come up on hover */
  .mk-speaker-item[data-variant="overlay"] {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: end;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);
    color: #fff;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(transparent 30%, oklch(0.14 0.02 260 / 0.55) 55%, oklch(0.12 0.02 260 / 0.92));
    }
    & .mk-speaker-item-photo {
      position: absolute;
      inset: 0;
      z-index: -2;
      height: 100%;
      aspect-ratio: auto;
      border-radius: 0;
      transition:
        filter 300ms ease,
        scale 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    &:is(:hover, :focus-within) .mk-speaker-item-photo {
      scale: 1.05;
    }
    & .mk-speaker-item-body {
      gap: 0.3rem;
      padding: 1.25rem;
    }
    & .mk-speaker-item-name {
      font-size: 1.375rem;
      letter-spacing: -0.02em;
    }
    & .mk-speaker-item-role {
      color: oklch(1 0 0 / 0.78);
    }
    & .mk-speaker-item-tags li {
      background: oklch(1 0 0 / 0.16);
      color: #fff;
      backdrop-filter: blur(6px);
    }
    & .mk-speaker-item-talk {
      color: #fff;
      opacity: 0;
      translate: 0 0.5rem;
      transition:
        opacity 250ms ease,
        translate 250ms ease;
    }
    & .mk-speaker-item-social {
      position: absolute;
      top: 0.75rem;
      right: 0.75rem;
      margin: 0;
      opacity: 0;
      translate: 0 -0.5rem;
      transition:
        opacity 250ms ease,
        translate 250ms ease;
      & a {
        border-color: oklch(1 0 0 / 0.25);
        background: oklch(0.12 0.02 260 / 0.45);
        color: #fff;
        backdrop-filter: blur(8px);
        &:hover {
          background: #fff;
          color: oklch(0.15 0.02 260);
        }
      }
    }
    &:is(:hover, :focus-within) :is(.mk-speaker-item-talk, .mk-speaker-item-social) {
      opacity: 1;
      translate: 0 0;
    }
  }
  /* no hover on touch: everything shows */
  @media (hover: none) {
    .mk-speaker-item[data-variant="overlay"] :is(.mk-speaker-item-talk, .mk-speaker-item-social) {
      opacity: 1;
      translate: 0 0;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-speaker-item[data-variant="overlay"]
      :is(.mk-speaker-item-photo, .mk-speaker-item-talk, .mk-speaker-item-social) {
      transition: none;
    }
    .mk-speaker-item-photo {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-speaker-item[data-variant="featured"] {
      border-color: CanvasText;
    }
  }
}

/* ── components/session-item/session-item.css ── */
/* -- Session Item (website · Events & Promotions) -------------------------
   Presents one scheduled session with its time, topic, and speakers - with its track, room and an "add to my schedule" toggle; breaks and keynotes styled apart. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-session-item, .mk-session-item *, .mk-session-item ::before, .mk-session-item ::after) {
    box-sizing: border-box;
  }

  .mk-session-item {
    --mk-session-color: var(--chart-1);

    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-inline-start: 3px solid var(--mk-session-color);
    border-radius: var(--radius-lg);
    background: var(--card);
  }
  .mk-session-item-time {
    display: grid;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
    & time {
      font-size: 1.0625rem;
      font-weight: 700;
    }
    & span {
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
    & small {
      margin-block-start: 0.25rem;
      color: var(--muted-foreground);
      font-size: 0.75rem;
    }
  }
  .mk-session-item-body {
    display: grid;
    gap: 0.5rem;
  }
  .mk-session-item-track {
    width: fit-content;
    padding: 0.0625rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in oklch, var(--mk-session-color) 15%, transparent);
    color: color-mix(in oklab, var(--mk-session-color) 70%, var(--foreground));
    font-size: 0.75rem;
    font-weight: 700;
  }
  .mk-session-item-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    text-wrap: balance;
  }
  .mk-session-item-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-session-item-speakers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 500;
    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }
  }
  .mk-session-item-room {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }

  /* the save toggle: a checkbox in a button-like label */
  .mk-session-item-save {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding-inline: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;

    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & span {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
    & .mk-session-item-save-on {
      display: none;
    }
    &:has(input:checked) {
      border-color: var(--primary);
      background: var(--primary);
      color: var(--primary-foreground);
    }
    &:has(input:checked) .mk-session-item-save-off {
      display: none;
    }
    &:has(input:checked) .mk-session-item-save-on {
      display: inline-flex;
    }
    &:has(input:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  .mk-session-item[data-variant="keynote"] {
    border-color: color-mix(in oklab, var(--mk-session-color) 40%, var(--border));
    background: color-mix(in oklab, var(--mk-session-color) 8%, var(--card));

    & .mk-session-item-title {
      font-size: 1.375rem;
      letter-spacing: -0.02em;
    }
  }
  .mk-session-item[data-variant="break"] {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    padding-block: 0.75rem;
    border-style: dashed;
    border-inline-start: 1px dashed var(--border);
    background: transparent;
    color: var(--muted-foreground);

    & .mk-session-item-title {
      font-size: 0.9375rem;
      font-weight: 500;
    }
    & .mk-session-item-time time {
      font-size: 0.9375rem;
      font-weight: 600;
    }
  }

  /* format, level and needs as small outline tags */
  .mk-session-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & li {
      padding: 0.0625rem 0.5rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--muted-foreground);
      font-size: 0.75rem;
      font-weight: 600;
    }
  }
  /* happening now: a pulsing dot beside the time */
  .mk-session-item-live {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: fit-content;
    padding: 0.0625rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in oklch, #dc2626 14%, transparent);
    color: color-mix(in oklab, #dc2626 80%, var(--foreground));
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    &::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background: #dc2626;
      animation: mk-session-live 1.6s ease-out infinite;
    }
  }
  @keyframes mk-session-live {
    0% {
      box-shadow: 0 0 0 0 color-mix(in oklch, #dc2626 55%, transparent);
    }
    70%,
    100% {
      box-shadow: 0 0 0 0.45rem transparent;
    }
  }
  .mk-session-item:has(.mk-session-item-live) {
    border-color: color-mix(in oklch, #dc2626 45%, var(--border));
  }
  /* slides, recording, share: small links under the session */
  .mk-session-item-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.875rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.8125rem;
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.3rem;
      color: var(--muted-foreground);
      font-weight: 600;
      text-decoration: none;
      &:hover {
        color: var(--foreground);
      }
      &:focus-visible {
        outline: 2px solid var(--ring);
        outline-offset: 2px;
        border-radius: var(--radius-sm);
      }
    }
    & svg {
      width: 0.9375rem;
      height: 0.9375rem;
    }
  }

  /* cover: a picture fills the card, the session over a scrim in the track's colour; time and save float on top */
  .mk-session-item[data-variant="cover"] {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    min-height: 22rem;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-xl);
    background: oklch(0.18 0.02 260);
    color: #fff;

    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(transparent 20%, oklch(0.12 0.02 260 / 0.9) 78%),
        linear-gradient(135deg, color-mix(in oklch, var(--mk-session-color) 45%, transparent), transparent 60%);
    }
    & .mk-session-item-cover {
      position: absolute;
      inset: 0;
      z-index: -2;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: scale 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    &:is(:hover, :focus-within) .mk-session-item-cover {
      scale: 1.05;
    }
    /* the time as a glass chip in the corner */
    & .mk-session-item-time {
      display: flex;
      align-items: baseline;
      gap: 0.375rem;
      width: fit-content;
      height: fit-content;
      padding: 0.25rem 0.75rem;
      border-radius: 999px;
      background: oklch(0.12 0.02 260 / 0.45);
      backdrop-filter: blur(8px);
      & span,
      & small {
        margin: 0;
        color: oklch(1 0 0 / 0.75);
      }
      & span::before {
        content: "- ";
      }
    }
    & .mk-session-item-body {
      grid-column: 1 / -1;
      align-self: end;
    }
    & .mk-session-item-track {
      background: var(--mk-session-color);
      color: #fff;
    }
    & .mk-session-item-live {
      background: #dc2626;
      color: #fff;
      &::before {
        background: #fff;
      }
    }
    & .mk-session-item-title {
      font-size: 1.5rem;
      letter-spacing: -0.02em;
      line-height: 1.15;
    }
    & :is(.mk-session-item-desc, .mk-session-item-room, .mk-session-item-links a) {
      color: oklch(1 0 0 / 0.78);
    }
    & .mk-session-item-links a:hover {
      color: #fff;
    }
    & .mk-session-item-tags li {
      border-color: oklch(1 0 0 / 0.3);
      color: oklch(1 0 0 / 0.85);
    }
    & .mk-session-item-save {
      grid-column: 2;
      grid-row: 1;
      border-color: oklch(1 0 0 / 0.3);
      background: oklch(0.12 0.02 260 / 0.45);
      backdrop-filter: blur(8px);
    }
    & .mk-session-item-save:has(input:checked) {
      border-color: #fff;
      background: #fff;
      color: oklch(0.15 0.02 260);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .mk-session-item-live::before {
      animation: none;
    }
    .mk-session-item[data-variant="cover"] .mk-session-item-cover {
      transition: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-session-item {
      border-inline-start-color: CanvasText;
    }
    .mk-session-item-save:has(input:checked) {
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/registration-form/registration-form.css ── */
/* -- Registration Form (website · Events & Promotions) --------------------
   Collects attendee information and event participation choices - the ticket, the attendee, the workshops and the practical needs. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(
    .mk-registration-form,
    .mk-registration-form *,
    .mk-registration-form ::before,
    .mk-registration-form ::after
  ) {
    box-sizing: border-box;
  }

  .mk-registration-form {
    container: mk-registration-form / inline-size;
    width: 100%;
  }
  .mk-registration-form form {
    display: grid;
    gap: 2rem;
  }
  .mk-registration-form-group {
    display: grid;
    gap: 0.875rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    & legend {
      margin-block-end: 0.875rem;
      padding: 0;
      font-size: 1.0625rem;
      font-weight: 600;
    }
  }
  .mk-registration-form-tickets {
    display: grid;
    gap: 0.75rem;
  }
  .mk-registration-form-ticket {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.25rem 0.75rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition:
      border-color 150ms ease,
      box-shadow 150ms ease;

    & b {
      font-size: 1.25rem;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }
    & small {
      grid-column: 2 / -1;
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      line-height: 1.5;
    }
    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    &:has(input:checked) {
      border-color: var(--primary);
      box-shadow:
        0 0 0 1px var(--primary),
        var(--shadow-md);
    }
  }
  .mk-registration-form-ticket-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
  }
  .mk-registration-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: 1rem;
  }
  .mk-registration-form-field {
    display: grid;
    gap: 0.375rem;
    &[data-span="full"] {
      grid-column: 1 / -1;
    }
  }
  .mk-registration-form-choices {
    display: grid;
    gap: 0.625rem;
    & .checkbox-item {
      justify-content: space-between;
      padding: 0.75rem 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
    }
    & .checkbox-item:has(:checked) {
      border-color: var(--primary);
      background: color-mix(in oklch, var(--primary) 5%, transparent);
    }
    & .checkbox-item label {
      flex: 1;
    }
    & small {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }
  .mk-registration-form-total {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--muted);

    & div {
      display: grid;
    }
    & span {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
    & output {
      font-size: 1.75rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;
    }
  }

  @container mk-registration-form (min-width: 40rem) {
    .mk-registration-form-tickets {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .mk-registration-form-ticket {
      grid-template-columns: auto minmax(0, 1fr);
      align-content: start;
    }
    .mk-registration-form-ticket b {
      grid-column: 2;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-registration-form-ticket {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-registration-form-ticket:has(input:checked) {
      border-color: Highlight;
    }
  }
}

/* ── components/location-item/location-item.css ── */
/* -- Location Item (website · Events & Promotions) ------------------------
   Presents one physical location with its address and directions - the address, whether it is open now, the phone and a directions link. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-location-item, .mk-location-item *, .mk-location-item ::before, .mk-location-item ::after) {
    box-sizing: border-box;
  }

  .mk-location-item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-location-item-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
  .mk-location-item-body {
    display: grid;
    gap: 0.625rem;
    padding: 1.25rem;
  }
  .mk-location-item-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  .mk-location-item-name {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
  }
  .mk-location-item-distance {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .mk-location-item-address {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    font-style: normal;
    line-height: 1.55;
  }
  .mk-location-item-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;

    &::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background: #16a34a;
      box-shadow: 0 0 0 3px color-mix(in oklch, #16a34a 20%, transparent);
    }
    &[data-status="open"] {
      color: #15803d;
    }
    &[data-status="closed"] {
      color: var(--muted-foreground);
    }
    &[data-status="closed"]::before {
      background: var(--muted-foreground);
      box-shadow: none;
    }
  }
  .mk-location-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-block-start: 0.25rem;
  }

  .mk-location-item[data-variant="compact"] {
    & .mk-location-item-body {
      grid-template-columns: minmax(0, 1fr) auto;
      column-gap: 1.5rem;
      padding: 1rem 1.25rem;
    }
    & .mk-location-item-head,
    & .mk-location-item-address,
    & .mk-location-item-status {
      grid-column: 1;
    }
    & .mk-location-item-actions {
      grid-column: 2;
      grid-row: 1 / span 3;
      flex-direction: column;
      align-self: center;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-location-item {
      border-color: CanvasText;
    }
    .mk-location-item-status::before {
      forced-color-adjust: none;
    }
  }
}

/* ── components/location-map/location-map.css ── */
/* -- Location Map (website · Events & Promotions) -------------------------
   Displays one or more locations on an interactive map - pins open a card anchored to them, a list beside the map names every place. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-location-map, .mk-location-map *, .mk-location-map ::before, .mk-location-map ::after) {
    box-sizing: border-box;
  }

  .mk-location-map {
    container: mk-location-map / inline-size;
    display: grid;
    gap: 1rem;
    width: 100%;
  }
  .mk-location-map-canvas {
    position: relative;
    overflow: hidden;
    min-height: 20rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--muted);
  }
  .mk-location-map-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .mk-location-map-land {
    fill: color-mix(in oklch, var(--muted) 85%, var(--background));
  }
  .mk-location-map-water {
    fill: color-mix(in oklab, oklch(0.7 0.1 230) 35%, var(--muted));
  }
  .mk-location-map-park {
    fill: color-mix(in oklab, oklch(0.75 0.12 150) 30%, var(--muted));
  }
  .mk-location-map-roads path {
    fill: none;
    stroke: var(--background);
    stroke-width: 10;
    stroke-linecap: round;
  }
  .mk-location-map-streets path {
    fill: none;
    stroke: color-mix(in oklch, var(--background) 70%, transparent);
    stroke-width: 4;
  }

  .mk-location-map-pin {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    translate: -50% -100%;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    filter: drop-shadow(0 2px 3px oklch(0 0 0 / 0.35));
    transition: scale 150ms ease;
    transform-origin: 50% 100%;

    & svg {
      width: 2.25rem;
      height: 2.25rem;
      fill: currentColor;
      stroke: var(--background);
      stroke-width: 1.5;
    }
    &:hover,
    &:focus-visible {
      scale: 1.15;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: 50%;
    }
  }
  .mk-location-map-popup {
    width: 15rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--popover);
    color: var(--popover-foreground);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;

    & strong {
      display: block;
      font-size: 0.9375rem;
    }
    & address {
      margin-block: 0.25rem 0.5rem;
      color: var(--muted-foreground);
      font-style: normal;
    }
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
    }
    & a svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  @supports (position-anchor: --a) {
    /* anchored to its pin; without support the popover stays centered (its default) */
    .mk-location-map-popup {
      inset: auto;
      margin: 0 0 0.5rem;
      position-area: top;
      position-try-fallbacks: flip-block, flip-inline;
    }
  }

  .mk-location-map-list {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-content: start;

    & li {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 0 0.75rem;
      padding: 0.75rem;
      border-radius: var(--radius-lg);
    }
    & li:hover {
      background: var(--accent);
    }
    & b {
      grid-row: span 2;
      display: grid;
      place-items: center;
      width: 1.5rem;
      height: 1.5rem;
      border-radius: 50%;
      background: var(--primary);
      color: var(--primary-foreground);
      font-size: 0.75rem;
    }
    & strong {
      font-size: 0.9375rem;
    }
    & span {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }

  .mk-location-map[data-variant="full"] .mk-location-map-canvas {
    min-height: 28rem;
  }

  @container mk-location-map (min-width: 48rem) {
    .mk-location-map:not([data-variant]) > * {
      min-width: 0;
    }
    .mk-location-map-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 16rem;
      gap: 1rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-location-map-pin {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-location-map-pin svg {
      fill: Highlight;
      stroke: Canvas;
    }
    .mk-location-map-popup {
      border-color: CanvasText;
    }
  }
}

/* ── components/locator-search/locator-search.css ── */
/* -- Locator Search (website · Events & Promotions) -----------------------
   Finds nearby locations using an address or current position - a search with "use my location", a radius and the results. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-locator-search, .mk-locator-search *, .mk-locator-search ::before, .mk-locator-search ::after) {
    box-sizing: border-box;
  }

  .mk-locator-search {
    container: mk-locator-search / inline-size;
    display: grid;
    gap: 1.25rem;
    width: 100%;
  }
  .mk-locator-search-form {
    display: grid;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-locator-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: end;
  }
  .mk-locator-search-field {
    display: grid;
    gap: 0.375rem;
    flex: 1 1 14rem;
    & + .mk-locator-search-field {
      flex: 0 1 9rem;
    }
  }
  .mk-locator-search-query {
    position: relative;
    & svg {
      position: absolute;
      inset-inline-start: 0.75rem;
      top: 50%;
      translate: 0 -50%;
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
      pointer-events: none;
    }
    & .input {
      padding-inline-start: 2.25rem;
    }
  }
  .mk-locator-search-geo {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: fit-content;
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }
  .mk-locator-search-summary {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    & strong {
      color: var(--foreground);
    }
  }
  .mk-locator-search-results {
    display: grid;
    gap: 0.75rem;
  }

  .mk-locator-search[data-variant="inline"] .mk-locator-search-form {
    padding: 0.5rem;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    & .mk-locator-search-row {
      flex-wrap: nowrap;
      align-items: center;
    }
    & .label {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    & .input,
    & .select {
      border-color: transparent;
      box-shadow: none;
    }
    & .btn {
      border-radius: 999px;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-locator-search-form {
      border-color: CanvasText;
    }
  }
}

/* ── components/opening-hours/opening-hours.css ── */
/* -- Opening Hours (website · Events & Promotions) ------------------------
   Displays operating hours and date-specific exceptions - the week with today marked, whether it is open now, and the holidays. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-opening-hours, .mk-opening-hours *, .mk-opening-hours ::before, .mk-opening-hours ::after) {
    box-sizing: border-box;
  }

  .mk-opening-hours {
    display: grid;
    gap: 1rem;
    max-width: 24rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-opening-hours-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
  }
  .mk-opening-hours-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: #15803d;
    font-size: 0.875rem;
    font-weight: 600;
    &::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background: currentColor;
      box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
    }
    & span {
      color: var(--muted-foreground);
      font-weight: 400;
    }
  }
  .mk-opening-hours-days {
    display: grid;
    margin: 0;

    & div {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.5rem 0.75rem;
      border-radius: var(--radius-md);
      font-size: 0.9375rem;
    }
    & dt {
      color: var(--muted-foreground);
    }
    & dd {
      margin: 0;
      font-variant-numeric: tabular-nums;
    }
    & [aria-current] {
      background: var(--muted);
      font-weight: 600;
    }
    & [aria-current] dt {
      color: var(--foreground);
    }
    & [data-closed] dd {
      color: var(--muted-foreground);
    }
  }
  .mk-opening-hours-exceptions {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    padding: 0.875rem 0 0;
    border-block-start: 1px solid var(--border);
    list-style: none;
    font-size: 0.875rem;

    & li {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
    }
    & span {
      color: var(--muted-foreground);
    }
  }

  .mk-opening-hours[data-variant="compact"] {
    gap: 0.25rem;
    padding: 0;
    border: 0;
    background: transparent;

    & p {
      margin: 0;
      font-size: 0.9375rem;
      font-variant-numeric: tabular-nums;
    }
    & strong {
      font-weight: 600;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-opening-hours-days [aria-current] {
      outline: 1px solid Highlight;
    }
  }
}

/* ── components/gallery-item/gallery-item.css ── */
/* -- Gallery Item (website · Media) ---------------------------------------
   Presents one image with a caption and enlarged-view action - the picture opens a large view in a native modal dialog. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-gallery-item, .mk-gallery-item *, .mk-gallery-item ::before, .mk-gallery-item ::after) {
    box-sizing: border-box;
  }

  .mk-gallery-item {
    position: relative;
    display: grid;
    gap: 0.625rem;
    margin: 0;
  }
  .mk-gallery-item-open {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--muted);
    cursor: zoom-in;

    & img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      transition: scale 400ms ease;
    }
    &:hover img {
      scale: 1.04;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .mk-gallery-item-zoom {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: oklch(0.12 0.02 260 / 0.55);
    color: #fff;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 200ms ease;

    & svg {
      width: 1rem;
      height: 1rem;
    }
  }
  .mk-gallery-item-open:is(:hover, :focus-visible) .mk-gallery-item-zoom {
    opacity: 1;
  }
  .mk-gallery-item-caption {
    font-size: 0.875rem;
    font-weight: 500;
    & span {
      display: block;
      color: var(--muted-foreground);
      font-weight: 400;
      font-size: 0.8125rem;
    }
  }

  /* the large view */
  .mk-gallery-item-viewer {
    max-width: min(92vw, 72rem);
    max-height: 92vh;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: visible;
    opacity: 1;
    scale: 1;
    transition:
      opacity 250ms ease,
      scale 250ms ease,
      display 250ms allow-discrete,
      overlay 250ms allow-discrete;

    &::backdrop {
      background: oklch(0.1 0.01 260 / 0.85);
      backdrop-filter: blur(6px);
    }
    &:not([open]) {
      opacity: 0;
      scale: 0.96;
    }
  }
  @starting-style {
    .mk-gallery-item-viewer[open] {
      opacity: 0;
      scale: 0.96;
    }
  }
  .mk-gallery-item-viewer-inner {
    position: relative;
    display: grid;
    gap: 0.75rem;

    & img {
      display: block;
      max-width: 100%;
      max-height: 80vh;
      margin-inline: auto;
      border-radius: var(--radius-lg);
      object-fit: contain;
    }
    & p {
      margin: 0;
      text-align: center;
      font-size: 0.9375rem;
    }
    & p span {
      color: oklch(1 0 0 / 0.65);
    }
    & form {
      position: absolute;
      top: -0.75rem;
      right: -0.75rem;
    }
  }
  .mk-gallery-item-close {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: oklch(0.15 0 0);
    box-shadow: var(--shadow-lg);
    cursor: pointer;

    & svg {
      width: 1.125rem;
      height: 1.125rem;
    }
    &:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }
  }

  .mk-gallery-item[data-variant="overlay"] {
    & .mk-gallery-item-caption {
      position: absolute;
      inset: auto 0 0;
      z-index: 1;
      padding: 2rem 1rem 0.875rem;
      border-radius: 0 0 var(--radius-lg) var(--radius-lg);
      background: linear-gradient(transparent, oklch(0.12 0.02 260 / 0.85));
      color: #fff;
      opacity: 0;
      transition: opacity 200ms ease;
      pointer-events: none;
    }
    & .mk-gallery-item-caption span {
      color: oklch(1 0 0 / 0.75);
    }
    &:is(:hover, :focus-within) .mk-gallery-item-caption {
      opacity: 1;
    }
  }

  .mk-gallery-item[data-variant="framed"] {
    padding: 0.75rem 0.75rem 1rem;
    background: #fff;
    color: oklch(0.2 0 0);
    box-shadow: var(--shadow-lg);
    rotate: -1.5deg;
    transition: rotate 300ms ease;

    &:nth-child(even) {
      rotate: 1.5deg;
    }
    &:hover {
      rotate: 0deg;
    }
    & .mk-gallery-item-open {
      border-radius: 2px;
    }
    & .mk-gallery-item-caption {
      font-family: var(--font-serif);
      text-align: center;
    }
    & .mk-gallery-item-caption span {
      color: oklch(0.45 0 0);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-gallery-item-open img,
    .mk-gallery-item-zoom,
    .mk-gallery-item-viewer,
    .mk-gallery-item[data-variant="framed"],
    .mk-gallery-item[data-variant="overlay"] .mk-gallery-item-caption {
      transition: none;
    }
    .mk-gallery-item-open:hover img {
      scale: none;
    }
  }

  @media (forced-colors: active) {
    .mk-gallery-item-close {
      border: 1px solid ButtonText;
    }
  }
}

/* ── components/media-gallery/media-gallery.css ── */
/* -- Media Gallery (website · Media) --------------------------------------
   Coordinates a collection of images with shared viewing controls - switch between grid, masonry and filmstrip, and open a slideshow of every picture. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-media-gallery, .mk-media-gallery *, .mk-media-gallery ::before, .mk-media-gallery ::after) {
    box-sizing: border-box;
  }

  .mk-media-gallery {
    container: mk-media-gallery / inline-size;
    display: grid;
    gap: 1.25rem;
    width: 100%;
  }
  .mk-media-gallery-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    & h2 {
      margin: 0;
      font-size: 1.25rem;
      font-weight: 600;
    }
    & > span {
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
  }
  .mk-media-gallery-tools {
    display: flex;
    gap: 0.5rem;
    margin-inline-start: auto;
  }
  .mk-media-gallery-views {
    display: inline-flex;
    padding: 0.1875rem;
    border-radius: var(--radius-md);
    background: var(--muted);

    & label {
      position: relative;
      display: grid;
      place-items: center;
      width: 2rem;
      height: 1.75rem;
      border-radius: calc(var(--radius-md) - 2px);
      color: var(--muted-foreground);
      cursor: pointer;
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
    & label:has(:checked) {
      background: var(--background);
      color: var(--foreground);
      box-shadow: var(--shadow-xs);
    }
    & label:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
  }

  .mk-media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & figure {
      margin: 0;
      overflow: hidden;
      border-radius: var(--radius-md);
      background: var(--muted);
    }
    & img {
      display: block;
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
    }
  }
  .mk-media-gallery:has(input[value="masonry"]:checked) .mk-media-gallery-grid {
    display: block;
    columns: 11rem;
    column-gap: 0.625rem;

    & li {
      margin-block-end: 0.625rem;
      break-inside: avoid;
    }
    & img {
      aspect-ratio: auto;
      height: auto;
    }
  }
  .mk-media-gallery:has(input[value="strip"]:checked) .mk-media-gallery-grid {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-block-end: 0.5rem;

    & li {
      flex: 0 0 min(70%, 18rem);
      scroll-snap-align: start;
    }
    & img {
      aspect-ratio: 4 / 3;
    }
  }

  /* the slideshow */
  .mk-media-gallery-viewer {
    width: min(94vw, 64rem);
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    overflow: visible;

    &::backdrop {
      background: oklch(0.08 0.01 260 / 0.92);
    }
  }
  .mk-media-gallery-viewer-inner {
    position: relative;
    display: grid;
    gap: 1rem;
    & form {
      position: absolute;
      top: -3rem;
      right: 0;
    }
  }
  .mk-media-gallery-track {
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    list-style: none;
    border-radius: var(--radius-lg);

    & li {
      flex: 0 0 100%;
      scroll-snap-align: center;
      display: grid;
      gap: 0.75rem;
    }
    & img {
      display: block;
      width: 100%;
      max-height: 75vh;
      object-fit: contain;
    }
    & p {
      margin: 0;
      text-align: center;
      color: oklch(1 0 0 / 0.75);
      font-size: 0.875rem;
    }
    &:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 4px;
    }
  }
  .mk-media-gallery-close {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: oklch(1 0 0 / 0.15);
    color: #fff;
    cursor: pointer;
    & svg {
      width: 1.125rem;
      height: 1.125rem;
    }
    &:hover {
      background: oklch(1 0 0 / 0.25);
    }
    &:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 2px;
    }
  }
  .mk-media-gallery-hint {
    margin: 0;
    text-align: center;
    color: oklch(1 0 0 / 0.55);
    font-size: 0.75rem;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-media-gallery-track,
    .mk-media-gallery-grid {
      scroll-behavior: auto;
    }
  }

  @media (forced-colors: active) {
    .mk-media-gallery-views label:has(:checked) {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/text-media/text-media.css ── */
/* -- Text Media (website · Media) -----------------------------------------
   Pairs explanatory text with an image, illustration, or video - side by side, reversed, or with the text card overlapping the picture. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-text-media, .mk-text-media *, .mk-text-media ::before, .mk-text-media ::after) {
    box-sizing: border-box;
  }

  .mk-text-media {
    container: mk-text-media / inline-size;
    width: 100%;
  }
  .mk-text-media-layout {
    display: grid;
    gap: 2rem;
    align-items: center;
  }
  .mk-text-media-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .mk-text-media-eyebrow {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mk-text-media-title {
    margin: 0;
    font-size: clamp(1.5rem, 3.5cqi, 2.25rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .mk-text-media-text {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.75;
    text-wrap: pretty;
  }
  .mk-text-media-list {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & li {
      display: flex;
      gap: 0.625rem;
      align-items: flex-start;
    }
    & svg {
      flex: none;
      width: 1.125rem;
      height: 1.125rem;
      margin-block-start: 0.15rem;
      color: var(--primary);
    }
  }
  .mk-text-media-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    & svg {
      width: 1rem;
      height: 1rem;
      transition: translate 150ms ease;
    }
    &:hover svg {
      translate: 0.25rem 0;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }
  .mk-text-media-media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);
    & :is(img, video) {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }
    & svg {
      display: block;
      width: 100%;
      height: auto;
    }
  }

  .mk-text-media[data-variant="overlap"] {
    & .mk-text-media-layout {
      gap: 0;
    }
    & .mk-text-media-media :is(img, video) {
      aspect-ratio: 16 / 9;
    }
    & .mk-text-media-copy {
      position: relative;
      z-index: 1;
      margin: -3rem 1rem 0;
      padding: 1.75rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      background: var(--card);
      color: var(--card-foreground);
      box-shadow: var(--shadow-xl);
    }
  }

  @container mk-text-media (min-width: 48rem) {
    .mk-text-media:not([data-variant="overlap"]) .mk-text-media-layout {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 4rem;
    }
    .mk-text-media[data-variant="reverse"] .mk-text-media-media {
      order: -1;
    }
    .mk-text-media[data-variant="overlap"] .mk-text-media-layout {
      grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .mk-text-media[data-variant="overlap"] .mk-text-media-media {
      grid-column: 1 / span 9;
      grid-row: 1;
    }
    .mk-text-media[data-variant="overlap"] .mk-text-media-copy {
      grid-column: 7 / -1;
      grid-row: 1;
      margin: 0;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-text-media-link svg {
      transition: none;
    }
    .mk-text-media-link:hover svg {
      translate: none;
    }
  }

  @media (forced-colors: active) {
    .mk-text-media[data-variant="overlap"] .mk-text-media-copy {
      border-color: CanvasText;
    }
  }
}

/* ── components/video-player/video-player.css ── */
/* -- Video Player (website · Media) ---------------------------------------
   Plays one video with playback controls and captions - native controls, a WebVTT captions track, title and details, chapters or a transcript. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-video-player, .mk-video-player *, .mk-video-player ::before, .mk-video-player ::after) {
    box-sizing: border-box;
  }

  .mk-video-player {
    container: mk-video-player / inline-size;
    display: grid;
    gap: 1rem;
    width: 100%;
    margin: 0;
  }
  .mk-video-player-frame {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: oklch(0.12 0.01 260);
    box-shadow: var(--shadow-lg);
    & video {
      display: block;
      width: 100%;
      aspect-ratio: 16 / 9;
      background: inherit;
    }
    & video::cue {
      background: oklch(0 0 0 / 0.72);
      color: #fff;
      font-family: var(--font-sans);
    }
  }
  .mk-video-player-caption {
    display: grid;
    gap: 0.375rem;
    & h3 {
      margin: 0;
      font-size: 1.125rem;
      font-weight: 600;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.9375rem;
      line-height: 1.6;
    }
  }
  .mk-video-player-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    & span {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  .mk-video-player-chapters {
    margin: 0;
    padding: 0;
    list-style: none;
    border-block-start: 1px solid var(--border);
    & li {
      display: grid;
      grid-template-columns: 3.5rem minmax(0, 1fr);
      gap: 0.75rem;
      padding: 0.625rem 0;
      border-block-end: 1px solid var(--border);
      font-size: 0.875rem;
    }
    & time {
      color: var(--primary);
      font-family: var(--font-mono);
      font-size: 0.8125rem;
      font-weight: 600;
    }
  }
  .mk-video-player-transcript {
    display: grid;
    align-content: start;
    gap: 0.75rem;
    max-height: 22rem;
    padding: 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    & h3 {
      margin: 0;
      font-size: 0.9375rem;
      font-weight: 600;
    }
    & p {
      margin: 0;
      display: grid;
      grid-template-columns: 3rem minmax(0, 1fr);
      gap: 0.5rem;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      line-height: 1.55;
    }
    & time {
      color: var(--primary);
      font-family: var(--font-mono);
      font-size: 0.75rem;
    }
  }

  .mk-video-player[data-variant="theater"] {
    padding: 2rem;
    border-radius: var(--radius-xl);
    background: oklch(0.14 0.01 260);
    color: #fff;

    & .mk-video-player-frame {
      max-width: 56rem;
      margin-inline: auto;
      width: 100%;
      box-shadow: 0 30px 80px -20px oklch(0 0 0 / 0.8);
    }
    & .mk-video-player-caption {
      max-width: 56rem;
      margin-inline: auto;
      width: 100%;
    }
    & :is(.mk-video-player-caption p, .mk-video-player-meta) {
      color: oklch(1 0 0 / 0.65);
    }
  }

  @container mk-video-player (min-width: 52rem) {
    .mk-video-player[data-variant="transcript"] .mk-video-player-layout {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 18rem;
      gap: 1rem;
      align-items: start;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-video-player-frame {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/audio-player/audio-player.css ── */
/* -- Audio Player (website · Media) ---------------------------------------
   Plays one audio recording with playback controls and metadata - cover art, title, show and episode, the native player and a download link. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-audio-player, .mk-audio-player *, .mk-audio-player ::before, .mk-audio-player ::after) {
    box-sizing: border-box;
  }

  .mk-audio-player {
    display: grid;
    grid-template-columns: 6rem minmax(0, 1fr);
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-audio-player-cover {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--muted);
  }
  .mk-audio-player-body {
    display: grid;
    gap: 0.375rem;
    min-width: 0;
  }
  .mk-audio-player-show {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .mk-audio-player-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: balance;
  }
  .mk-audio-player-meta {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-audio-player-controls {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    & audio {
      flex: 1;
      min-width: 0;
      height: 2.5rem;
    }
  }
  .mk-audio-player-notes {
    grid-column: 1 / -1;
    border-block-start: 1px solid var(--border);
    padding-block-start: 0.75rem;
    & summary {
      cursor: pointer;
      font-size: 0.875rem;
      font-weight: 600;
    }
    & summary:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
    & p,
    & ul {
      margin: 0.5rem 0 0;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      line-height: 1.6;
    }
  }

  .mk-audio-player[data-variant="compact"] {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.75rem 1rem;

    & .mk-audio-player-cover {
      display: none;
    }
    & .mk-audio-player-body {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: baseline;
      gap: 0.75rem;
    }
    & .mk-audio-player-title {
      font-size: 0.9375rem;
    }
    & .mk-audio-player-show {
      display: none;
    }
  }

  .mk-audio-player[data-variant="podcast"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    align-items: start;
    padding: 1.5rem;

    & .mk-audio-player-cover {
      box-shadow: var(--shadow-xl);
    }
    & .mk-audio-player-title {
      font-size: 1.5rem;
      letter-spacing: -0.02em;
    }
    & .mk-audio-player-controls,
    & .mk-audio-player-notes {
      grid-column: auto;
    }
    & .mk-audio-player-body {
      gap: 0.75rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-audio-player {
      border-color: CanvasText;
    }
  }
}

/* ── components/playlist-item/playlist-item.css ── */
/* -- Playlist Item (website · Media) --------------------------------------
   Represents one selectable track or episode within a playlist - number, cover, title, artist and length; the selected one shows "now playing" bars. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-playlist-item, .mk-playlist-item *, .mk-playlist-item ::before, .mk-playlist-item ::after) {
    box-sizing: border-box;
  }

  .mk-playlist {
    display: grid;
    gap: 0.125rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .mk-playlist-item label {
    position: relative;
    display: grid;
    grid-template-columns: 1.75rem 2.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background-color 150ms ease;

    &:hover {
      background: var(--accent);
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
  }
  .mk-playlist-item:has(input:checked) label {
    background: color-mix(in oklch, var(--primary) 9%, transparent);
  }
  .mk-playlist-item:has(input:focus-visible) label {
    outline: 2px solid var(--ring);
    outline-offset: -2px;
  }
  .mk-playlist-item-index {
    display: grid;
    place-items: center;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
  }
  .mk-playlist-item-bars {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 0.875rem;
    font-style: normal;
    & b {
      width: 3px;
      height: 100%;
      border-radius: 1px;
      background: var(--primary);
      transform-origin: bottom;
      animation: mk-playlist-bars 900ms ease-in-out infinite alternate;
    }
    & b:nth-child(2) {
      animation-delay: -300ms;
    }
    & b:nth-child(3) {
      animation-delay: -600ms;
    }
  }
  @keyframes mk-playlist-bars {
    from {
      scale: 1 0.25;
    }
    to {
      scale: 1 1;
    }
  }
  .mk-playlist-item:has(input:checked) {
    & .mk-playlist-item-index > span {
      display: none;
    }
    & .mk-playlist-item-bars {
      display: flex;
    }
    & .mk-playlist-item-text strong {
      color: var(--primary);
    }
  }
  .mk-playlist-item-cover {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--muted);
  }
  .mk-playlist-item-text {
    display: grid;
    min-width: 0;
    & strong {
      overflow: hidden;
      font-size: 0.9375rem;
      font-weight: 600;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    & small {
      overflow: hidden;
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }
  .mk-playlist-item-desc {
    display: -webkit-box;
    margin-block-start: 0.25rem;
    overflow: hidden;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .mk-playlist-item-duration {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
  }

  .mk-playlist-item[data-variant="episode"] label {
    grid-template-columns: 1.75rem 4.5rem minmax(0, 1fr) auto;
    align-items: start;
    padding-block: 0.75rem;
    & .mk-playlist-item-cover {
      width: 4.5rem;
      height: 4.5rem;
    }
    & .mk-playlist-item-index,
    & .mk-playlist-item-duration {
      padding-block-start: 0.25rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-playlist-item label {
      transition: none;
    }
    .mk-playlist-item-bars b {
      animation: none;
    }
    .mk-playlist-item-bars b:nth-child(1) {
      scale: 1 0.6;
    }
    .mk-playlist-item-bars b:nth-child(3) {
      scale: 1 0.8;
    }
  }

  @media (forced-colors: active) {
    .mk-playlist-item:has(input:checked) label {
      outline: 2px solid Highlight;
    }
    .mk-playlist-item-bars b {
      background: Highlight;
    }
  }
}

/* ── components/before-after/before-after.css ── */
/* -- Before After (website · Media) ---------------------------------------
   Compares two images through aligned views or a slider - drag a divider, toggle between them, or set them side by side. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-before-after, .mk-before-after *, .mk-before-after ::before, .mk-before-after ::after) {
    box-sizing: border-box;
  }

  .mk-before-after {
    --mk-ba-pos: 50%;

    display: grid;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
  }
  .mk-before-after-stage {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);

    & img {
      display: block;
      width: 100%;
      aspect-ratio: 3 / 2;
      object-fit: cover;
      user-select: none;
      -webkit-user-drag: none;
    }
  }
  /* the before picture sets the size; the after picture lies on top, clipped */
  .mk-before-after-before {
    position: relative;
  }
  .mk-before-after-after {
    position: absolute;
    inset: 0;
    height: 100%;
    clip-path: inset(0 0 0 var(--mk-ba-pos));
  }
  .mk-before-after-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--mk-ba-pos);
    width: 2px;
    translate: -50% 0;
    background: #fff;
    box-shadow: 0 0 0 1px oklch(0 0 0 / 0.15);
    pointer-events: none;

    &::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 2.5rem;
      height: 2.5rem;
      translate: -50% -50%;
      border-radius: 50%;
      background: #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18 3 12l6-6M15 6l6 6-6 6'/%3E%3C/svg%3E")
        center / 1.25rem no-repeat;
      box-shadow: var(--shadow-lg);
    }
  }
  .mk-before-after-range {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
  }
  .mk-before-after-stage:has(.mk-before-after-range:focus-visible) .mk-before-after-handle::after {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
  }
  .mk-before-after-label {
    position: absolute;
    top: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: oklch(0.12 0.02 260 / 0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(6px);
    pointer-events: none;

    &[data-side="before"] {
      left: 0.75rem;
    }
    &[data-side="after"] {
      right: 0.75rem;
    }
  }
  .mk-before-after-caption {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
  }

  /* toggle: a switch reveals the after picture */
  .mk-before-after[data-variant="toggle"] {
    & .mk-before-after-after {
      clip-path: inset(0 0 0 100%);
      transition: clip-path 600ms cubic-bezier(0.6, 0, 0.2, 1);
    }
    &:has(.mk-before-after-toggle input:checked) .mk-before-after-after {
      clip-path: inset(0);
    }
  }
  .mk-before-after-toggle {
    justify-self: center;
  }

  /* split: side by side */
  .mk-before-after[data-variant="split"] .mk-before-after-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.5rem;
    overflow: visible;
    background: none;

    & > div {
      position: relative;
      overflow: hidden;
      border-radius: var(--radius-xl);
    }
    & .mk-before-after-after {
      position: static;
      clip-path: none;
    }
    & .mk-before-after-label[data-side="after"] {
      left: 0.75rem;
      right: auto;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-before-after[data-variant="toggle"] .mk-before-after-after {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-before-after-handle {
      background: CanvasText;
    }
  }
}

/* ── components/social-post/social-post.css ── */
/* -- Social Post (website · Media) ----------------------------------------
   Displays one embedded or locally rendered social post - author, text with links, media, time and engagement, as a post, a photo post or a quote. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-social-post, .mk-social-post *, .mk-social-post ::before, .mk-social-post ::after) {
    box-sizing: border-box;
  }

  .mk-social-post {
    display: grid;
    gap: 0.875rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-social-post-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
  }
  .mk-social-post-who {
    display: grid;
    min-width: 0;
    line-height: 1.3;
  }
  .mk-social-post-name {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    overflow: hidden;
    color: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    &:hover {
      text-decoration: underline;
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }
  .mk-social-post-verified {
    flex: none;
    color: oklch(0.62 0.18 250);
  }
  .mk-social-post-handle {
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-social-post-network {
    color: var(--foreground);
  }
  .mk-social-post-text p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    white-space: pre-line;
    text-wrap: pretty;
    & a {
      color: oklch(0.55 0.18 250);
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
    }
  }
  .mk-social-post-media {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .mk-social-post-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-block-start: 0.75rem;
    border-block-start: 1px solid var(--border);
  }
  .mk-social-post-time {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    text-decoration: none;
    &:hover {
      text-decoration: underline;
    }
  }
  .mk-social-post-stats {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.3125rem;
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }

  .mk-social-post[data-variant="photo"] {
    padding: 0 0 1rem;
    overflow: hidden;

    & > .mk-social-post-media {
      aspect-ratio: 1;
      border: 0;
      border-radius: 0;
    }
    & > :not(.mk-social-post-media) {
      margin-inline: 1rem;
    }
    & .mk-social-post-foot {
      border: 0;
      padding: 0;
    }
  }

  .mk-social-post[data-variant="quote"] {
    & .mk-social-post-text p {
      font-size: 1.1875rem;
      line-height: 1.5;
    }
    & .mk-social-post-head {
      order: 2;
    }
    & .mk-social-post-text {
      order: 1;
    }
    & .mk-social-post-foot {
      order: 3;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-social-post {
      border-color: CanvasText;
    }
    .mk-social-post-verified {
      color: LinkText;
    }
  }
}

/* ── components/collection-item/collection-item.css ── */
/* -- Collection Item (website · Shop) -------------------------------------
   Links to one product collection with imagery and context - a picture with the name and count, text over the picture, or a wide banner. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-collection-item, .mk-collection-item *, .mk-collection-item ::before, .mk-collection-item ::after) {
    box-sizing: border-box;
  }

  .mk-collection-item {
    display: grid;
    gap: 0.875rem;
  }
  .mk-collection-item {
    position: relative;
  }
  .mk-collection-item-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-collection-item-title a:focus-visible {
    outline: none;
  }
  .mk-collection-item:has(.mk-collection-item-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-collection-item :is(button, input, select, label, .btn):not(.mk-collection-item-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-collection-item:has(.mk-collection-item-title a:focus-visible) {
    border-radius: var(--radius-xl);
  }
  .mk-collection-item-media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: var(--muted);
    transition:
      scale 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
      filter 300ms ease;
  }
  /* the card lifts, its picture casts a shadow and warms up */
  .mk-collection-item {
    transition: translate 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .mk-collection-item:not([data-variant]):is(:hover, :has(:focus-visible)) {
    translate: 0 -0.25rem;
    & .mk-collection-item-media {
      box-shadow: var(--shadow-lg);
      filter: saturate(1.15);
    }
    & .mk-collection-item-more {
      text-decoration: underline;
      text-underline-offset: 0.25em;
    }
  }
  .mk-collection-item-media {
    transition:
      scale 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
      filter 300ms ease,
      box-shadow 300ms ease;
  }
  .mk-collection-item-body {
    display: grid;
    gap: 0.125rem;
  }
  .mk-collection-item-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-collection-item-count {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-collection-item-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-block-start: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
      transition: translate 150ms ease;
    }
  }
  .mk-collection-item:hover .mk-collection-item-more svg {
    translate: 0.25rem 0;
  }

  .mk-collection-item[data-variant="overlay"],
  .mk-collection-item[data-variant="banner"] {
    overflow: hidden;
    border-radius: var(--radius-xl);
    color: #fff;

    & .mk-collection-item-media {
      border-radius: 0;
    }
    &:hover .mk-collection-item-media {
      scale: 1.04;
      filter: none;
    }
    & .mk-collection-item-body {
      position: absolute;
      inset: auto 0 0;
      padding: 3rem 1.25rem 1.25rem;
      background: linear-gradient(transparent, oklch(0.12 0.02 260 / 0.8));
    }
    & .mk-collection-item-count {
      color: oklch(1 0 0 / 0.8);
    }
  }
  .mk-collection-item[data-variant="banner"] {
    & .mk-collection-item-media {
      aspect-ratio: 21 / 9;
    }
    & .mk-collection-item-body {
      inset: 0 auto 0 0;
      align-content: center;
      justify-items: start;
      width: min(100%, 26rem);
      padding: 2rem;
      background: linear-gradient(90deg, oklch(0.12 0.02 260 / 0.75), transparent);
    }
    & .mk-collection-item-title {
      font-size: clamp(1.5rem, 4vw, 2.25rem);
      letter-spacing: -0.03em;
    }
    & .mk-collection-item-more {
      margin-block-start: 1rem;
      padding: 0.5rem 1rem;
      border-radius: 999px;
      background: #fff;
      color: oklch(0.15 0 0);
    }
  }

  /* a short label over the picture: New, Bestseller, -20 % (data-tone="sale") */
  .mk-collection-item-badge {
    position: absolute;
    z-index: 1;
    inset: 0.75rem auto auto 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: var(--background);
    color: var(--foreground);
    box-shadow: var(--shadow-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: none;
    &[data-tone="sale"] {
      background: #dc2626;
      color: #fff;
    }
  }

  /* overlay: a glass badge; the cue rises on hover or focus */
  .mk-collection-item[data-variant="overlay"] {
    & .mk-collection-item-badge:not([data-tone]) {
      border: 1px solid oklch(1 0 0 / 0.35);
      background: oklch(1 0 0 / 0.18);
      backdrop-filter: blur(8px);
      color: #fff;
      box-shadow: none;
    }
    & .mk-collection-item-more {
      opacity: 0;
      translate: 0 0.5rem;
      transition:
        opacity 200ms ease,
        translate 300ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    &:is(:hover, :has(:focus-visible)) .mk-collection-item-more {
      opacity: 1;
      translate: 0 0;
    }
  }
  @media (hover: none) {
    .mk-collection-item[data-variant="overlay"] .mk-collection-item-more {
      opacity: 1;
      translate: 0 0;
    }
  }

  /* stack: three pictures of the collection as prints on a tinted panel; they fan out on hover or focus */
  .mk-collection-item[data-variant="stack"] {
    & .mk-collection-item-stack {
      display: grid;
      place-items: center;
      isolation: isolate;
      aspect-ratio: 5 / 4;
      padding: 1rem;
      overflow: hidden;
      border-radius: var(--radius-xl);
      background: var(--mk-collection-tint, var(--muted));
    }
    & .mk-collection-item-media {
      grid-area: 1 / 1;
      width: 46%;
      border: 0.25rem solid #fff;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
      transition:
        rotate 450ms cubic-bezier(0.2, 0.7, 0.2, 1),
        translate 450ms cubic-bezier(0.2, 0.7, 0.2, 1),
        scale 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    & .mk-collection-item-media:nth-child(1) {
      rotate: -9deg;
      translate: -50% 5%;
    }
    & .mk-collection-item-media:nth-child(2) {
      rotate: 9deg;
      translate: 50% 5%;
    }
    /* the third print lies on top: the turned ones paint above an unturned one otherwise */
    & .mk-collection-item-media:nth-child(3) {
      z-index: 1;
    }
    &:is(:hover, :has(:focus-visible)) {
      & .mk-collection-item-media:nth-child(1) {
        rotate: -15deg;
        translate: -66% 9%;
      }
      & .mk-collection-item-media:nth-child(2) {
        rotate: 15deg;
        translate: 66% 9%;
      }
      & .mk-collection-item-media:nth-child(3) {
        scale: 1.08;
        translate: 0 -3%;
      }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .mk-collection-item,
    .mk-collection-item[data-variant="stack"] .mk-collection-item-media,
    .mk-collection-item[data-variant="overlay"] .mk-collection-item-more {
      transition: none;
    }
    .mk-collection-item:not([data-variant]):is(:hover, :has(:focus-visible)) {
      translate: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-collection-item-media,
    .mk-collection-item-more svg {
      transition: none;
    }
    .mk-collection-item:hover .mk-collection-item-media {
      scale: none;
    }
  }

  @media (forced-colors: active) {
    .mk-collection-item-badge {
      border: 1px solid CanvasText;
      background: Canvas;
      color: CanvasText;
    }
    .mk-collection-item:is([data-variant="overlay"], [data-variant="banner"]) .mk-collection-item-body {
      background: Canvas;
      color: CanvasText;
    }
  }
}

/* ── components/product-item/product-item.css ── */
/* -- Product Item (website · Shop) ----------------------------------------
   Displays one catalog entry with its image, name, price, and link - a second picture on hover, badges, rating, colors, a wishlist heart and add to cart. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-product-item, .mk-product-item *, .mk-product-item ::before, .mk-product-item ::after) {
    box-sizing: border-box;
  }

  .mk-product-item {
    display: grid;
    gap: 0.875rem;
    align-content: start;
  }
  .mk-product-item {
    position: relative;
  }
  .mk-product-item-name a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-product-item-name a:focus-visible {
    outline: none;
  }
  .mk-product-item:has(.mk-product-item-name a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-product-item :is(button, input, select, label, .btn):not(.mk-product-item-name a)) {
    position: relative;
    z-index: 1;
  }
  .mk-product-item-media {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--muted);
  }
  .mk-product-item-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: opacity 400ms ease;
    &[data-hover] {
      position: absolute;
      inset: 0;
      height: 100%;
      opacity: 0;
    }
  }
  .mk-product-item:hover .mk-product-item-image[data-hover] {
    opacity: 1;
  }
  /* on a photo, a badge needs a solid fill */
  .mk-product-item-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    box-shadow: var(--shadow-sm);
    &[data-sale] {
      background: var(--destructive);
      color: #fff;
    }
  }
  .mk-product-item-wish {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: color-mix(in oklch, var(--background) 85%, transparent);
    color: var(--foreground);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    backdrop-filter: blur(6px);

    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & svg {
      width: 1.125rem;
      height: 1.125rem;
      transition: scale 200ms ease;
    }
    &:has(input:checked) {
      color: oklch(0.6 0.22 20);
    }
    &:has(input:checked) svg {
      fill: currentColor;
      scale: 1.1;
    }
    &:has(input:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .mk-product-item-body {
    display: grid;
    gap: 0.25rem;
  }
  .mk-product-item-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-product-item-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-product-item-rating {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-product-item-stars {
    --mk-rating: 5;

    /* five ★ glyphs, filled to the rating by a clipped gradient */
    background: linear-gradient(90deg, oklch(0.78 0.16 75) calc(var(--mk-rating) / 5 * 100%), var(--border) 0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 0.9375rem;
    letter-spacing: 0.0625rem;
    line-height: 1;
  }
  .mk-product-item-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.25rem 0 0;
    font-variant-numeric: tabular-nums;
    & strong {
      font-size: 1.0625rem;
      font-weight: 700;
    }
    & del {
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
    &:has(del) strong {
      color: var(--destructive);
    }
  }
  .mk-product-item-swatches {
    display: flex;
    gap: 0.375rem;
    margin: 0.375rem 0 0;
    padding: 0;
    list-style: none;
    & li {
      --mk-swatch: var(--muted);
      width: 1rem;
      height: 1rem;
      border-radius: 50%;
      background: var(--mk-swatch);
      box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.15);
    }
    & li[aria-current] {
      outline: 2px solid var(--foreground);
      outline-offset: 2px;
    }
  }
  .mk-product-item-add {
    justify-self: start;
  }

  .mk-product-item[data-variant="horizontal"] {
    grid-template-columns: minmax(7rem, 30%) minmax(0, 1fr);
    gap: 0.5rem 1.25rem;
    align-items: start;

    & .mk-product-item-media {
      grid-row: span 2;
    }
    & .mk-product-item-add {
      grid-column: 2;
    }
  }

  .mk-product-item[data-variant="minimal"] {
    text-align: center;

    & .mk-product-item-price {
      justify-content: center;
    }
    & :is(.mk-product-item-add, .mk-product-item-rating, .mk-product-item-swatches) {
      display: none;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-product-item-image,
    .mk-product-item-wish svg {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-product-item-stars {
      background: none;
    }
    .mk-product-item-stars {
      color: CanvasText;
    }
    .mk-product-item-wish {
      border: 1px solid ButtonText;
    }
  }
}

/* ── components/cart-item/cart-item.css ── */
/* -- Cart Item (website · Shop) -------------------------------------------
   Displays one selected product with quantity and removal controls - picture, name, options, a quantity stepper, the line total and remove. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-cart-item, .mk-cart-item *, .mk-cart-item ::before, .mk-cart-item ::after) {
    box-sizing: border-box;
  }

  .mk-cart-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-block-start: 1px solid var(--border);
  }
  .mk-cart-item {
    container: mk-cart-item / inline-size;
    position: relative;
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) auto auto;
    grid-template-areas: "img info qty total";
    align-items: center;
    gap: 0.5rem 1.25rem;
    padding: 1.25rem 2.75rem 1.25rem 0;
    border-block-end: 1px solid var(--border);
  }
  .mk-cart-item-image {
    grid-area: img;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--muted);
  }
  .mk-cart-item-info {
    grid-area: info;
    display: grid;
    gap: 0.125rem;
    min-width: 0;
  }
  .mk-cart-item-name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    & a {
      color: inherit;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
    }
  }
  .mk-cart-item-options,
  .mk-cart-item-unit {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-cart-item-qty {
    grid-area: qty;
    & .number-input {
      width: 7rem;
    }
  }
  .mk-cart-item-total {
    grid-area: total;
    min-width: 4.5rem;
    font-weight: 700;
    text-align: end;
    font-variant-numeric: tabular-nums;
  }
  .mk-cart-item-remove {
    position: absolute;
    top: 50%;
    right: 0;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;

    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      background: var(--accent);
      color: var(--destructive);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
  }

  .mk-cart-item[data-variant="compact"] {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    grid-template-areas: "img info total" "img qty total";
    gap: 0 0.875rem;
    padding-block: 0.875rem;

    & .mk-cart-item-unit {
      display: none;
    }
    & .mk-cart-item-qty {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
    & .mk-cart-item-total {
      font-size: 0.9375rem;
    }
  }

  @container mk-cart-item (max-width: 30rem) {
    .mk-cart-item-info,
    .mk-cart-item-qty,
    .mk-cart-item-total {
      justify-self: start;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-cart-item-remove {
      border: 1px solid ButtonText;
    }
  }
}

/* ── components/cart-summary/cart-summary.css ── */
/* -- Cart Summary (website · Shop) ----------------------------------------
   Shows cart totals and the action to proceed to checkout - a free-shipping progress bar, the breakdown, the total, checkout and how you can pay. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-cart-summary, .mk-cart-summary *, .mk-cart-summary ::before, .mk-cart-summary ::after) {
    box-sizing: border-box;
  }

  .mk-cart-summary {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-cart-summary-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
  }
  .mk-cart-summary-shipping {
    display: grid;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    background: var(--muted);
    font-size: 0.875rem;
    & progress {
      width: 100%;
    }
    & strong {
      font-weight: 600;
    }
  }
  .mk-cart-summary-lines {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    & div {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      font-size: 0.9375rem;
    }
    & dt {
      color: var(--muted-foreground);
    }
    & dd {
      margin: 0;
      font-variant-numeric: tabular-nums;
    }
    & [data-discount] dd {
      color: #15803d;
      font-weight: 500;
    }
  }
  .mk-cart-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--border);
    & span {
      font-weight: 600;
    }
    & small {
      display: block;
      color: var(--muted-foreground);
      font-size: 0.75rem;
      font-weight: 400;
    }
    & output {
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      font-variant-numeric: tabular-nums;
    }
  }
  .mk-cart-summary-checkout {
    width: 100%;
  }
  .mk-cart-summary-pay {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & li {
      padding: 0.125rem 0.5rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      color: var(--muted-foreground);
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.04em;
    }
  }
  .mk-cart-summary-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }

  .mk-cart-summary[data-variant="compact"] {
    gap: 0.875rem;
    padding: 1rem;
    & .mk-cart-summary-total {
      padding: 0;
      border: 0;
    }
    & .mk-cart-summary-total output {
      font-size: 1.125rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-cart-summary {
      border-color: CanvasText;
    }
  }
}

/* ── components/discount-form/discount-form.css ── */
/* -- Discount Form (website · Shop) ---------------------------------------
   Accepts a promotional code and displays its application result - the field, the error when it fails, and the applied code with its saving. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-discount-form, .mk-discount-form *, .mk-discount-form ::before, .mk-discount-form ::after) {
    box-sizing: border-box;
  }

  .mk-discount-form {
    display: grid;
    gap: 0.5rem;
    max-width: 26rem;
    margin: 0;
  }
  .mk-discount-form-row {
    display: flex;
    gap: 0.5rem;
    & .input {
      flex: 1;
      min-width: 0;
      font-family: var(--font-mono);
      letter-spacing: 0.04em;
      text-transform: uppercase;
    }
    & .input::placeholder {
      text-transform: none;
      letter-spacing: 0;
      font-family: var(--font-sans);
    }
  }
  .mk-discount-form-error {
    display: none;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    color: var(--destructive);
    font-size: 0.8125rem;
    font-weight: 500;
    & svg {
      flex: none;
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  .mk-discount-form:has(.input:user-invalid, .input[aria-invalid="true"]) .mk-discount-form-error {
    display: flex;
  }
  .mk-discount-form .input[aria-invalid="true"] {
    border-color: var(--destructive);
  }

  .mk-discount-form-applied {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 26rem;
    padding: 0.625rem 0.5rem 0.625rem 0.875rem;
    border: 1px dashed color-mix(in oklab, #16a34a 50%, var(--border));
    border-radius: var(--radius-lg);
    background: color-mix(in oklch, #16a34a 7%, transparent);
    font-size: 0.875rem;

    & > svg {
      flex: none;
      width: 1rem;
      height: 1rem;
      color: #15803d;
    }
    & code {
      font-family: var(--font-mono);
      font-weight: 700;
      letter-spacing: 0.06em;
    }
    & span {
      flex: 1;
      color: var(--muted-foreground);
    }
    & strong {
      color: #15803d;
      font-variant-numeric: tabular-nums;
    }
    & button {
      display: grid;
      place-items: center;
      width: 1.75rem;
      height: 1.75rem;
      padding: 0;
      border: 0;
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--muted-foreground);
      cursor: pointer;
    }
    & button:hover {
      background: var(--accent);
      color: var(--foreground);
    }
    & button:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
    & button svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }

  .mk-discount-form[data-variant="collapsed"] {
    & summary {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      color: var(--primary);
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      list-style: none;
    }
    & summary::-webkit-details-marker {
      display: none;
    }
    & summary svg {
      width: 0.875rem;
      height: 0.875rem;
      transition: rotate 150ms ease;
    }
    &[open] summary svg {
      rotate: 45deg;
    }
    & summary:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
    & .mk-discount-form {
      margin-block-start: 0.75rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-discount-form[data-variant="collapsed"] summary svg {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-discount-form-applied {
      border-color: CanvasText;
    }
  }
}

/* ── components/address-form/address-form.css ── */
/* -- Address Form (website · Shop) ----------------------------------------
   Collects a shipping or billing address - the fields every browser can autofill, laid out in a grid, with saved addresses to pick from. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-address-form, .mk-address-form *, .mk-address-form ::before, .mk-address-form ::after) {
    box-sizing: border-box;
  }

  .mk-address-form {
    container: mk-address-form / inline-size;
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    width: 100%;
    & legend {
      margin-block-end: 1rem;
      padding: 0;
      font-size: 1.0625rem;
      font-weight: 600;
    }
  }
  .mk-address-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .mk-address-form-field {
    display: grid;
    gap: 0.375rem;
    align-content: start;
    & .label small {
      color: var(--muted-foreground);
      font-weight: 400;
    }
  }
  .mk-address-form-same {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
  }

  .mk-address-form-saved {
    display: grid;
    gap: 0.625rem;
  }
  .mk-address-form-option {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.25rem 0.875rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;

    & strong {
      font-size: 0.9375rem;
    }
    & address {
      grid-column: 2;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      font-style: normal;
      line-height: 1.5;
    }
    & a {
      position: relative;
      z-index: 1;
      color: var(--primary);
      font-size: 0.8125rem;
      font-weight: 600;
      text-decoration: none;
    }
    &:has(input:checked) {
      border-color: var(--primary);
      box-shadow: 0 0 0 1px var(--primary);
    }
  }
  .mk-address-form-add {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: fit-content;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }

  @container mk-address-form (min-width: 36rem) {
    .mk-address-form-grid {
      grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .mk-address-form-field {
      grid-column: span 6;
    }
    .mk-address-form-field[data-span="2"] {
      grid-column: span 2;
    }
    .mk-address-form-field[data-span="3"] {
      grid-column: span 3;
    }
    .mk-address-form-field[data-span="4"] {
      grid-column: span 4;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-address-form-option:has(input:checked) {
      border-color: Highlight;
    }
  }
}

/* ── components/delivery-options/delivery-options.css ── */
/* -- Delivery Options (website · Shop) ------------------------------------
   Presents available delivery methods with costs and estimates - radio cards with an icon, the arrival window and the price. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-delivery-options, .mk-delivery-options *, .mk-delivery-options ::before, .mk-delivery-options ::after) {
    box-sizing: border-box;
  }

  .mk-delivery-options {
    display: grid;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    & legend {
      margin-block-end: 0.75rem;
      padding: 0;
      font-size: 1.0625rem;
      font-weight: 600;
    }
  }
  .mk-delivery-options-option {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.875rem;
    padding: 1rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition:
      border-color 150ms ease,
      background-color 150ms ease;

    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    &:has(input:checked) {
      border-color: var(--primary);
      background: color-mix(in oklch, var(--primary) 5%, transparent);
      box-shadow: 0 0 0 1px var(--primary);
    }
  }
  .mk-delivery-options-icon {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    background: var(--muted);
    & svg {
      width: 1.125rem;
      height: 1.125rem;
    }
  }
  .mk-delivery-options-text {
    display: grid;
    gap: 0.125rem;
    & strong {
      font-size: 0.9375rem;
      font-weight: 600;
    }
    & small {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }
  .mk-delivery-options-price {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  .mk-delivery-options[data-variant="grid"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));

    & legend {
      grid-column: 1 / -1;
    }
    & .mk-delivery-options-option {
      grid-template-columns: minmax(0, 1fr) auto;
      align-content: start;
      align-items: start;
    }
    & .mk-delivery-options-option input {
      grid-column: 2;
      grid-row: 1;
    }
    & .mk-delivery-options-icon {
      grid-column: 1;
      grid-row: 1;
    }
    & .mk-delivery-options-text,
    & .mk-delivery-options-price {
      grid-column: 1 / -1;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-delivery-options-option {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-delivery-options-option:has(input:checked) {
      border-color: Highlight;
    }
  }
}

/* ── components/payment-form/payment-form.css ── */
/* -- Payment Form (website · Shop) ----------------------------------------
   Collects or selects a payment method - card, PayPal or bank transfer as tabs, the card fields with the right keyboards and autofill, or a saved card. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-payment-form, .mk-payment-form *, .mk-payment-form ::before, .mk-payment-form ::after) {
    box-sizing: border-box;
  }

  .mk-payment-form {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    max-width: 32rem;
    & legend {
      margin-block-end: 1rem;
      padding: 0;
      font-size: 1.0625rem;
      font-weight: 600;
    }
  }
  .mk-payment-form-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    & label {
      position: relative;
      display: grid;
      justify-items: center;
      gap: 0.25rem;
      padding: 0.75rem 0.5rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      font-size: 0.8125rem;
      font-weight: 600;
      cursor: pointer;
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & svg {
      width: 1.25rem;
      height: 1.25rem;
    }
    & label:has(:checked) {
      border-color: var(--primary);
      box-shadow: 0 0 0 1px var(--primary);
      background: color-mix(in oklch, var(--primary) 5%, transparent);
    }
    & label:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .mk-payment-form-panel {
    display: none;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--muted);
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
    & dl {
      display: grid;
      gap: 0.5rem;
      margin: 0;
      font-size: 0.875rem;
    }
    & dl div {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
    }
    & dt {
      color: var(--muted-foreground);
    }
    & dd {
      margin: 0;
      font-family: var(--font-mono);
    }
  }
  .mk-payment-form:has(input[value="card"]:checked) [data-method="card"],
  .mk-payment-form:has(input[value="paypal"]:checked) [data-method="paypal"],
  .mk-payment-form:has(input[value="bank"]:checked) [data-method="bank"] {
    display: grid;
  }
  .mk-payment-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
  }
  .mk-payment-form-field {
    display: grid;
    gap: 0.375rem;
    &[data-span="full"] {
      grid-column: 1 / -1;
    }
  }
  .mk-payment-form-number {
    position: relative;
    & .input {
      padding-inline-end: 6.5rem;
      font-variant-numeric: tabular-nums;
      letter-spacing: 0.04em;
    }
    & ul {
      position: absolute;
      top: 50%;
      right: 0.5rem;
      translate: 0 -50%;
      display: flex;
      gap: 0.25rem;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    & li {
      padding: 0.0625rem 0.3125rem;
      border: 1px solid var(--border);
      border-radius: 3px;
      background: var(--background);
      font-size: 0.5625rem;
      font-weight: 800;
      letter-spacing: 0.02em;
    }
  }
  .mk-payment-form-note {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }

  .mk-payment-form-saved {
    display: grid;
    gap: 0.5rem;
    & label {
      position: relative;
      display: grid;
      grid-template-columns: auto auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.75rem;
      padding: 0.875rem 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      cursor: pointer;
      font-size: 0.9375rem;
    }
    & label:has(:checked) {
      border-color: var(--primary);
      box-shadow: 0 0 0 1px var(--primary);
    }
    & small {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }
  .mk-payment-form-brand {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 1.625rem;
    border-radius: 4px;
    background: var(--foreground);
    color: var(--background);
    font-size: 0.5625rem;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-payment-form-methods label:has(:checked),
    .mk-payment-form-saved label:has(:checked) {
      border-color: Highlight;
    }
  }
}

/* ── components/order-summary/order-summary.css ── */
/* -- Order Summary (website · Shop) ---------------------------------------
   Displays an order's items and charge breakdown - pictures with quantity badges, the lines, discount, shipping and total; collapsible on small screens. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-order-summary, .mk-order-summary *, .mk-order-summary ::before, .mk-order-summary ::after) {
    box-sizing: border-box;
  }

  .mk-order-summary {
    display: grid;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--muted);
    max-width: 26rem;
  }
  .mk-order-summary-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
  }
  .mk-order-summary-items {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & li {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.875rem;
    }
  }
  .mk-order-summary-thumb {
    position: relative;
    & img {
      display: block;
      width: 3.5rem;
      aspect-ratio: 4 / 5;
      object-fit: cover;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--background);
    }
    & b {
      position: absolute;
      top: -0.5rem;
      right: -0.5rem;
      display: grid;
      place-items: center;
      min-width: 1.25rem;
      height: 1.25rem;
      padding-inline: 0.25rem;
      border-radius: 999px;
      background: var(--muted-foreground);
      color: var(--background);
      font-size: 0.6875rem;
      font-weight: 700;
      box-sizing: border-box;
    }
  }
  .mk-order-summary-name {
    display: grid;
    font-size: 0.875rem;
    font-weight: 600;
    & small {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      font-weight: 400;
    }
  }
  .mk-order-summary-price {
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
  }
  .mk-order-summary-totals {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding-block-start: 1rem;
    border-block-start: 1px solid var(--border);
    & div {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
      font-size: 0.875rem;
    }
    & dt {
      color: var(--muted-foreground);
    }
    & dd {
      margin: 0;
      font-variant-numeric: tabular-nums;
    }
    & [data-discount] dd {
      color: #15803d;
    }
    & [data-total] {
      align-items: baseline;
      margin-block-start: 0.5rem;
      padding-block-start: 0.875rem;
      border-block-start: 1px solid var(--border);
    }
    & [data-total] dt {
      color: var(--foreground);
      font-size: 1rem;
      font-weight: 600;
    }
    & [data-total] small {
      display: block;
      color: var(--muted-foreground);
      font-size: 0.75rem;
      font-weight: 400;
    }
    & [data-total] dd {
      font-size: 1.375rem;
      font-weight: 700;
    }
  }

  .mk-order-summary[data-variant="collapsible"] {
    gap: 0;
    padding: 0;

    & > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1rem 1.25rem;
      cursor: pointer;
      list-style: none;
      color: var(--primary);
      font-size: 0.9375rem;
      font-weight: 600;
    }
    & > summary::-webkit-details-marker {
      display: none;
    }
    & > summary span {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
    }
    & > summary svg {
      width: 1rem;
      height: 1rem;
      transition: rotate 200ms ease;
    }
    &[open] > summary svg {
      rotate: 180deg;
    }
    & > summary b {
      color: var(--foreground);
      font-size: 1.125rem;
      font-variant-numeric: tabular-nums;
    }
    & > summary:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
      border-radius: var(--radius-xl);
    }
    & > div {
      display: grid;
      gap: 1.25rem;
      padding: 0 1.25rem 1.25rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-order-summary[data-variant="collapsible"] > summary svg {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-order-summary {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/order-confirmation/order-confirmation.css ── */
/* -- Order Confirmation (website · Shop) ----------------------------------
   Confirms a completed purchase and provides its reference - a check that draws itself, the order number, what happens next and where to go. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(
    .mk-order-confirmation,
    .mk-order-confirmation *,
    .mk-order-confirmation ::before,
    .mk-order-confirmation ::after
  ) {
    box-sizing: border-box;
  }

  .mk-order-confirmation {
    display: grid;
    justify-items: center;
    gap: 1.5rem;
    max-width: 40rem;
    margin-inline: auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }
  .mk-order-confirmation-check {
    width: 4.5rem;
    height: 4.5rem;
    color: #16a34a;

    & circle {
      fill: color-mix(in oklch, #16a34a 12%, transparent);
      stroke: currentColor;
      stroke-width: 2;
    }
    & path {
      fill: none;
      stroke: currentColor;
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 30;
      stroke-dashoffset: 0;
      animation: mk-order-check 600ms 200ms cubic-bezier(0.65, 0, 0.35, 1) both;
    }
  }
  @keyframes mk-order-check {
    from {
      stroke-dashoffset: 30;
    }
  }
  .mk-order-confirmation-title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .mk-order-confirmation-lead {
    margin: -0.5rem 0 0;
    color: var(--muted-foreground);
    text-wrap: pretty;
    & code {
      padding: 0.125rem 0.375rem;
      border-radius: var(--radius-sm);
      background: var(--muted);
      color: var(--foreground);
      font-family: var(--font-mono);
      font-weight: 700;
      user-select: all;
    }
  }
  .mk-order-confirmation-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1px;
    width: 100%;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--border);
    text-align: start;

    & div {
      display: grid;
      gap: 0.25rem;
      padding: 1rem 1.25rem;
      background: var(--card);
    }
    & dt {
      color: var(--muted-foreground);
      font-size: 0.75rem;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
    & dd {
      margin: 0;
      font-size: 0.9375rem;
    }
    & address {
      font-style: normal;
    }
  }
  .mk-order-confirmation-steps {
    display: grid;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: mk-oc;
    text-align: start;
    & li {
      counter-increment: mk-oc;
      display: grid;
      grid-template-columns: 1.75rem minmax(0, 1fr);
      gap: 0.75rem;
      align-items: start;
      font-size: 0.9375rem;
    }
    & li::before {
      content: counter(mk-oc);
      display: grid;
      place-items: center;
      width: 1.75rem;
      height: 1.75rem;
      border-radius: 50%;
      background: var(--muted);
      font-size: 0.8125rem;
      font-weight: 700;
    }
    & span {
      color: var(--muted-foreground);
    }
  }
  .mk-order-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-order-confirmation-check path {
      animation: none;
    }
  }

  @media (forced-colors: active) {
    .mk-order-confirmation-check {
      color: CanvasText;
    }
    .mk-order-confirmation-details {
      border-color: CanvasText;
    }
  }
}

/* ── components/tracking-status/tracking-status.css ── */
/* -- Tracking Status (website · Shop) -------------------------------------
   Shows an order's fulfillment progress and shipment links - the estimated arrival, the steps from ordered to delivered, and the carrier's event log. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-tracking-status, .mk-tracking-status *, .mk-tracking-status ::before, .mk-tracking-status ::after) {
    box-sizing: border-box;
  }

  .mk-tracking-status {
    container: mk-tracking-status / inline-size;
    display: grid;
    gap: 1.5rem;
    width: 100%;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-tracking-status-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    & h2 {
      margin: 0;
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--muted-foreground);
    }
    & p {
      margin: 0.125rem 0 0;
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
  }
  .mk-tracking-status-carrier {
    display: grid;
    justify-items: end;
    gap: 0.125rem;
    font-size: 0.875rem;
    & span {
      color: var(--muted-foreground);
    }
    & a {
      color: var(--primary);
      font-family: var(--font-mono);
      font-weight: 600;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
    }
  }
  .mk-tracking-status-steps {
    --mk-tracking-progress: 0%;

    position: relative;
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
      display: grid;
      grid-template-columns: 1.75rem minmax(0, 1fr);
      gap: 0 0.75rem;
      align-items: center;
    }
    & strong {
      font-size: 0.9375rem;
      font-weight: 600;
    }
    & small {
      grid-column: 2;
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
    & li:not([data-done], [aria-current]) strong {
      color: var(--muted-foreground);
      font-weight: 500;
    }
  }
  .mk-tracking-status-dot {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    grid-row: span 2;
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--card);
    box-sizing: border-box;

    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  [data-done] > .mk-tracking-status-dot {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
  }
  [aria-current] > .mk-tracking-status-dot {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px color-mix(in oklch, #16a34a 18%, transparent);
  }
  [aria-current] > .mk-tracking-status-dot::after {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #16a34a;
  }
  .mk-tracking-status-log {
    border-block-start: 1px solid var(--border);
    padding-block-start: 1rem;

    & summary {
      cursor: pointer;
      font-size: 0.875rem;
      font-weight: 600;
    }
    & summary:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
    & ol {
      display: grid;
      gap: 0.75rem;
      margin: 0.875rem 0 0;
      padding: 0;
      list-style: none;
    }
    & li {
      display: grid;
      grid-template-columns: 7.5rem minmax(0, 1fr);
      gap: 1rem;
      font-size: 0.875rem;
    }
    & time {
      color: var(--muted-foreground);
      font-variant-numeric: tabular-nums;
    }
    & span {
      color: var(--muted-foreground);
    }
  }

  .mk-tracking-status[data-variant="compact"] {
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    & .mk-tracking-status-head p {
      font-size: 1rem;
    }
  }
  .mk-tracking-status-bar {
    height: 0.375rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #16a34a var(--mk-tracking-progress, 0%), var(--muted) 0);
  }

  @container mk-tracking-status (min-width: 40rem) {
    .mk-tracking-status-steps {
      grid-auto-flow: column;
      grid-auto-columns: minmax(0, 1fr);
      gap: 0.5rem;

      & li {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 0.25rem;
        text-align: center;
      }
      & small {
        grid-column: 1;
      }
      &::before,
      &::after {
        content: "";
        position: absolute;
        top: 0.8125rem;
        left: 12.5%;
        height: 2px;
      }
      &::before {
        right: 12.5%;
        background: var(--border);
      }
      &::after {
        width: calc((75%) * var(--mk-tracking-progress) / 100%);
        background: #16a34a;
      }
    }
    .mk-tracking-status-dot {
      grid-row: auto;
      margin-block-end: 0.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    [data-done] > .mk-tracking-status-dot,
    [aria-current] > .mk-tracking-status-dot::after {
      background: Highlight;
      forced-color-adjust: none;
    }
    .mk-tracking-status-steps::after {
      background: Highlight;
    }
  }
}

/* ── components/wishlist-item/wishlist-item.css ── */
/* -- Wishlist Item (website · Shop) ---------------------------------------
   Displays one saved product with purchase and removal actions - stock status, price, when it was saved, add to cart or get notified. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-wishlist-item, .mk-wishlist-item *, .mk-wishlist-item ::before, .mk-wishlist-item ::after) {
    box-sizing: border-box;
  }

  .mk-wishlist-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-block-start: 1px solid var(--border);
  }
  .mk-wishlist-item {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.5rem 1.25rem;
    padding-block: 1.25rem;
    border-block-end: 1px solid var(--border);
  }
  .mk-wishlist-item-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--muted);
  }
  .mk-wishlist-item:has([data-stock="out"]) .mk-wishlist-item-image {
    opacity: 0.5;
    filter: grayscale(1);
  }
  .mk-wishlist-item-info {
    display: grid;
    gap: 0.125rem;
    min-width: 0;
  }
  .mk-wishlist-item-name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    & a {
      color: inherit;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
    }
  }
  .mk-wishlist-item-options,
  .mk-wishlist-item-added {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-wishlist-item-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    &::before {
      content: "";
      width: 0.4375rem;
      height: 0.4375rem;
      border-radius: 50%;
      background: currentColor;
    }
    &[data-stock="in"] {
      color: #15803d;
    }
    &[data-stock="low"] {
      color: #b45309;
    }
    &[data-stock="out"] {
      color: var(--muted-foreground);
    }
  }
  .mk-wishlist-item-price {
    font-variant-numeric: tabular-nums;
  }
  .mk-wishlist-item-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
  .mk-wishlist-item-remove {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      background: var(--accent);
      color: var(--destructive);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
  }

  .mk-wishlist-item[data-variant="card"] {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);

    & .mk-wishlist-item-image {
      grid-column: 1 / -1;
    }
    & .mk-wishlist-item-actions {
      grid-column: 1 / -1;
      justify-content: space-between;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-wishlist-item-stock::before {
      forced-color-adjust: none;
    }
  }
}

/* ── components/login-form/login-form.css ── */
/* -- Login Form (website · Account & States) ------------------------------
   Authenticates a user with account credentials - email, password, "remember me" and a reset link, on a card, beside a picture, or plain. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-login-form, .mk-login-form *, .mk-login-form ::before, .mk-login-form ::after) {
    box-sizing: border-box;
  }

  .mk-login-form {
    container: mk-login-form / inline-size;
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-sm);
  }
  .mk-login-form-head {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
    & > svg {
      width: 2rem;
      height: 2rem;
      color: var(--primary);
    }
    & h1,
    & h2 {
      margin: 0.25rem 0 0;
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.9375rem;
      text-wrap: pretty;
    }
  }
  .mk-login-form form {
    display: grid;
    gap: 1rem;
  }
  .mk-login-form .mk-auth-field {
    display: grid;
    gap: 0.375rem;
  }
  .mk-login-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    & a {
      color: var(--primary);
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-login-form-foot {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
    & a {
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-login-form-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    & a {
      color: var(--primary);
      font-size: 0.8125rem;
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-login-form .btn[type="submit"] {
    width: 100%;
  }

  .mk-login-form[data-variant="split"] {
    max-width: 56rem;
    padding: 0;
    overflow: hidden;
    grid-template-columns: minmax(0, 1fr);
  }
  .mk-login-form-panel {
    display: grid;
    gap: 1.5rem;
    padding: 2rem;
  }
  .mk-login-form-aside {
    position: relative;
    display: none;
    align-content: end;
    min-height: 100%;
    padding: 2rem;
    color: #fff;
    isolation: isolate;

    & img {
      position: absolute;
      inset: 0;
      z-index: -2;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    &::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: linear-gradient(transparent 30%, oklch(0.12 0.02 260 / 0.85));
    }
    & blockquote {
      margin: 0;
      font-size: 1.125rem;
      line-height: 1.5;
    }
    & figcaption {
      margin-block-start: 0.75rem;
      font-size: 0.875rem;
      opacity: 0.8;
    }
  }
  @container mk-login-form (min-width: 44rem) {
    .mk-login-form-panel {
      padding: 3rem;
    }
    .mk-login-form-aside {
      display: grid;
    }
    .mk-login-form-split {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
  }

  .mk-login-form[data-variant="minimal"] {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-login-form {
      border-color: CanvasText;
    }
  }
}

/* ── components/social-login/social-login.css ── */
/* -- Social Login (website · Account & States) ----------------------------
   Provides authentication through external identity providers - Google, Apple, GitHub, Microsoft - as full-width buttons, an icon row, with a divider to the email form. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-social-login, .mk-social-login *, .mk-social-login ::before, .mk-social-login ::after) {
    box-sizing: border-box;
  }

  .mk-social-login {
    display: grid;
    gap: 0.625rem;
    width: 100%;
    max-width: 24rem;
    & .btn {
      justify-content: center;
      gap: 0.625rem;
      width: 100%;
    }
    & svg {
      flex: none;
    }
  }
  .mk-social-login[data-variant="icons"] {
    grid-template-columns: repeat(auto-fit, minmax(3rem, 1fr));
    & .btn {
      padding-inline: 0;
    }
  }
  .mk-social-login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 24rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;

    &::before,
    &::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--border);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-social-login-divider::before,
    .mk-social-login-divider::after {
      background: CanvasText;
    }
  }
}

/* ── components/signup-form/signup-form.css ── */
/* -- Signup Form (website · Account & States) -----------------------------
   Collects the information needed to create an account - name, email, a new password with its rules, consent - on a card or beside the benefits. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-signup-form, .mk-signup-form *, .mk-signup-form ::before, .mk-signup-form ::after) {
    box-sizing: border-box;
  }

  .mk-signup-form {
    container: mk-signup-form / inline-size;
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-sm);
  }
  .mk-signup-form-head {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
    & > svg {
      width: 2rem;
      height: 2rem;
      color: var(--primary);
    }
    & h1,
    & h2 {
      margin: 0.25rem 0 0;
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.9375rem;
      text-wrap: pretty;
    }
  }
  .mk-signup-form form {
    display: grid;
    gap: 1rem;
  }
  .mk-signup-form .mk-auth-field {
    display: grid;
    gap: 0.375rem;
  }
  .mk-signup-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    & a {
      color: var(--primary);
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-signup-form-foot {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
    & a {
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-signup-form .input:user-valid {
    border-color: #16a34a;
  }
  .mk-signup-form .btn[type="submit"] {
    width: 100%;
  }
  .mk-signup-form-rules {
    display: grid;
    gap: 0.25rem;
    margin: 0.25rem 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    & li {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    & li::before {
      content: "";
      width: 0.375rem;
      height: 0.375rem;
      border-radius: 50%;
      background: currentColor;
      opacity: 0.6;
    }
  }
  .mk-auth-field:has(.input:user-valid) .mk-signup-form-rules {
    color: #15803d;
  }
  .mk-signup-form-terms {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    line-height: 1.5;
    & input {
      margin-block-start: 0.125rem;
    }
    & a {
      color: var(--primary);
    }
  }

  .mk-signup-form[data-variant="split"] {
    max-width: 56rem;
    padding: 0;
    overflow: hidden;
  }
  .mk-signup-form-layout {
    display: grid;
  }
  .mk-signup-form-pitch {
    display: grid;
    align-content: center;
    gap: 1.25rem;
    padding: 2rem;
    background: var(--muted);
    & h2 {
      margin: 0;
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    & ul {
      display: grid;
      gap: 0.875rem;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    & li {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 0.125rem 0.75rem;
    }
    & li svg {
      grid-row: span 2;
      width: 1.25rem;
      height: 1.25rem;
      color: var(--primary);
    }
    & li span {
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
  }
  .mk-signup-form-panel {
    display: grid;
    gap: 1.25rem;
    padding: 2rem;
  }
  @container mk-signup-form (min-width: 44rem) {
    .mk-signup-form-layout {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    }
    .mk-signup-form-pitch,
    .mk-signup-form-panel {
      padding: 2.5rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-signup-form {
      border-color: CanvasText;
    }
  }
}

/* ── components/reset-request/reset-request.css ── */
/* -- Reset Request (website · Account & States) ---------------------------
   Requests a password-reset link for an account - the email field, then the "check your inbox" state with a way to resend. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-reset-request, .mk-reset-request *, .mk-reset-request ::before, .mk-reset-request ::after) {
    box-sizing: border-box;
  }

  .mk-reset-request {
    container: mk-reset-request / inline-size;
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-sm);
  }
  .mk-reset-request-head {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
    & > svg {
      width: 2rem;
      height: 2rem;
      color: var(--primary);
    }
    & h1,
    & h2 {
      margin: 0.25rem 0 0;
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.9375rem;
      text-wrap: pretty;
    }
  }
  .mk-reset-request form {
    display: grid;
    gap: 1rem;
  }
  .mk-reset-request .mk-auth-field {
    display: grid;
    gap: 0.375rem;
  }
  .mk-reset-request-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    & a {
      color: var(--primary);
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-reset-request-foot {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
    & a {
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-reset-request-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--muted);
    color: var(--foreground);
    & svg {
      width: 1.375rem;
      height: 1.375rem;
    }
  }
  .mk-reset-request .btn {
    width: 100%;
  }
  .mk-reset-request-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-decoration: none;
    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      color: var(--foreground);
    }
  }
  .mk-reset-request[data-variant="sent"] .mk-reset-request-icon {
    background: color-mix(in oklch, #16a34a 14%, transparent);
    color: #15803d;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-reset-request {
      border-color: CanvasText;
    }
  }
}

/* ── components/password-reset/password-reset.css ── */
/* -- Password Reset (website · Account & States) --------------------------
   Collects and confirms a replacement password - the new password with its rules, the confirmation, and the done state. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-password-reset, .mk-password-reset *, .mk-password-reset ::before, .mk-password-reset ::after) {
    box-sizing: border-box;
  }

  .mk-password-reset {
    container: mk-password-reset / inline-size;
    display: grid;
    gap: 1.5rem;
    width: 100%;
    max-width: 24rem;
    margin-inline: auto;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    box-shadow: var(--shadow-sm);
  }
  .mk-password-reset-head {
    display: grid;
    justify-items: center;
    gap: 0.5rem;
    text-align: center;
    & > svg {
      width: 2rem;
      height: 2rem;
      color: var(--primary);
    }
    & h1,
    & h2 {
      margin: 0.25rem 0 0;
      font-size: 1.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.9375rem;
      text-wrap: pretty;
    }
  }
  .mk-password-reset form {
    display: grid;
    gap: 1rem;
  }
  .mk-password-reset .mk-auth-field {
    display: grid;
    gap: 0.375rem;
  }
  .mk-password-reset-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    & a {
      color: var(--primary);
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-password-reset-foot {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
    & a {
      color: var(--primary);
      font-weight: 600;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-password-reset .btn {
    width: 100%;
  }
  .mk-password-reset .input:user-valid {
    border-color: #16a34a;
  }
  .mk-password-reset-rules {
    margin: 0.25rem 0 0;
    padding-inline-start: 1.125rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    line-height: 1.6;
  }
  .mk-password-reset-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--muted);
    & svg {
      width: 1.375rem;
      height: 1.375rem;
    }
  }
  .mk-password-reset[data-variant="done"] .mk-password-reset-icon {
    background: color-mix(in oklch, #16a34a 14%, transparent);
    color: #15803d;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-password-reset {
      border-color: CanvasText;
    }
  }
}

/* ── components/profile-header/profile-header.css ── */
/* -- Profile Header (website · Account & States) --------------------------
   Presents a user's avatar, identity, biography, and relevant actions - a cover, an overlapping avatar, name and handle, bio, details, counts and follow / message. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-profile-header, .mk-profile-header *, .mk-profile-header ::before, .mk-profile-header ::after) {
    box-sizing: border-box;
  }

  .mk-profile-header {
    container: mk-profile-header / inline-size;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-profile-header-cover {
    display: block;
    width: 100%;
    height: 10rem;
    object-fit: cover;
    background: linear-gradient(
      120deg,
      color-mix(in oklab, var(--chart-1) 60%, var(--muted)),
      color-mix(in oklab, var(--chart-3) 60%, var(--muted))
    );
  }
  .mk-profile-header-body {
    display: grid;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem;
  }
  .mk-profile-header-top {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-block-start: -2.75rem;
    & .avatar {
      width: 6rem;
      height: 6rem;
      border: 4px solid var(--card);
      box-shadow: var(--shadow-md);
    }
  }
  .mk-profile-header-actions {
    display: flex;
    gap: 0.5rem;
  }
  .mk-profile-header-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .mk-profile-header-handle {
    margin: 0;
    color: var(--muted-foreground);
  }
  .mk-profile-header-bio {
    margin: 0;
    max-width: 40rem;
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-profile-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    & li {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
    & a {
      color: var(--primary);
      text-decoration: none;
    }
  }
  .mk-profile-header-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    & div {
      display: flex;
      flex-direction: row-reverse;
      gap: 0.375rem;
      font-size: 0.9375rem;
    }
    & dd {
      margin: 0;
      font-weight: 700;
      font-variant-numeric: tabular-nums;
    }
    & dt {
      color: var(--muted-foreground);
    }
  }

  .mk-profile-header[data-variant="compact"] {
    & .mk-profile-header-body {
      padding: 1.25rem;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.25rem 1rem;
    }
    & .avatar {
      width: 3.5rem;
      height: 3.5rem;
      grid-row: span 2;
    }
    & .mk-profile-header-name {
      font-size: 1.0625rem;
    }
    & .mk-profile-header-actions {
      grid-column: 3;
      grid-row: 1 / span 2;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-profile-header {
      border-color: CanvasText;
    }
  }
}

/* ── components/profile-form/profile-form.css ── */
/* -- Profile Form (website · Account & States) ----------------------------
   Edits a user's personal information - photo, name, username, bio, website and time zone - as settings rows with a description beside each group. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-profile-form, .mk-profile-form *, .mk-profile-form ::before, .mk-profile-form ::after) {
    box-sizing: border-box;
  }

  .mk-profile-form {
    container: mk-profile-form / inline-size;
    width: 100%;
  }
  .mk-profile-form form {
    display: grid;
  }
  .mk-profile-form-section {
    display: grid;
    gap: 1rem 3rem;
    padding-block: 1.75rem;
    border-block-end: 1px solid var(--border);
    & > div:first-child h2 {
      margin: 0;
      font-size: 1rem;
      font-weight: 600;
    }
    & > div:first-child p {
      margin: 0.25rem 0 0;
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
  }
  .mk-profile-form-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1rem;
    max-width: 36rem;
  }
  .mk-profile-form-field {
    display: grid;
    gap: 0.375rem;
    &[data-span="full"] {
      grid-column: 1 / -1;
    }
  }
  .mk-profile-form-hint {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-profile-form-photo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    & .avatar {
      width: 4rem;
      height: 4rem;
    }
  }
  .mk-profile-form-upload {
    position: relative;
    overflow: hidden;
    & input {
      position: absolute;
      inset: 0;
      opacity: 0;
      cursor: pointer;
    }
  }
  .mk-profile-form-upload:has(input:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  .mk-profile-form-prefix {
    display: flex;
    & span {
      display: grid;
      place-items: center;
      padding-inline: 0.75rem;
      border: 1px solid var(--input);
      border-inline-end: 0;
      border-radius: var(--radius-md) 0 0 var(--radius-md);
      background: var(--muted);
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
    & .input {
      border-start-start-radius: 0;
      border-end-start-radius: 0;
    }
  }
  .mk-profile-form-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-block: 1rem;
    background: var(--background);
  }

  @container mk-profile-form (min-width: 48rem) {
    .mk-profile-form-section {
      grid-template-columns: 16rem minmax(0, 1fr);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-profile-form-prefix span {
      border-color: CanvasText;
    }
  }
}

/* ── components/security-settings/security-settings.css ── */
/* -- Security Settings (website · Account & States) -----------------------
   Manages passwords, authentication methods, and active sessions - the password, two-factor methods, passkeys and every signed-in device. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(
    .mk-security-settings,
    .mk-security-settings *,
    .mk-security-settings ::before,
    .mk-security-settings ::after
  ) {
    box-sizing: border-box;
  }

  .mk-security-settings {
    container: mk-security-settings / inline-size;
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 44rem;
  }
  .mk-security-settings-section {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    & > h2 {
      margin: 0;
      padding-block: 1rem 0.5rem;
      font-size: 1rem;
      font-weight: 600;
    }
  }
  .mk-security-settings-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem;
    & + & {
      border-block-start: 1px solid var(--border);
    }
    & > svg {
      width: 1.25rem;
      height: 1.25rem;
      color: var(--muted-foreground);
    }
    & strong {
      display: block;
      font-weight: 600;
    }
    & p {
      margin: 0.125rem 0 0;
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
  }
  .mk-security-settings-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-inline-start: 0.5rem;
    padding: 0.0625rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
    &[data-status="on"] {
      background: color-mix(in oklch, #16a34a 14%, transparent);
      color: #15803d;
    }
    &[data-status="off"] {
      background: color-mix(in oklch, #d97706 16%, transparent);
      color: #b45309;
    }
  }
  .mk-security-settings-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    & li {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.875rem;
      padding-block: 0.875rem;
      border-block-start: 1px solid var(--border);
    }
    & li div {
      display: grid;
    }
    & li span:not(.badge, .mk-security-settings-device) {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
    & strong {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.9375rem;
      font-weight: 600;
    }
  }
  .mk-security-settings-device {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    background: var(--muted);
    & svg {
      width: 1.125rem;
      height: 1.125rem;
    }
  }
  .mk-security-settings-foot {
    display: flex;
    justify-content: flex-end;
    padding-block: 1rem;
    border-block-start: 1px solid var(--border);
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-security-settings-section {
      border-color: CanvasText;
    }
    .mk-security-settings-status {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/notification-settings/notification-settings.css ── */
/* -- Notification Settings (website · Account & States) -------------------
   Controls notification topics and delivery channels - a matrix of topics by channel, or a list of switches with a digest frequency. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(
    .mk-notification-settings,
    .mk-notification-settings *,
    .mk-notification-settings ::before,
    .mk-notification-settings ::after
  ) {
    box-sizing: border-box;
  }

  .mk-notification-settings {
    width: 100%;
    max-width: 44rem;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    & table {
      width: 100%;
      border-collapse: collapse;
    }
    & th,
    & td {
      padding: 0.875rem 1rem;
      border-block-end: 1px solid var(--border);
    }
    & tr:last-child > * {
      border-block-end: 0;
    }
    & thead th {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      font-weight: 600;
      text-align: center;
    }
    & thead th:first-child {
      text-align: start;
    }
    & tbody th {
      text-align: start;
      font-weight: 600;
      font-size: 0.9375rem;
    }
    & tbody th small {
      display: block;
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      font-weight: 400;
    }
    & td {
      width: 5.5rem;
      text-align: center;
    }
  }
  .mk-notification-settings tbody tr:has(:checked) th {
    color: var(--foreground);
  }

  .mk-notification-settings[data-variant="list"] {
    padding: 0.5rem 1.25rem;
    overflow: visible;
    & ul {
      margin: 0;
      padding: 0;
      list-style: none;
    }
    & li {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding-block: 0.875rem;
      border-block-end: 1px solid var(--border);
    }
    & li label {
      display: grid;
      font-weight: 600;
      font-size: 0.9375rem;
    }
    & li small {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      font-weight: 400;
    }
  }
  .mk-notification-settings-digest {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    font-size: 0.9375rem;
    & .select {
      width: auto;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-notification-settings {
      border-color: CanvasText;
    }
  }
}

/* ── components/support-form/support-form.css ── */
/* -- Support Form (website · Account & States) ----------------------------
   Collects an issue description and supporting attachments - topic, subject, description, priority and files, beside the expected response time and self-help links. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-support-form, .mk-support-form *, .mk-support-form ::before, .mk-support-form ::after) {
    box-sizing: border-box;
  }

  .mk-support-form {
    container: mk-support-form / inline-size;
    width: 100%;
  }
  .mk-support-form-layout {
    display: grid;
    gap: 2rem;
  }
  .mk-support-form form {
    display: grid;
    gap: 1.125rem;
  }
  .mk-support-form-field {
    display: grid;
    gap: 0.375rem;
  }
  .mk-support-form-priority {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    border: 0;
    & legend {
      margin-block-end: 0.375rem;
      padding: 0;
      font-size: 0.875rem;
      font-weight: 500;
    }
    & div {
      display: inline-grid;
      grid-auto-flow: column;
      width: fit-content;
      padding: 0.1875rem;
      border-radius: var(--radius-md);
      background: var(--muted);
    }
    & label {
      position: relative;
      padding: 0.375rem 0.875rem;
      border-radius: calc(var(--radius-md) - 2px);
      color: var(--muted-foreground);
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & label:has(:checked) {
      background: var(--background);
      color: var(--foreground);
      box-shadow: var(--shadow-xs);
    }
    & label:has(:checked[value="urgent"]) {
      color: var(--destructive);
    }
    & label:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
  }
  .mk-support-form-drop {
    display: grid;
    justify-items: center;
    gap: 0.25rem;
    padding: 1.25rem;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-align: center;
    cursor: pointer;
    & svg {
      width: 1.25rem;
      height: 1.25rem;
      color: var(--foreground);
    }
    & input {
      max-width: 100%;
      font-size: 0.8125rem;
    }
    &:hover,
    &:has(input:focus-visible) {
      border-color: var(--ring);
    }
  }
  .mk-support-form-aside {
    display: grid;
    gap: 1.25rem;
    align-content: start;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--muted);
    & h2 {
      margin: 0;
      font-size: 1rem;
      font-weight: 600;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
    & ul {
      display: grid;
      gap: 0.5rem;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      color: var(--primary);
      font-size: 0.875rem;
      font-weight: 500;
      text-decoration: none;
    }
    & a svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  .mk-support-form-sla {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    & svg {
      width: 1.25rem;
      height: 1.25rem;
      color: #15803d;
    }
  }

  @container mk-support-form (min-width: 52rem) {
    .mk-support-form-layout {
      grid-template-columns: minmax(0, 1fr) 18rem;
      gap: 3rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-support-form-drop {
      border-color: CanvasText;
    }
    .mk-support-form-priority label:has(:checked) {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/feedback-form/feedback-form.css ── */
/* -- Feedback Form (website · Account & States) ---------------------------
   Collects a rating or written feedback about an experience - faces and topics on a card, a 0–10 recommendation scale, or "was this helpful?" inline. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-feedback-form, .mk-feedback-form *, .mk-feedback-form ::before, .mk-feedback-form ::after) {
    box-sizing: border-box;
  }

  .mk-feedback-form {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 30rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    & form {
      display: grid;
      gap: 1.25rem;
    }
    & h2 {
      margin: 0;
      font-size: 1.125rem;
      font-weight: 600;
    }
    & fieldset {
      display: grid;
      gap: 0.625rem;
      margin: 0;
      padding: 0;
      border: 0;
      min-width: 0;
    }
    & legend {
      margin-block-end: 0.625rem;
      padding: 0;
      font-size: 0.9375rem;
      font-weight: 500;
    }
  }
  .mk-feedback-form-faces {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    & label {
      position: relative;
      display: grid;
      place-items: center;
      width: 3rem;
      height: 3rem;
      border-radius: 50%;
      background: var(--muted);
      font-size: 1.5rem;
      cursor: pointer;
      filter: grayscale(1);
      opacity: 0.75;
      transition:
        scale 150ms ease,
        filter 150ms ease,
        opacity 150ms ease;
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & label:hover {
      filter: none;
      opacity: 1;
    }
    & label:has(:checked) {
      filter: none;
      opacity: 1;
      scale: 1.15;
      box-shadow: 0 0 0 2px var(--primary);
    }
    & label:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 3px;
    }
  }
  .mk-feedback-form-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    & label {
      position: relative;
      padding: 0.375rem 0.875rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: 0.875rem;
      cursor: pointer;
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & label:has(:checked) {
      border-color: var(--primary);
      background: var(--primary);
      color: var(--primary-foreground);
    }
    & label:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }

  .mk-feedback-form[data-variant="nps"] {
    max-width: 40rem;
  }
  .mk-feedback-form-scale {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 0.25rem;
    & label {
      position: relative;
      display: grid;
      place-items: center;
      height: 2.5rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      font-size: 0.875rem;
      font-weight: 600;
      font-variant-numeric: tabular-nums;
      cursor: pointer;
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & label:hover {
      background: var(--accent);
    }
    & label:has(:checked) {
      border-color: var(--primary);
      background: var(--primary);
      color: var(--primary-foreground);
    }
    & label:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .mk-feedback-form-ends {
    display: flex;
    justify-content: space-between;
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }

  .mk-feedback-form[data-variant="inline"] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    max-width: none;
    padding: 1rem 1.25rem;
    border-style: dashed;
    background: transparent;

    & fieldset {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    & legend {
      float: left;
      margin: 0;
    }
    & .mk-feedback-form-yesno {
      display: flex;
      gap: 0.5rem;
    }
    & .mk-feedback-form-yesno label {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      height: 2rem;
      padding-inline: 0.75rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      font-size: 0.875rem;
      font-weight: 500;
      cursor: pointer;
    }
    & .mk-feedback-form-yesno input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & .mk-feedback-form-yesno svg {
      width: 0.875rem;
      height: 0.875rem;
    }
    & .mk-feedback-form-yesno label:hover {
      background: var(--accent);
    }
    & .mk-feedback-form-yesno label:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
    & .mk-feedback-form-thanks {
      display: none;
      margin: 0;
      color: #15803d;
      font-size: 0.875rem;
      font-weight: 500;
    }
    &:has(.mk-feedback-form-yesno :checked) fieldset {
      display: none;
    }
    &:has(.mk-feedback-form-yesno :checked) .mk-feedback-form-thanks {
      display: block;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-feedback-form-faces label {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-feedback-form-faces label:has(:checked),
    .mk-feedback-form-scale label:has(:checked),
    .mk-feedback-form-chips label:has(:checked) {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/survey-question/survey-question.css ── */
/* -- Survey Question (website · Account & States) -------------------------
   Presents one question with its response controls - a single choice as cards, several choices, an agreement scale, or a written answer. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-survey-question, .mk-survey-question *, .mk-survey-question ::before, .mk-survey-question ::after) {
    box-sizing: border-box;
  }

  .mk-survey-question {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 36rem;
    padding: 1.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    & fieldset {
      display: grid;
      gap: 0.625rem;
      margin: 0;
      padding: 0;
      border: 0;
      min-width: 0;
    }
    & legend {
      margin-block-end: 0.375rem;
      padding: 0;
      font-size: 1.25rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      text-wrap: balance;
    }
  }
  .mk-survey-question-meta {
    display: grid;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    & progress {
      width: 100%;
      height: 0.375rem;
    }
  }
  .mk-survey-question-hint {
    margin: 0 0 0.375rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-survey-question-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    cursor: pointer;

    & input {
      flex: none;
      accent-color: var(--primary);
    }
    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    &:has(:checked) {
      border-color: var(--primary);
      background: color-mix(in oklch, var(--primary) 6%, transparent);
    }
  }
  .mk-survey-question-actions {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .mk-survey-question[data-variant="scale"] {
    & .mk-survey-question-scale {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 0.375rem;
    }
    & .mk-survey-question-option {
      flex-direction: column;
      justify-content: center;
      gap: 0.375rem;
      padding: 0.75rem 0.25rem;
      font-size: 0.75rem;
      line-height: 1.25;
      text-align: center;
    }
  }
  .mk-survey-question[data-variant="text"] .textarea {
    min-height: 6rem;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-survey-question-option:has(:checked) {
      border-color: Highlight;
    }
  }
}

/* ── components/form-progress/form-progress.css ── */
/* -- Form Progress (website · Account & States) ---------------------------
   Shows the current stage and remaining steps of a form - a bar with the step names, numbered steps, segments or one compact line. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-form-progress, .mk-form-progress *, .mk-form-progress ::before, .mk-form-progress ::after) {
    box-sizing: border-box;
  }

  .mk-form-progress {
    container: mk-form-progress / inline-size;
    display: grid;
    gap: 0.75rem;
    width: 100%;
    max-width: 40rem;
  }
  .mk-form-progress-status {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    & strong {
      font-weight: 600;
    }
    & span {
      color: var(--muted-foreground);
    }
  }
  .mk-form-progress progress {
    width: 100%;
    height: 0.375rem;
  }
  .mk-form-progress-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted-foreground);
    font-size: 0.8125rem;

    & li {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    & li[data-done] {
      color: var(--foreground);
    }
    & li[aria-current] {
      color: var(--foreground);
      font-weight: 600;
    }
  }
  .mk-form-progress-dot {
    display: none;
  }

  .mk-form-progress[data-variant="numbered"] {
    & .mk-form-progress-steps li {
      position: relative;
      flex-direction: column;
      gap: 0.5rem;
      text-align: center;
    }
    & .mk-form-progress-steps li:not(:last-child)::after {
      content: "";
      position: absolute;
      top: 1rem;
      left: calc(50% + 1.25rem);
      right: calc(-50% + 1.25rem);
      height: 2px;
      background: var(--border);
    }
    & .mk-form-progress-steps li[data-done]::after {
      background: var(--primary);
    }
    & .mk-form-progress-dot {
      display: grid;
      place-items: center;
      width: 2rem;
      height: 2rem;
      border: 2px solid var(--border);
      border-radius: 50%;
      background: var(--background);
      font-size: 0.8125rem;
      font-weight: 600;
    }
    & .mk-form-progress-dot svg {
      width: 0.875rem;
      height: 0.875rem;
    }
    & [data-done] .mk-form-progress-dot {
      border-color: var(--primary);
      background: var(--primary);
      color: var(--primary-foreground);
    }
    & [aria-current] .mk-form-progress-dot {
      border-color: var(--primary);
      color: var(--primary);
    }
  }

  .mk-form-progress[data-variant="segments"] .mk-form-progress-steps {
    gap: 0.375rem;
    & li {
      flex-direction: column;
      align-items: stretch;
      gap: 0.5rem;
    }
    & li::before {
      content: "";
      height: 0.375rem;
      border-radius: 999px;
      background: var(--muted);
    }
    & li:is([data-done], [aria-current])::before {
      background: var(--primary);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-form-progress[data-variant="segments"] .mk-form-progress-steps li:is([data-done], [aria-current])::before {
      background: Highlight;
    }
    .mk-form-progress[data-variant="numbered"] [data-done] .mk-form-progress-dot {
      background: Highlight;
    }
  }
}

/* ── components/empty-state/empty-state.css ── */
/* -- Empty State (website · Account & States) -----------------------------
   Explains missing content and offers an appropriate next action - an icon, why it is empty, and the first step; on a dashed area or inline in a list. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-empty-state, .mk-empty-state *, .mk-empty-state ::before, .mk-empty-state ::after) {
    box-sizing: border-box;
  }

  .mk-empty-state {
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }
  .mk-empty-state-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--muted);
  }
  .mk-empty-state-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  .mk-empty-state-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .mk-empty-state-text {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-block-start: 0.25rem;
  }
  .mk-empty-state-icon {
    box-shadow:
      0 0 0 0.625rem color-mix(in oklch, var(--muted) 60%, transparent),
      0 0 0 1.25rem color-mix(in oklch, var(--muted) 30%, transparent);
    margin-block: 1.25rem 0.5rem;
  }
  .mk-empty-state[data-variant="dashed"] {
    max-width: none;
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
  }
  .mk-empty-state[data-variant="compact"] {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    gap: 0 1rem;
    max-width: none;
    padding: 1rem 1.25rem;
    text-align: start;

    & .mk-empty-state-icon {
      grid-row: span 2;
      width: 2.5rem;
      height: 2.5rem;
      margin: 0;
      box-shadow: none;
      & svg {
        width: 1.125rem;
        height: 1.125rem;
      }
    }
    & .mk-empty-state-title {
      font-size: 0.9375rem;
    }
    & .mk-empty-state-text {
      font-size: 0.875rem;
    }
    & .mk-empty-state-actions {
      grid-column: 3;
      grid-row: 1 / span 2;
      margin: 0;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-empty-state-icon {
      border: 1px solid CanvasText;
      box-shadow: none;
    }
  }
}

/* ── components/error-state/error-state.css ── */
/* -- Error State (website · Account & States) -----------------------------
   Explains a failure and provides recovery actions - what went wrong in plain words, what to do, and the technical details on request. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-error-state, .mk-error-state *, .mk-error-state ::before, .mk-error-state ::after) {
    box-sizing: border-box;
  }

  .mk-error-state {
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }
  .mk-error-state-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: color-mix(in oklch, var(--destructive) 12%, transparent);
  }
  .mk-error-state-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  .mk-error-state-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .mk-error-state-text {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-error-state-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-block-start: 0.25rem;
  }
  .mk-error-state-icon {
    color: var(--destructive);
  }
  .mk-error-state-details {
    width: 100%;
    max-width: 26rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    text-align: start;
    & summary {
      cursor: pointer;
      text-align: center;
    }
    & pre {
      margin: 0.5rem 0 0;
      padding: 0.75rem;
      overflow-x: auto;
      border-radius: var(--radius-md);
      background: var(--muted);
      font-family: var(--font-mono);
      font-size: 0.75rem;
      white-space: pre-wrap;
    }
  }
  .mk-error-state-code {
    font-size: clamp(4rem, 14vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 2px var(--border);
  }
  .mk-error-state[data-variant="page"] {
    padding-block: 4rem;
    max-width: 36rem;
    & .mk-error-state-icon {
      display: none;
    }
    & .mk-error-state-title {
      font-size: 1.75rem;
    }
  }
  .mk-error-state[data-variant="inline"] {
    grid-template-columns: auto minmax(0, 1fr) auto;
    justify-items: start;
    align-items: center;
    gap: 0.125rem 1rem;
    max-width: none;
    padding: 1rem 1.25rem;
    border: 1px solid color-mix(in oklab, var(--destructive) 35%, var(--border));
    border-radius: var(--radius-lg);
    background: color-mix(in oklab, var(--destructive) 5%, var(--background));
    text-align: start;

    & .mk-error-state-icon {
      grid-row: span 2;
      width: 2.5rem;
      height: 2.5rem;
      & svg {
        width: 1.125rem;
        height: 1.125rem;
      }
    }
    & .mk-error-state-title {
      font-size: 0.9375rem;
    }
    & .mk-error-state-text {
      font-size: 0.875rem;
    }
    & .mk-error-state-actions {
      grid-column: 3;
      grid-row: 1 / span 2;
      margin: 0;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-error-state-icon {
      border: 1px solid CanvasText;
    }
    .mk-error-state-code {
      -webkit-text-stroke-color: CanvasText;
    }
  }
}

/* ── components/success-state/success-state.css ── */
/* -- Success State (website · Account & States) ---------------------------
   Confirms a completed action and offers relevant next steps - a check with a ripple, what happened, and where to go from here. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-success-state, .mk-success-state *, .mk-success-state ::before, .mk-success-state ::after) {
    box-sizing: border-box;
  }

  .mk-success-state {
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }
  .mk-success-state-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: color-mix(in oklch, #16a34a 14%, transparent);
  }
  .mk-success-state-icon svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  .mk-success-state-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-wrap: balance;
  }
  .mk-success-state-text {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-success-state-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-block-start: 0.25rem;
  }
  .mk-success-state-icon {
    color: #15803d;
    &::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: 50%;
      border: 2px solid #16a34a;
      animation: mk-success-ripple 1.8s ease-out infinite;
    }
  }
  @keyframes mk-success-ripple {
    from {
      opacity: 0.6;
      scale: 1;
    }
    to {
      opacity: 0;
      scale: 1.8;
    }
  }
  .mk-success-state-summary {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    max-width: 22rem;
    margin: 0.25rem 0 0;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--muted);
    font-size: 0.875rem;
    text-align: start;
    & div {
      display: flex;
      justify-content: space-between;
      gap: 1rem;
    }
    & dt {
      color: var(--muted-foreground);
    }
    & dd {
      margin: 0;
      font-weight: 500;
    }
  }
  .mk-success-state[data-variant="compact"] {
    max-width: 22rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    & .mk-success-state-icon {
      width: 3rem;
      height: 3rem;
      & svg {
        width: 1.375rem;
        height: 1.375rem;
      }
    }
    & .mk-success-state-title {
      font-size: 1.0625rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-success-state-icon::after {
      animation: none;
      opacity: 0;
    }
  }

  @media (forced-colors: active) {
    .mk-success-state-icon {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/coming-soon/coming-soon.css ── */
/* -- Coming Soon (website · Account & States) -----------------------------
   Announces an upcoming launch and its expected availability - the date, a live rolling countdown, a notify-me form and where to follow along. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-coming-soon, .mk-coming-soon *, .mk-coming-soon ::before, .mk-coming-soon ::after) {
    box-sizing: border-box;
  }

  .mk-coming-soon {
    container: mk-coming-soon / inline-size;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background:
      radial-gradient(60% 70% at 20% 0%, color-mix(in oklab, var(--chart-1) 22%, transparent), transparent 70%),
      radial-gradient(60% 70% at 90% 100%, color-mix(in oklab, var(--chart-2) 20%, transparent), transparent 70%),
      var(--muted);
  }
  .mk-coming-soon-layout {
    display: grid;
  }
  .mk-coming-soon-copy {
    display: grid;
    justify-items: center;
    gap: 1.25rem;
    padding: 3.5rem 1.5rem;
    text-align: center;
    & > svg {
      width: 2rem;
      height: 2rem;
      color: var(--primary);
    }
  }
  .mk-coming-soon-eyebrow {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--background);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: var(--shadow-xs);
  }
  .mk-coming-soon-title {
    margin: 0;
    font-size: clamp(2.25rem, 7cqi, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }
  .mk-coming-soon-text {
    margin: 0;
    max-width: 32rem;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    text-wrap: pretty;
  }
  .mk-coming-soon-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 26rem;
    & .input {
      flex: 1 1 12rem;
      background: var(--background);
    }
  }
  .mk-coming-soon-timer {
    gap: 0.625rem;
    & .countdown-unit {
      min-width: 5rem;
      box-shadow: var(--shadow-lg);
    }
  }
  .mk-coming-soon-social {
    display: flex;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & a {
      display: grid;
      place-items: center;
      width: 2.25rem;
      height: 2.25rem;
      border-radius: var(--radius-md);
      color: var(--muted-foreground);
    }
    & a:hover {
      background: var(--background);
      color: var(--foreground);
    }
    & svg {
      width: 1.125rem;
      height: 1.125rem;
    }
  }
  .mk-coming-soon-media {
    display: none;
    margin: 0;
    & img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  @container mk-coming-soon (min-width: 48rem) {
    .mk-coming-soon[data-variant="image"] .mk-coming-soon-layout {
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    }
    .mk-coming-soon[data-variant="image"] .mk-coming-soon-copy {
      justify-items: start;
      text-align: start;
      padding: 3.5rem;
    }
    .mk-coming-soon[data-variant="image"] :is(.mk-coming-soon-form, .mk-coming-soon-timer) {
      justify-content: start;
    }
    .mk-coming-soon[data-variant="image"] .mk-coming-soon-media {
      display: block;
    }
    /* the copy column is narrow beside the picture: a compact timer stays on one row */
    .mk-coming-soon[data-variant="image"] .mk-coming-soon-timer {
      gap: 0.5rem;
    }
    .mk-coming-soon[data-variant="image"] .mk-coming-soon-timer .countdown-unit {
      min-width: 3.75rem;
      padding: 0.5rem 0.375rem;
    }
    .mk-coming-soon[data-variant="image"] .mk-coming-soon-timer .countdown {
      font-size: 1.75rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-coming-soon {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/maintenance/maintenance.css ── */
/* -- Maintenance (website · Account & States) -----------------------------
   Explains temporary unavailability and provides status information - what is happening, when it ends, and where to follow; or a banner announcing it. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-maintenance, .mk-maintenance *, .mk-maintenance ::before, .mk-maintenance ::after) {
    box-sizing: border-box;
  }

  .mk-maintenance {
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 32rem;
    margin-inline: auto;
    padding: 3rem 1.5rem;
    text-align: center;
  }
  .mk-maintenance-icon {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-xl);
    background: color-mix(in oklch, #d97706 15%, transparent);
    color: #b45309;
    & svg {
      width: 1.75rem;
      height: 1.75rem;
      animation: mk-maintenance-turn 4s ease-in-out infinite;
    }
  }
  @keyframes mk-maintenance-turn {
    0%,
    60%,
    100% {
      rotate: 0deg;
    }
    70% {
      rotate: -25deg;
    }
    85% {
      rotate: 15deg;
    }
  }
  .mk-maintenance-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .mk-maintenance-text {
    margin: 0;
    color: var(--muted-foreground);
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-maintenance-eta {
    display: grid;
    gap: 0.5rem;
    width: 100%;
    max-width: 20rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: var(--muted);
    font-size: 0.875rem;
    & strong {
      font-size: 1rem;
    }
    & progress {
      width: 100%;
      height: 0.375rem;
    }
  }
  .mk-maintenance-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }

  .mk-maintenance[data-variant="banner"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.375rem 0.75rem;
    max-width: none;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    background: color-mix(in oklch, #d97706 12%, transparent);
    color: #92400e;
    font-size: 0.875rem;
    text-align: center;

    & .mk-maintenance-icon {
      width: auto;
      height: auto;
      background: none;
      & svg {
        width: 1rem;
        height: 1rem;
        animation: none;
      }
    }
    & .mk-maintenance-text {
      color: inherit;
    }
    & a {
      color: inherit;
      font-weight: 600;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-maintenance-icon svg {
      animation: none;
    }
  }

  @media (forced-colors: active) {
    .mk-maintenance-icon,
    .mk-maintenance[data-variant="banner"] {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/page-not-found/page-not-found.css ── */
/* -- 404 Page (website · Account & States) --------------------------------
   Tells visitors the page does not exist and helps them on - a big 404, a search, the most useful links and the way home. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-page-not-found, .mk-page-not-found *, .mk-page-not-found ::before, .mk-page-not-found ::after) {
    box-sizing: border-box;
  }

  .mk-page-not-found {
    container: mk-page-not-found / inline-size;
    position: relative;
    isolation: isolate;
    display: grid;
    justify-items: center;
    gap: 1.25rem;
    width: 100%;
    padding: 3rem 1.5rem;
    overflow: hidden;
    text-align: center;
  }
  .mk-page-not-found-code {
    margin: 0;
    font-size: clamp(5rem, 22cqi, 10rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 2px color-mix(in oklch, var(--foreground) 25%, transparent);
    font-variant-numeric: tabular-nums;
  }
  .mk-page-not-found-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .mk-page-not-found-text {
    margin: 0;
    max-width: 28rem;
    color: var(--muted-foreground);
    text-wrap: pretty;
  }
  .mk-page-not-found-search {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 24rem;
    & .input {
      flex: 1;
      min-width: 0;
    }
  }
  .mk-page-not-found-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 36rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    text-align: start;
    & a {
      display: grid;
      gap: 0.125rem;
      padding: 0.875rem 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      color: inherit;
      text-decoration: none;
      transition: border-color 150ms ease;
    }
    & a:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
    & strong {
      display: flex;
      align-items: center;
      gap: 0.375rem;
      font-size: 0.9375rem;
    }
    & strong svg {
      width: 1rem;
      height: 1rem;
    }
    & span {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }

  .mk-page-not-found[data-variant="illustrated"] {
    padding-block: 6rem;

    & .mk-page-not-found-code {
      position: absolute;
      top: 50%;
      left: 50%;
      z-index: -1;
      translate: -50% -55%;
      font-size: clamp(9rem, 45cqi, 22rem);
      -webkit-text-stroke: 0;
      background: linear-gradient(180deg, color-mix(in oklab, var(--chart-1) 30%, transparent), transparent 85%);
      -webkit-background-clip: text;
      background-clip: text;
    }
  }
  .mk-page-not-found[data-variant="minimal"] {
    gap: 0.75rem;
    padding-block: 2rem;
    & .mk-page-not-found-code {
      font-size: 4rem;
      -webkit-text-stroke: 0;
      color: var(--muted-foreground);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-page-not-found-links a {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-page-not-found-code {
      -webkit-text-stroke-color: CanvasText;
      background: none;
      color: GrayText;
    }
  }
}

/* ── components/resource-item/resource-item.css ── */
/* -- Resource Item (website · Docs & Help) --------------------------------
   Previews one guide, document, template, or other resource - its type, title, a line on what is inside, the format and the action. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-resource-item, .mk-resource-item *, .mk-resource-item ::before, .mk-resource-item ::after) {
    box-sizing: border-box;
  }

  .mk-resource-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    transition:
      border-color 150ms ease,
      box-shadow 150ms ease;
    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 25%, var(--border));
      box-shadow: var(--shadow-md);
    }
  }
  .mk-resource-item {
    position: relative;
  }
  .mk-resource-item-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-resource-item-title a:focus-visible {
    outline: none;
  }
  .mk-resource-item:has(.mk-resource-item-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-resource-item :is(button, input, select, label, .btn):not(.mk-resource-item-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-resource-item-body {
    display: grid;
    gap: 0.375rem;
    flex: 1;
    align-content: start;
  }
  .mk-resource-item-type {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    width: fit-content;
    margin-block-end: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  .mk-resource-item-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.35;
    text-wrap: balance;
    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-resource-item-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.55;
  }
  .mk-resource-item-meta {
    margin: 0.25rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-resource-item-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    & svg {
      width: 0.875rem;
      height: 0.875rem;
      transition: translate 150ms ease;
    }
  }
  .mk-resource-item:hover .mk-resource-item-cta svg {
    translate: 0.25rem 0;
  }
  .mk-resource-item-media {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }

  .mk-resource-item[data-variant="compact"] {
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.25rem;

    & .mk-resource-item-body {
      grid-template-columns: auto minmax(0, 1fr);
      align-items: baseline;
      column-gap: 0.75rem;
    }
    & .mk-resource-item-type {
      grid-row: span 2;
      margin: 0;
    }
    & .mk-resource-item-desc {
      display: none;
    }
    & .mk-resource-item-meta {
      margin: 0;
    }
  }
  .mk-resource-item[data-variant="featured"] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    align-items: center;
    gap: 1.5rem 2rem;

    & .mk-resource-item-media {
      aspect-ratio: 16 / 10;
      grid-row: span 2;
    }
    & .mk-resource-item-title {
      font-size: 1.5rem;
      letter-spacing: -0.02em;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-resource-item,
    .mk-resource-item-cta svg {
      transition: none;
    }
    .mk-resource-item:hover .mk-resource-item-cta svg {
      translate: none;
    }
  }

  @media (forced-colors: active) {
    .mk-resource-item {
      border-color: CanvasText;
    }
  }
}

/* ── components/download-item/download-item.css ── */
/* -- Download Item (website · Docs & Help) --------------------------------
   Presents one downloadable file with its format and size - a file badge, what it is, version, size and date, its checksum, and the download. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-download-item, .mk-download-item *, .mk-download-item ::before, .mk-download-item ::after) {
    box-sizing: border-box;
  }

  .mk-download-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
  }
  .mk-download-item-file {
    display: grid;
    place-items: end center;
    width: 2.75rem;
    height: 3.25rem;
    padding-block-end: 0.375rem;
    border-radius: 0.375rem 1rem 0.375rem 0.375rem;
    background: var(--muted-foreground);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.04em;

    &[data-ext="PDF"] {
      background: #dc2626;
    }
    &[data-ext="ZIP"] {
      background: #ca8a04;
    }
    &[data-ext="DMG"] {
      background: #1f2937;
    }
    &[data-ext="EXE"] {
      background: #2563eb;
    }
  }
  .mk-download-item-body {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
  }
  .mk-download-item-name {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
  }
  .mk-download-item-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-download-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    margin: 0.25rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
    & span + span::before {
      content: "·";
      margin-inline-end: 0.75rem;
    }
  }
  .mk-download-item-checksum {
    margin-block-start: 0.375rem;
    font-size: 0.75rem;
    & summary {
      width: fit-content;
      color: var(--muted-foreground);
      cursor: pointer;
    }
    & code {
      display: block;
      margin-block-start: 0.375rem;
      padding: 0.5rem;
      overflow-wrap: anywhere;
      border-radius: var(--radius-sm);
      background: var(--muted);
      font-family: var(--font-mono);
      user-select: all;
    }
  }

  .mk-download-item[data-variant="card"] {
    grid-template-columns: auto minmax(0, 1fr);

    & > .btn {
      grid-column: 1 / -1;
      justify-self: start;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-download-item-file {
      forced-color-adjust: none;
    }
    .mk-download-item {
      border-color: CanvasText;
    }
  }
}

/* ── components/docs-navigation/docs-navigation.css ── */
/* -- Docs Navigation (website · Docs & Help) ------------------------------
   Organizes documentation links into a navigable hierarchy - a version switch, sections, collapsible groups, nested pages and the current page marked. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-docs-navigation, .mk-docs-navigation *, .mk-docs-navigation ::before, .mk-docs-navigation ::after) {
    box-sizing: border-box;
  }

  .mk-docs-navigation {
    display: grid;
    align-content: start;
    gap: 0.25rem;
    width: 100%;
    max-width: 16rem;
    font-size: 0.875rem;

    & ul {
      display: grid;
      gap: 0.0625rem;
      margin: 0 0 0.75rem;
      padding: 0;
      list-style: none;
    }
    & ul ul {
      margin: 0.125rem 0 0.25rem 0.75rem;
      padding-inline-start: 0.75rem;
      border-inline-start: 1px solid var(--border);
    }
    & a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.5rem;
      padding: 0.375rem 0.625rem;
      border-radius: var(--radius-md);
      color: var(--muted-foreground);
      text-decoration: none;
    }
    & a:hover {
      background: var(--accent);
      color: var(--accent-foreground);
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
    & a[aria-current] {
      background: var(--accent);
      color: var(--foreground);
      font-weight: 600;
    }
    & details > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      list-style: none;
    }
    & details > summary::-webkit-details-marker {
      display: none;
    }
    & details > summary::after {
      content: "";
      width: 0.375rem;
      height: 0.375rem;
      margin-inline-end: 0.375rem;
      border-block-end: 1.5px solid currentColor;
      border-inline-end: 1.5px solid currentColor;
      rotate: -45deg;
      transition: rotate 150ms ease;
    }
    & details[open] > summary::after {
      rotate: 45deg;
    }
    & summary:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }
  .mk-docs-navigation-top {
    margin-block-end: 0.75rem;
  }
  .mk-docs-navigation-heading {
    margin: 0;
    padding: 0.375rem 0.625rem;
    color: var(--foreground);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mk-docs-navigation[data-variant="bordered"] {
    & > ul,
    & details > ul {
      margin-inline-start: 0.625rem;
      border-inline-start: 1px solid var(--border);
    }
    & a {
      margin-inline-start: -1px;
      border-inline-start: 2px solid transparent;
      border-radius: 0;
    }
    & a:hover {
      background: transparent;
      border-inline-start-color: var(--muted-foreground);
    }
    & a[aria-current] {
      background: transparent;
      color: var(--primary);
      border-inline-start-color: var(--primary);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-docs-navigation details > summary::after {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-docs-navigation a[aria-current] {
      outline: 1px solid Highlight;
    }
  }
}

/* ── components/docs-content/docs-content.css ── */
/* -- Docs Content (website · Docs & Help) ---------------------------------
   Presents one documentation topic with explanations and examples - the trail, title, lead, prose with code, callouts and tables, and the next page. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-docs-content, .mk-docs-content *, .mk-docs-content ::before, .mk-docs-content ::after) {
    box-sizing: border-box;
  }

  .mk-docs-content {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 44rem;
  }
  .mk-docs-content-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .mk-docs-content-lead {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 1.125rem;
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-docs-content-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.25rem;
      color: inherit;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  .mk-docs-content-prose {
    line-height: 1.75;

    & > * + * {
      margin-block-start: 1rem;
    }
    & h2 {
      margin-block-start: 2.25rem;
      font-size: 1.5rem;
      font-weight: 650;
      letter-spacing: -0.02em;
    }
    & h3 {
      margin-block-start: 1.75rem;
      font-size: 1.125rem;
      font-weight: 600;
    }
    & p,
    & ul,
    & ol {
      margin-block-end: 0;
      color: color-mix(in oklch, var(--foreground) 85%, var(--muted-foreground));
    }
    & li + li {
      margin-block-start: 0.375rem;
    }
    & a {
      color: var(--primary);
      text-underline-offset: 3px;
    }
    & :not(pre) > code {
      padding: 0.125rem 0.375rem;
      border-radius: var(--radius-sm);
      background: var(--muted);
      font-family: var(--font-mono);
      font-size: 0.875em;
    }
    & pre {
      padding: 1rem 1.125rem;
      overflow-x: auto;
      border: 0;
      border-radius: var(--radius-lg);
      background: oklch(0.18 0.01 260);
      color: oklch(0.93 0 0);
      font-size: 0.8125rem;
      line-height: 1.65;
    }
    & pre code {
      padding: 0;
      border: 0;
      background: none;
      color: inherit;
      font-family: var(--font-mono);
    }
    & table {
      width: 100%;
      border-collapse: collapse;
      font-size: 0.875rem;
    }
    & th,
    & td {
      padding: 0.5rem 0.75rem;
      border-block-end: 1px solid var(--border);
      text-align: start;
    }
    & th {
      color: var(--muted-foreground);
      font-weight: 600;
    }
  }
  .mk-docs-content-callout {
    --_c: oklch(0.6 0.15 250);

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border-inline-start: 3px solid var(--_c);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: color-mix(in oklab, var(--_c) 8%, var(--background));
    font-size: 0.9375rem;

    & > svg {
      width: 1.125rem;
      height: 1.125rem;
      margin-block-start: 0.2rem;
      color: var(--_c);
    }
    & p {
      margin: 0;
    }
    & strong {
      color: var(--_c);
    }
    &[data-tone="warning"] {
      --_c: oklch(0.65 0.15 70);
    }
    &[data-tone="tip"] {
      --_c: oklch(0.6 0.15 150);
    }
  }
  .mk-docs-content-pager {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.75rem;
    margin-block-start: 2rem;
    & a {
      display: grid;
      gap: 0.125rem;
      padding: 1rem 1.25rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      color: inherit;
      text-decoration: none;
    }
    & a:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    & a[rel="next"] {
      text-align: end;
    }
    & small {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
    & strong {
      color: var(--primary);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-docs-content-callout {
      border-inline-start-color: CanvasText;
    }
  }
}

/* ── components/code-block/code-block.css ── */
/* -- Code Example (website · Docs & Help) ---------------------------------
   Displays code with optional language tabs and copying controls - tabs for each package manager, a file header, highlighted lines, or one command to copy. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-code-block, .mk-code-block *, .mk-code-block ::before, .mk-code-block ::after) {
    box-sizing: border-box;
  }

  .mk-code-block {
    margin: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid oklch(0.3 0.01 260);
    border-radius: var(--radius-lg);
    background: oklch(0.17 0.01 260);
    color: oklch(0.92 0 0);
  }
  .mk-code-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.375rem 0.375rem 0.375rem 0.75rem;
    border-block-end: 1px solid oklch(0.3 0.01 260);
    font-size: 0.8125rem;
  }
  .mk-code-block-file {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: oklch(0.75 0 0);
    font-family: var(--font-mono);
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
  }
  .mk-code-block-tabs {
    display: flex;
    gap: 0.125rem;
    & label {
      position: relative;
      padding: 0.25rem 0.625rem;
      border-radius: var(--radius-sm);
      color: oklch(0.7 0 0);
      font-family: var(--font-mono);
      cursor: pointer;
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & label:has(:checked) {
      background: oklch(0.28 0.01 260);
      color: #fff;
    }
    & label:has(:focus-visible) {
      outline: 2px solid oklch(0.7 0.12 250);
      outline-offset: 1px;
    }
  }
  .mk-code-block-copy {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: oklch(0.75 0 0);
    cursor: pointer;
    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      background: oklch(0.28 0.01 260);
      color: #fff;
    }
    &:focus-visible {
      outline: 2px solid oklch(0.7 0.12 250);
      outline-offset: 1px;
    }
  }
  .mk-code-block-copy[data-copied] {
    color: oklch(0.75 0.15 150);
  }
  /* reset whatever the page styles pre / code with: the block owns its look */
  .mk-code-block pre {
    margin: 0;
    padding: 1rem 0;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
  }
  .mk-code-block code {
    display: grid;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
  }
  .mk-code-block code > span {
    display: block;
    padding-inline: 1rem;
    white-space: pre;
  }
  .mk-code-block pre[data-numbers] code {
    counter-reset: mk-line;
  }
  .mk-code-block pre[data-numbers] code > span::before {
    counter-increment: mk-line;
    content: counter(mk-line);
    display: inline-block;
    width: 2rem;
    margin-inline-end: 1rem;
    color: oklch(0.5 0 0);
    text-align: end;
    user-select: none;
  }
  .mk-code-block code > span[data-highlight] {
    background: oklch(0.6 0.12 250 / 0.16);
    box-shadow: inset 3px 0 0 oklch(0.7 0.14 250);
  }
  .mk-code-block-c {
    color: oklch(0.6 0 0);
  }
  .mk-code-block-k {
    color: oklch(0.78 0.13 300);
  }
  .mk-code-block-s {
    color: oklch(0.8 0.13 150);
  }
  .mk-code-block [data-tab] {
    display: none;
  }
  .mk-code-block:has(input[value="npm"]:checked) [data-tab="npm"],
  .mk-code-block:has(input[value="pnpm"]:checked) [data-tab="pnpm"],
  .mk-code-block:has(input[value="bun"]:checked) [data-tab="bun"] {
    display: block;
  }
  .mk-code-block-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mk-code-block[data-variant="inline"] {
    display: flex;
    align-items: center;
    max-width: 30rem;

    & pre {
      flex: 1;
      padding: 0.625rem 0;
    }
    & code > span::before {
      content: "$ ";
      color: oklch(0.55 0 0);
      user-select: none;
    }
    & .mk-code-block-copy {
      margin-inline-end: 0.375rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-code-block {
      border-color: CanvasText;
    }
    .mk-code-block code > span[data-highlight] {
      outline: 1px solid Highlight;
    }
  }
}

/* ── components/release-header/release-header.css ── */
/* -- Release Header (website · Docs & Help) -------------------------------
   Introduces a release with its version, date, and summary - the version tag, kind of release, a headline, what it brings and where to get it. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-release-header, .mk-release-header *, .mk-release-header ::before, .mk-release-header ::after) {
    box-sizing: border-box;
  }

  .mk-release-header {
    container: mk-release-header / inline-size;
    display: grid;
    gap: 1rem;
    width: 100%;
    padding-block-end: 1.75rem;
    border-block-end: 1px solid var(--border);
  }
  .mk-release-header-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.875rem;
  }
  .mk-release-header-version {
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--foreground);
    color: var(--background);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
  }
  .mk-release-header-title {
    margin: 0;
    font-size: clamp(1.75rem, 5cqi, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
  }
  .mk-release-header-summary {
    margin: 0;
    max-width: 42rem;
    color: var(--muted-foreground);
    font-size: 1.0625rem;
    line-height: 1.6;
    text-wrap: pretty;
  }
  .mk-release-header-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 0.75rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    & li {
      display: grid;
      gap: 0.25rem;
      padding: 1rem;
      border-radius: var(--radius-lg);
      background: var(--muted);
      font-size: 0.875rem;
    }
    & svg {
      width: 1.125rem;
      height: 1.125rem;
      color: var(--primary);
    }
    & span {
      color: var(--muted-foreground);
    }
  }
  .mk-release-header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .mk-release-header[data-variant="compact"] {
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: baseline;
    gap: 0.75rem;
    padding-block: 0.875rem;
    & .mk-release-header-title {
      font-size: 1rem;
      font-weight: 600;
      letter-spacing: 0;
    }
    & time {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      font-variant-numeric: tabular-nums;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-release-header-version {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/release-item/release-item.css ── */
/* -- Release Item (website · Docs & Help) ---------------------------------
   Describes one change, improvement, or fix within a release - its kind, what changed and why it matters, with the pull request and author. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-release-item, .mk-release-item *, .mk-release-item ::before, .mk-release-item ::after) {
    box-sizing: border-box;
  }

  .mk-release-item {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding-block: 1.25rem;
    border-block-end: 1px solid var(--border);
  }
  .mk-release-item-type {
    --_c: var(--muted-foreground);

    justify-self: start;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: color-mix(in oklch, var(--_c) 14%, transparent);
    color: var(--_c);
    font-size: 0.75rem;
    font-weight: 700;

    &[data-type="new"] {
      --_c: #15803d;
    }
    &[data-type="improved"] {
      --_c: #1d4ed8;
    }
    &[data-type="breaking"] {
      --_c: #b91c1c;
    }
  }
  .mk-release-item-body {
    display: grid;
    gap: 0.375rem;
  }
  .mk-release-item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
  }
  .mk-release-item-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  .mk-release-item-media {
    display: block;
    width: 100%;
    max-width: 32rem;
    margin-block: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }
  .mk-release-item-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    & a {
      color: inherit;
      font-family: var(--font-mono);
    }
    & .avatar {
      width: 1.25rem;
      height: 1.25rem;
    }
  }
  .mk-release-item[data-variant="compact"] {
    padding-block: 0.625rem;
    & .mk-release-item-title {
      font-size: 0.9375rem;
      font-weight: 500;
    }
    & .mk-release-item-body {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: baseline;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-release-item-type {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/roadmap-item/roadmap-item.css ── */
/* -- Roadmap Item (website · Docs & Help) ---------------------------------
   Presents one planned initiative with its status and target timeframe - planned, in progress or shipped, how far along, and a vote. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-roadmap-item, .mk-roadmap-item *, .mk-roadmap-item ::before, .mk-roadmap-item ::after) {
    box-sizing: border-box;
  }

  .mk-roadmap-item {
    display: grid;
    gap: 0.625rem;
    padding: 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    & progress {
      width: 100%;
      height: 0.375rem;
    }
  }
  .mk-roadmap-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .mk-roadmap-item-status {
    --_c: var(--muted-foreground);

    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--_c);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;

    &::before {
      content: "";
      width: 0.5rem;
      height: 0.5rem;
      border-radius: 50%;
      background: currentColor;
    }
    &[data-status="progress"] {
      --_c: #1d4ed8;
    }
    &[data-status="shipped"] {
      --_c: #15803d;
    }
  }
  .mk-roadmap-item-when {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    & svg {
      width: 0.75rem;
      height: 0.75rem;
    }
  }
  .mk-roadmap-item-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
  }
  .mk-roadmap-item-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.55;
  }
  .mk-roadmap-item-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-block-start: 0.25rem;
  }
  .mk-roadmap-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & li {
      padding: 0.0625rem 0.5rem;
      border-radius: var(--radius-sm);
      background: var(--muted);
      font-size: 0.75rem;
    }
  }
  .mk-roadmap-item-vote {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 2.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;

    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:has(:checked) {
      border-color: var(--primary);
      background: var(--primary);
      color: var(--primary-foreground);
    }
    &:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .mk-roadmap-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: 1rem;
    align-items: start;
    & > section {
      display: grid;
      gap: 0.75rem;
      padding: 0.75rem;
      border-radius: var(--radius-xl);
      background: var(--muted);
    }
    & h3 {
      margin: 0;
      padding: 0.25rem 0.375rem;
      font-size: 0.875rem;
      font-weight: 600;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-roadmap-item {
      border-color: CanvasText;
    }
    .mk-roadmap-item-vote:has(:checked) {
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/help-category/help-category.css ── */
/* -- Help Category (website · Docs & Help) --------------------------------
   Links to a support topic with a description and article count - an icon, the topic, what it covers, how many articles and the most read ones. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-help-category, .mk-help-category *, .mk-help-category ::before, .mk-help-category ::after) {
    box-sizing: border-box;
  }

  .mk-help-category {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--card);
    color: var(--card-foreground);
    transition:
      border-color 150ms ease,
      box-shadow 150ms ease;
    &:hover {
      border-color: color-mix(in oklch, var(--foreground) 25%, var(--border));
      box-shadow: var(--shadow-md);
    }
  }
  .mk-help-category {
    position: relative;
  }
  .mk-help-category-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-help-category-title a:focus-visible {
    outline: none;
  }
  .mk-help-category:has(.mk-help-category-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-help-category :is(button, input, select, label, .btn):not(.mk-help-category-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-help-category-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-lg);
    background: color-mix(in oklch, var(--primary) 10%, transparent);
    color: var(--primary);
    & svg {
      width: 1.375rem;
      height: 1.375rem;
    }
  }
  .mk-help-category-body {
    display: grid;
    gap: 0.25rem;
  }
  .mk-help-category-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    & a {
      color: inherit;
      text-decoration: none;
    }
  }
  .mk-help-category-desc {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.9375rem;
  }
  .mk-help-category-count {
    margin: 0.25rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 500;
  }
  .mk-help-category-top {
    display: grid;
    gap: 0.25rem;
    margin: 0.75rem 0 0;
    padding: 0.75rem 0 0;
    border-block-start: 1px solid var(--border);
    list-style: none;
    & a {
      position: relative;
      z-index: 1;
      color: var(--primary);
      font-size: 0.875rem;
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
  }
  .mk-help-category[data-variant="compact"] {
    align-items: center;
    padding: 1rem 1.25rem;
    & .mk-help-category-body {
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: baseline;
    }
    & .mk-help-category-desc {
      display: none;
    }
    & .mk-help-category-count {
      margin: 0;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-help-category {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-help-category {
      border-color: CanvasText;
    }
  }
}

/* ── components/help-article/help-article.css ── */
/* -- Help Article (website · Docs & Help) ---------------------------------
   Presents instructions for resolving one problem or completing one task - the steps with pictures, a tip, whether it helped and related articles. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-help-article, .mk-help-article *, .mk-help-article ::before, .mk-help-article ::after) {
    box-sizing: border-box;
  }

  .mk-help-article {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 42rem;
  }
  .mk-help-article-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .mk-help-article-meta {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-help-article-lead {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: color-mix(in oklch, var(--foreground) 85%, var(--muted-foreground));
  }
  .mk-help-article-steps {
    display: grid;
    gap: 1.5rem;
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: mk-help;
    & li {
      counter-increment: mk-help;
      display: grid;
      grid-template-columns: 2rem minmax(0, 1fr);
      gap: 0.5rem 1rem;
    }
    & li::before {
      content: counter(mk-help);
      display: grid;
      place-items: center;
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      background: var(--primary);
      color: var(--primary-foreground);
      font-size: 0.875rem;
      font-weight: 700;
    }
    & li > div {
      display: grid;
      gap: 0.5rem;
      padding-block-start: 0.25rem;
    }
    & strong {
      font-weight: 600;
    }
    & p {
      margin: 0;
      color: var(--muted-foreground);
      line-height: 1.6;
    }
    & img {
      display: block;
      width: 100%;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
    }
    & kbd {
      padding: 0.0625rem 0.375rem;
      border: 1px solid var(--border);
      border-block-end-width: 2px;
      border-radius: var(--radius-sm);
      font-family: var(--font-mono);
      font-size: 0.8125rem;
    }
  }
  .mk-help-article-tip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border-radius: var(--radius-lg);
    background: color-mix(in oklab, oklch(0.75 0.14 150) 12%, var(--background));
    font-size: 0.9375rem;
    & svg {
      width: 1.125rem;
      height: 1.125rem;
      margin-block-start: 0.15rem;
      color: #15803d;
    }
    & p {
      margin: 0;
    }
  }
  .mk-help-article-stuck {
    padding: 1rem 1.125rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    & summary {
      cursor: pointer;
      font-weight: 600;
    }
    & p {
      margin: 0.5rem 0 0;
      color: var(--muted-foreground);
      font-size: 0.9375rem;
    }
  }
  .mk-help-article-related {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 1.25rem 0 0;
    border-block-start: 1px solid var(--border);
    list-style: none;
    & h2 {
      margin: 0 0 0.25rem;
      font-size: 0.875rem;
      font-weight: 600;
    }
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      color: var(--primary);
      text-decoration: none;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-help-article-steps li::before {
      forced-color-adjust: none;
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/search-box/search-box.css ── */
/* -- Search Box (website · Search & Navigation) ---------------------------
   Accepts a query and submits a search - with a shortcut hint, as a large hero search with a scope, a pill, or an icon that expands on focus. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-search-box, .mk-search-box *, .mk-search-box ::before, .mk-search-box ::after) {
    box-sizing: border-box;
  }

  .mk-search-box {
    display: block;
    width: 100%;
    max-width: 36rem;
    & form {
      display: flex;
      gap: 0.5rem;
    }
  }
  .mk-search-box-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    & > svg {
      position: absolute;
      inset-inline-start: 0.75rem;
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
      pointer-events: none;
    }
    & .input {
      padding-inline: 2.25rem 3.25rem;
    }
    & .input::-webkit-search-cancel-button {
      display: none;
    }
    & .kbd {
      position: absolute;
      inset-inline-end: 0.5rem;
      pointer-events: none;
    }
  }
  .mk-search-box[data-variant="large"] {
    max-width: 44rem;

    & form {
      align-items: center;
      padding: 0.375rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      background: var(--background);
      box-shadow: var(--shadow-lg);
    }
    & .select {
      flex: none;
      width: auto;
      height: 2.75rem;
      border-color: transparent;
      background-color: var(--muted);
    }
    & .input {
      height: 2.75rem;
      border-color: transparent;
      box-shadow: none;
      font-size: 1rem;
    }
    & .btn {
      height: 2.75rem;
    }
  }
  .mk-search-box[data-variant="pill"] .input {
    border-radius: 999px;
    background: var(--muted);
    border-color: transparent;
  }
  .mk-search-box[data-variant="expand"] {
    width: auto;

    & .mk-search-box-field {
      flex: none;
    }
    & .input {
      width: 2.5rem;
      padding-inline-end: 0;
      border-radius: 999px;
      cursor: pointer;
      transition: width 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }
    & .input::placeholder {
      color: transparent;
    }
    &:focus-within .input {
      width: 18rem;
      padding-inline-end: 0.75rem;
      cursor: text;
    }
    &:focus-within .input::placeholder {
      color: var(--muted-foreground);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-search-box[data-variant="expand"] .input {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-search-box[data-variant="large"] form {
      border-color: CanvasText;
    }
  }
}

/* ── components/search-suggestions/search-suggestions.css ── */
/* -- Search Suggestions (website · Search & Navigation) -------------------
   Displays suggested queries or matches while typing - recent searches, matching pages and people grouped in a panel with the match highlighted, or native suggestions. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(
    .mk-search-suggestions,
    .mk-search-suggestions *,
    .mk-search-suggestions ::before,
    .mk-search-suggestions ::after
  ) {
    box-sizing: border-box;
  }

  .mk-search-suggestions {
    position: relative;
    width: 100%;
    max-width: 32rem;
  }
  .mk-search-suggestions-field {
    position: relative;
    & > svg {
      position: absolute;
      inset-inline-start: 0.75rem;
      top: 50%;
      translate: 0 -50%;
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
    }
    & .input {
      padding-inline-start: 2.25rem;
    }
  }
  .mk-search-suggestions-panel {
    display: grid;
    gap: 0.25rem;
    margin-block-start: 0.375rem;
    padding: 0.375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--popover);
    color: var(--popover-foreground);
    box-shadow: var(--shadow-lg);
  }
  .mk-search-suggestions-group {
    display: grid;
    & > span {
      padding: 0.375rem 0.625rem 0.25rem;
      color: var(--muted-foreground);
      font-size: 0.6875rem;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
    }
  }
  .mk-search-suggestions-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    cursor: pointer;
    & > svg {
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
    }
    & small {
      color: var(--muted-foreground);
      font-size: 0.75rem;
    }
    & mark {
      background: none;
      color: var(--primary);
      font-weight: 700;
    }
    &:hover,
    &[aria-selected="true"] {
      background: var(--accent);
      color: var(--accent-foreground);
    }
  }
  .mk-search-suggestions-foot {
    display: flex;
    gap: 1rem;
    padding: 0.5rem 0.625rem 0.25rem;
    border-block-start: 1px solid var(--border);
    color: var(--muted-foreground);
    font-size: 0.75rem;
    & .kbd {
      font-size: 0.6875rem;
    }
  }
  .mk-search-suggestions[data-variant="native"] .mk-search-suggestions-hint {
    margin: 0.375rem 0 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-search-suggestions-option[aria-selected="true"] {
      outline: 2px solid Highlight;
    }
    .mk-search-suggestions-option mark {
      color: Highlight;
    }
  }
}

/* ── components/search-summary/search-summary.css ── */
/* -- Search Summary (website · Search & Navigation) -----------------------
   Shows the active query and number of matches - the count, the query, a "did you mean", how long it took and how to clear it. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-search-summary, .mk-search-summary *, .mk-search-summary ::before, .mk-search-summary ::after) {
    box-sizing: border-box;
  }

  .mk-search-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 1rem;
    padding-block: 0.75rem;
    border-block-end: 1px solid var(--border);
    font-size: 0.9375rem;
    & p {
      margin: 0;
    }
    & strong {
      font-weight: 700;
    }
    & q {
      font-weight: 600;
      quotes: "“" "”";
    }
  }
  .mk-search-summary-time {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
  }
  .mk-search-summary-suggest {
    flex-basis: 100%;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    & a {
      color: var(--primary);
      font-weight: 600;
      font-style: italic;
    }
  }
  .mk-search-summary-clear {
    margin-inline-start: auto;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    &:hover {
      color: var(--foreground);
    }
  }
  .mk-search-summary[data-variant="compact"] {
    padding-block: 0.375rem;
    border: 0;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    & strong {
      color: var(--foreground);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-search-summary {
      border-color: CanvasText;
    }
  }
}

/* ── components/search-result/search-result.css ── */
/* -- Search Result (website · Search & Navigation) ------------------------
   Displays one matching entry with relevant context - where it lives, the title and a snippet with the matches highlighted, as text, with a thumbnail or as a product. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-search-result, .mk-search-result *, .mk-search-result ::before, .mk-search-result ::after) {
    box-sizing: border-box;
  }

  .mk-search-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0.75rem;
    border-radius: var(--radius-lg);
    &:hover {
      background: color-mix(in oklch, var(--accent) 60%, transparent);
    }
  }
  .mk-search-result {
    position: relative;
  }
  .mk-search-result-title a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
  }
  .mk-search-result-title a:focus-visible {
    outline: none;
  }
  .mk-search-result:has(.mk-search-result-title a:focus-visible) {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
  }
  /* zero specificity: any block rule may still position its controls */
  :where(.mk-search-result :is(button, input, select, label, .btn):not(.mk-search-result-title a)) {
    position: relative;
    z-index: 1;
  }
  .mk-search-result-body {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
  }
  .mk-search-result-path {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.75rem;
  }
  .mk-search-result-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 600;
    & a {
      color: var(--primary);
      text-decoration: none;
    }
    & mark {
      padding-inline: 0.125rem;
      border-radius: 2px;
      background: color-mix(in oklch, oklch(0.88 0.16 95) 70%, transparent);
      color: inherit;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-search-result-snippet {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: color-mix(in oklch, var(--foreground) 80%, var(--muted-foreground));
    font-size: 0.9375rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    & mark {
      padding-inline: 0.125rem;
      border-radius: 2px;
      background: color-mix(in oklch, oklch(0.88 0.16 95) 70%, transparent);
      color: inherit;
    }
  }
  .mk-search-result-meta {
    margin: 0;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    & strong {
      color: var(--foreground);
    }
  }
  .mk-search-result-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    background: var(--muted);
  }
  .mk-search-result[data-variant="media"] {
    grid-template-columns: 8rem minmax(0, 1fr);
    & .mk-search-result-media {
      aspect-ratio: 16 / 10;
      height: auto;
    }
  }
  .mk-search-result[data-variant="product"] {
    grid-template-columns: 5rem minmax(0, 1fr);
    align-items: center;
    & .mk-search-result-media {
      aspect-ratio: 1;
      height: auto;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-search-result-snippet mark {
      background: Mark;
      color: MarkText;
    }
  }
}

/* ── components/filter-bar/filter-bar.css ── */
/* -- Filter Bar (website · Search & Navigation) ---------------------------
   Presents compact controls for narrowing a collection - selects, toggle chips and a "more filters" action on one scrollable row, with the count. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-filter-bar, .mk-filter-bar *, .mk-filter-bar ::before, .mk-filter-bar ::after) {
    box-sizing: border-box;
  }

  .mk-filter-bar {
    width: 100%;
    & form {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding-block: 0.5rem;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scrollbar-width: thin;
    }
    & .select {
      width: auto;
      height: 2rem;
      padding-block: 0;
      font-size: 0.8125rem;
      border-radius: 999px;
      flex: none;
    }
    & .btn {
      flex: none;
      border-radius: 999px;
    }
  }
  .mk-filter-bar-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    height: 2rem;
    padding-inline: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    flex: none;
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
    }
    &:has(:checked) {
      border-color: var(--foreground);
      background: var(--foreground);
      color: var(--background);
    }
    &:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .mk-filter-bar-sep {
    flex: none;
    width: 1px;
    height: 1.25rem;
    background: var(--border);
  }
  .mk-filter-bar-count {
    flex: none;
    margin-inline-start: auto;
    padding-inline-start: 1rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    white-space: nowrap;
  }
  .mk-filter-bar[data-variant="sticky"] {
    position: sticky;
    top: 0;
    z-index: 10;
    border-block-end: 1px solid var(--border);
    background: color-mix(in oklch, var(--background) 85%, transparent);
    backdrop-filter: blur(10px);
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-filter-bar-chip:has(:checked) {
      background: Highlight;
      color: HighlightText;
    }
  }
}

/* ── components/filter-sidebar/filter-sidebar.css ── */
/* -- Filter Sidebar (website · Search & Navigation) -----------------------
   Groups detailed filtering controls beside a collection - categories with counts, a price range, colors, rating and availability, each group collapsible. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-filter-sidebar, .mk-filter-sidebar *, .mk-filter-sidebar ::before, .mk-filter-sidebar ::after) {
    box-sizing: border-box;
  }

  .mk-filter-sidebar {
    width: 100%;
    max-width: 17rem;
    & form {
      display: grid;
    }
  }
  .mk-filter-sidebar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-block-end: 0.75rem;
    & h2 {
      margin: 0;
      font-size: 1rem;
      font-weight: 600;
    }
    & a {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }
  .mk-filter-sidebar-group {
    padding-block: 0.875rem;
    border-block-start: 1px solid var(--border);
    & > summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
      font-size: 0.875rem;
      font-weight: 600;
      list-style: none;
    }
    & > summary::-webkit-details-marker {
      display: none;
    }
    & > summary::after {
      content: "+";
      color: var(--muted-foreground);
      font-weight: 400;
    }
    &[open] > summary::after {
      content: "−";
    }
    & > summary:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
    & > div {
      display: grid;
      gap: 0.5rem;
      padding-block-start: 0.75rem;
    }
    & fieldset {
      display: contents;
    }
    & legend {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }
  }
  .mk-filter-sidebar-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    & small {
      margin-inline-start: auto;
      color: var(--muted-foreground);
      font-size: 0.75rem;
      font-variant-numeric: tabular-nums;
    }
  }
  .mk-filter-sidebar-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    & .input {
      height: 2rem;
      font-size: 0.8125rem;
    }
  }
  .mk-filter-sidebar-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .mk-filter-sidebar-swatch {
    --mk-swatch: var(--muted);
    position: relative;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--mk-swatch);
    box-shadow: inset 0 0 0 1px oklch(0 0 0 / 0.15);
    cursor: pointer;
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    &:has(:checked) {
      outline: 2px solid var(--foreground);
      outline-offset: 2px;
    }
    &:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .mk-filter-sidebar-stars {
    color: oklch(0.78 0.16 75);
    letter-spacing: 0.0625rem;
  }
  .mk-filter-sidebar-apply {
    margin-block-start: 1rem;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-filter-sidebar-swatch {
      forced-color-adjust: none;
      border: 1px solid CanvasText;
    }
    .mk-filter-sidebar-swatch:has(:checked) {
      outline-color: Highlight;
    }
  }
}

/* ── components/active-filters/active-filters.css ── */
/* -- Active Filters (website · Search & Navigation) -----------------------
   Displays applied filters with individual and combined removal actions - one chip per filter that removes it, and "clear all". */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-active-filters, .mk-active-filters *, .mk-active-filters ::before, .mk-active-filters ::after) {
    box-sizing: border-box;
  }

  .mk-active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    & ul {
      display: contents;
    }
    & li {
      list-style: none;
    }
  }
  .mk-active-filters-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 1.75rem;
    padding-inline: 0.625rem 0.375rem;
    border-radius: 999px;
    background: var(--muted);
    color: var(--foreground);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    & span {
      color: var(--muted-foreground);
      font-weight: 400;
    }
    & svg {
      width: 0.875rem;
      height: 0.875rem;
      padding: 0.0625rem;
      border-radius: 50%;
    }
    &:hover svg {
      background: var(--foreground);
      color: var(--background);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .mk-active-filters-clear {
    margin-inline-start: 0.25rem;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    &:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-active-filters-label {
    color: var(--muted-foreground);
    font-size: 0.8125rem;
    font-weight: 600;
  }
  .mk-active-filters[data-variant="bar"] {
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    background: var(--muted);
    & .mk-active-filters-chip {
      background: var(--background);
      box-shadow: var(--shadow-xs);
    }
    & output {
      margin-inline-start: auto;
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-active-filters-chip {
      border: 1px solid CanvasText;
    }
  }
}

/* ── components/sort-control/sort-control.css ── */
/* -- Sort Control (website · Search & Navigation) -------------------------
   Changes the ordering of a collection - a labelled select, a segmented choice, or a button that opens a menu of options. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-sort-control, .mk-sort-control *, .mk-sort-control ::before, .mk-sort-control ::after) {
    box-sizing: border-box;
  }

  .mk-sort-control {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    & > label {
      color: var(--muted-foreground);
      white-space: nowrap;
    }
    & .select {
      width: auto;
      height: 2rem;
      font-size: 0.8125rem;
    }
  }
  .mk-sort-control[data-variant="segmented"] {
    padding: 0.1875rem;
    margin: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--muted);
    gap: 0;
    & legend {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }
    & label {
      position: relative;
      padding: 0.3125rem 0.75rem;
      border-radius: calc(var(--radius-md) - 2px);
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      font-weight: 500;
      cursor: pointer;
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & label:has(:checked) {
      background: var(--background);
      color: var(--foreground);
      box-shadow: var(--shadow-xs);
    }
    & label:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
  }
  .mk-sort-control-menu {
    margin: 0;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--popover);
    color: var(--popover-foreground);
    box-shadow: var(--shadow-lg);
    min-width: 12rem;

    & label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 0.5rem 0.625rem;
      border-radius: var(--radius-sm);
      font-size: 0.875rem;
      cursor: pointer;
    }
    & label:hover,
    & label:has(:focus-visible) {
      background: var(--accent);
    }
    & input {
      position: absolute;
      opacity: 0;
    }
    & label::after {
      content: "";
      width: 0.375rem;
      height: 0.625rem;
      border-block-end: 2px solid currentColor;
      border-inline-end: 2px solid currentColor;
      rotate: 45deg;
      translate: 0 -0.125rem;
      opacity: 0;
    }
    & label:has(:checked)::after {
      opacity: 1;
    }
  }
  @supports (position-anchor: --a) {
    .mk-sort-control-menu {
      inset: auto;
      margin-block-start: 0.375rem;
      position-area: bottom span-left;
      position-try-fallbacks: flip-block;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-sort-control[data-variant="segmented"] label:has(:checked) {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/view-switcher/view-switcher.css ── */
/* -- View Switcher (website · Search & Navigation) ------------------------
   Switches a collection between layouts such as grid and list - icon or labelled segments, and the collection beside them changes with no script. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-view-switcher, .mk-view-switcher *, .mk-view-switcher ::before, .mk-view-switcher ::after) {
    box-sizing: border-box;
  }

  .mk-view-switcher {
    display: grid;
    gap: 1rem;
    width: 100%;
  }
  .mk-view-switcher-options {
    display: inline-flex;
    justify-self: end;
    padding: 0.1875rem;
    border-radius: var(--radius-md);
    background: var(--muted);
    & label {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      height: 1.875rem;
      padding-inline: 0.5rem;
      border-radius: calc(var(--radius-md) - 2px);
      color: var(--muted-foreground);
      font-size: 0.8125rem;
      font-weight: 500;
      cursor: pointer;
    }
    & input {
      position: absolute;
      inset: 0;
      margin: 0;
      opacity: 0;
      cursor: pointer;
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
    & label:has(:checked) {
      background: var(--background);
      color: var(--foreground);
      box-shadow: var(--shadow-xs);
    }
    & label:has(:focus-visible) {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
  }
  .mk-view-switcher-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;

    & li {
      display: grid;
      gap: 0.5rem;
    }
    & img {
      display: block;
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: var(--radius-lg);
    }
    & span {
      display: grid;
    }
    & strong {
      font-size: 0.9375rem;
    }
    & small {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }
  .mk-view-switcher:has(.mk-view-switcher-options input[value="list"]:checked) .mk-view-switcher-collection {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;

    & li {
      grid-template-columns: 4.5rem minmax(0, 1fr);
      align-items: center;
      gap: 1rem;
      padding-block: 0.625rem;
      border-block-end: 1px solid var(--border);
    }
    & img {
      border-radius: var(--radius-md);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-view-switcher-options label:has(:checked) {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/collection-pagination/collection-pagination.css ── */
/* -- Collection Pagination (website · Search & Navigation) ----------------
   Navigates between discrete pages of a collection - the range shown, the Pagination component and how many per page; or simply previous / next. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(
    .mk-collection-pagination,
    .mk-collection-pagination *,
    .mk-collection-pagination ::before,
    .mk-collection-pagination ::after
  ) {
    box-sizing: border-box;
  }

  .mk-collection-pagination {
    container: mk-collection-pagination / inline-size;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    width: 100%;
    padding-block: 1rem;
    border-block-start: 1px solid var(--border);
    font-size: 0.875rem;
  }
  .mk-collection-pagination-range {
    color: var(--muted-foreground);
    & strong {
      color: var(--foreground);
      font-variant-numeric: tabular-nums;
    }
  }
  .mk-collection-pagination-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted-foreground);
    & .select {
      width: auto;
      height: 2rem;
      font-size: 0.8125rem;
    }
  }
  .mk-collection-pagination[data-variant="simple"] .mk-collection-pagination-page {
    color: var(--muted-foreground);
  }
  .mk-collection-pagination[data-variant="centered"] {
    flex-direction: column;
    justify-content: center;
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-collection-pagination {
      border-color: CanvasText;
    }
  }
}

/* ── components/load-more/load-more.css ── */
/* -- Load More (website · Search & Navigation) ----------------------------
   Loads another batch into the current collection - how many are shown, a progress bar and the button, with a busy state while loading. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-load-more, .mk-load-more *, .mk-load-more ::before, .mk-load-more ::after) {
    box-sizing: border-box;
  }

  .mk-load-more {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    width: 100%;
    padding-block: 1.5rem;
    & output {
      color: var(--muted-foreground);
      font-size: 0.875rem;
    }
    & output strong {
      color: var(--foreground);
    }
    & progress {
      width: min(100%, 14rem);
      height: 0.25rem;
    }
  }
  .mk-load-more-button {
    & .mk-load-more-spin {
      display: none;
      width: 1rem;
      height: 1rem;
      border: 2px solid currentColor;
      border-inline-end-color: transparent;
      border-radius: 50%;
      animation: mk-load-more-spin 700ms linear infinite;
    }
    &[aria-busy="true"] {
      pointer-events: none;
      opacity: 0.75;
    }
    &[aria-busy="true"] .mk-load-more-spin {
      display: inline-block;
    }
    &[aria-busy="true"] svg {
      display: none;
    }
  }
  @keyframes mk-load-more-spin {
    to {
      rotate: 1turn;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-load-more-spin {
      animation-duration: 2.4s;
    }
  }

  @media (forced-colors: active) {
    .mk-load-more-spin {
      border-color: CanvasText;
      border-inline-end-color: transparent;
    }
  }
}

/* ── components/tag-cloud/tag-cloud.css ── */
/* -- Tag Cloud (website · Search & Navigation) ----------------------------
   Displays linked tags with optional frequency-based emphasis - five weights from data-weight, or even pills with counts. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-tag-cloud, .mk-tag-cloud *, .mk-tag-cloud ::before, .mk-tag-cloud ::after) {
    box-sizing: border-box;
  }

  .mk-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.375rem 0.875rem;
    max-width: 32rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & a {
      color: var(--muted-foreground);
      text-decoration: none;
      line-height: 1.2;
    }
    & a:hover {
      color: var(--primary);
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
      border-radius: var(--radius-sm);
    }
    & a[data-weight="1"] {
      font-size: 0.8125rem;
      opacity: 0.8;
    }
    & a[data-weight="2"] {
      font-size: 0.9375rem;
    }
    & a[data-weight="3"] {
      font-size: 1.125rem;
      color: var(--foreground);
    }
    & a[data-weight="4"] {
      font-size: 1.375rem;
      color: var(--foreground);
      font-weight: 600;
    }
    & a[data-weight="5"] {
      font-size: 1.75rem;
      color: var(--foreground);
      font-weight: 700;
      letter-spacing: -0.02em;
    }
  }
  .mk-tag-cloud[data-variant="pills"] {
    gap: 0.5rem;
    align-items: center;
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.25rem 0.375rem 0.25rem 0.75rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--foreground);
      font-size: 0.8125rem;
      font-weight: 500;
      opacity: 1;
      letter-spacing: 0;
    }
    & a:hover {
      border-color: var(--primary);
      text-decoration: none;
    }
    & small {
      padding: 0.0625rem 0.375rem;
      border-radius: 999px;
      background: var(--muted);
      color: var(--muted-foreground);
      font-size: 0.6875rem;
      font-variant-numeric: tabular-nums;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-tag-cloud a {
      color: LinkText;
    }
  }
}

/* ── components/tag-list/tag-list.css ── */
/* -- Tag List (website · Search & Navigation) -----------------------------
   Displays the tags associated with a content item - outlined chips, plain hashtags, or colored labels. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-tag-list, .mk-tag-list *, .mk-tag-list ::before, .mk-tag-list ::after) {
    box-sizing: border-box;
  }

  .mk-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
    & a {
      display: inline-flex;
      align-items: center;
      height: 1.5rem;
      padding-inline: 0.625rem;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--foreground);
      font-size: 0.75rem;
      font-weight: 500;
      text-decoration: none;
    }
    & a:hover {
      border-color: color-mix(in oklch, var(--foreground) 40%, var(--border));
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
  }
  .mk-tag-list[data-variant="plain"] {
    gap: 0.25rem 0.75rem;
    & a {
      height: auto;
      padding: 0;
      border: 0;
      color: var(--primary);
      font-size: 0.875rem;
    }
    & a::before {
      content: "#" / "";
      opacity: 0.6;
    }
    & a:hover {
      text-decoration: underline;
      text-underline-offset: 3px;
    }
  }
  .mk-tag-list[data-variant="colored"] a {
    --mk-tag-color: var(--muted-foreground);

    border-color: transparent;
    border-radius: var(--radius-sm);
    background: color-mix(in oklch, var(--mk-tag-color) 14%, transparent);
    color: color-mix(in oklab, var(--mk-tag-color) 75%, var(--foreground));
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-tag-list a {
      border: 1px solid LinkText;
    }
  }
}

/* ── components/category-menu/category-menu.css ── */
/* -- Category Menu (website · Search & Navigation) ------------------------
   Navigates between content categories - underlined tabs that scroll sideways, pills, a vertical list with counts, or icon tiles. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-category-menu, .mk-category-menu *, .mk-category-menu ::before, .mk-category-menu ::after) {
    box-sizing: border-box;
  }

  .mk-category-menu {
    width: 100%;
    & ul {
      display: flex;
      gap: 0.25rem;
      margin: 0;
      padding: 0;
      list-style: none;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scroll-snap-type: x proximity;
      scrollbar-width: none;
      border-block-end: 1px solid var(--border);
    }
    & li {
      flex: none;
      scroll-snap-align: start;
    }
    & a {
      display: inline-flex;
      align-items: center;
      gap: 0.375rem;
      padding: 0.625rem 0.75rem;
      margin-block-end: -1px;
      border-block-end: 2px solid transparent;
      color: var(--muted-foreground);
      font-size: 0.875rem;
      font-weight: 500;
      text-decoration: none;
      white-space: nowrap;
    }
    & a:hover {
      color: var(--foreground);
    }
    & a[aria-current] {
      border-block-end-color: var(--foreground);
      color: var(--foreground);
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
      border-radius: var(--radius-sm);
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
    & small {
      color: var(--muted-foreground);
      font-size: 0.75rem;
      font-variant-numeric: tabular-nums;
    }
  }
  .mk-category-menu[data-variant="pills"] {
    & ul {
      gap: 0.5rem;
      border: 0;
    }
    & a {
      padding: 0.375rem 0.875rem;
      margin: 0;
      border: 1px solid var(--border);
      border-radius: 999px;
    }
    & a[aria-current] {
      border-color: var(--foreground);
      background: var(--foreground);
      color: var(--background);
    }
    & a[aria-current] small {
      color: inherit;
      opacity: 0.7;
    }
  }
  .mk-category-menu[data-variant="vertical"] {
    max-width: 15rem;
    & ul {
      flex-direction: column;
      gap: 0.0625rem;
      border: 0;
      overflow: visible;
    }
    & a {
      display: flex;
      margin: 0;
      padding: 0.5rem 0.75rem;
      border: 0;
      border-radius: var(--radius-md);
    }
    & a span {
      flex: 1;
    }
    & a:hover {
      background: var(--accent);
    }
    & a[aria-current] {
      background: var(--accent);
      font-weight: 600;
    }
  }
  .mk-category-menu[data-variant="tiles"] {
    & ul {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
      gap: 0.75rem;
      border: 0;
      overflow: visible;
    }
    & a {
      display: grid;
      justify-items: start;
      gap: 0.25rem;
      margin: 0;
      padding: 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      white-space: normal;
    }
    & a svg {
      width: 1.5rem;
      height: 1.5rem;
      margin-block-end: 0.5rem;
      color: var(--primary);
    }
    & a:hover {
      border-color: color-mix(in oklch, var(--foreground) 30%, var(--border));
    }
    & a[aria-current] {
      border-color: var(--primary);
      box-shadow: 0 0 0 1px var(--primary);
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-category-menu a[aria-current] {
      outline: 2px solid Highlight;
    }
  }
}

/* ── components/breadcrumbs/breadcrumbs.css ── */
/* -- Breadcrumbs (website · Search & Navigation) --------------------------
   Shows the current position within a content hierarchy - the trail above the page title, collapsing to a back link on small screens, or hiding the middle levels in a menu. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-breadcrumbs, .mk-breadcrumbs *, .mk-breadcrumbs ::before, .mk-breadcrumbs ::after) {
    box-sizing: border-box;
  }

  .mk-breadcrumbs {
    container: mk-breadcrumbs / inline-size;
    display: grid;
    gap: 0.5rem;
    width: 100%;
    & .breadcrumb-link svg {
      width: 0.875rem;
      height: 0.875rem;
      vertical-align: -0.125rem;
    }
  }
  .mk-breadcrumbs-back {
    display: none;
    align-items: center;
    gap: 0.25rem;
    width: fit-content;
    color: var(--muted-foreground);
    font-size: 0.875rem;
    text-decoration: none;
    & svg {
      width: 1rem;
      height: 1rem;
    }
    &:hover {
      color: var(--foreground);
    }
  }
  .mk-breadcrumbs-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .mk-breadcrumbs-more {
    display: grid;
    place-items: center;
    width: 1.75rem;
    height: 1.5rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--muted);
    color: var(--muted-foreground);
    cursor: pointer;
    &:hover {
      color: var(--foreground);
    }
    &:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 1px;
    }
    & svg {
      width: 1rem;
      height: 1rem;
    }
  }
  .mk-breadcrumbs-menu {
    margin: 0;
    padding: 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--popover);
    box-shadow: var(--shadow-lg);
    & ul {
      display: grid;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    & a {
      display: block;
      padding: 0.375rem 0.75rem;
      border-radius: var(--radius-sm);
      color: var(--popover-foreground);
      font-size: 0.875rem;
      text-decoration: none;
    }
    & a:hover {
      background: var(--accent);
    }
  }
  @supports (position-anchor: --a) {
    .mk-breadcrumbs-menu {
      inset: auto;
      margin-block-start: 0.25rem;
      position-area: bottom span-right;
    }
  }

  @container mk-breadcrumbs (max-width: 30rem) {
    .mk-breadcrumbs:not([data-variant]) .breadcrumb {
      display: none;
    }
    .mk-breadcrumbs:not([data-variant]) .mk-breadcrumbs-back {
      display: inline-flex;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (forced-colors: active) {
    .mk-breadcrumbs-more {
      border: 1px solid ButtonText;
    }
  }
}

/* ── components/contents/contents.css ── */
/* -- Contents (website · Search & Navigation) -----------------------------
   Links to headings within the current page - an "on this page" rail with the current section marked, a numbered box at the top, or a disclosure for small screens. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-contents, .mk-contents *, .mk-contents ::before, .mk-contents ::after) {
    box-sizing: border-box;
  }

  .mk-contents {
    width: 100%;
    max-width: 15rem;
    font-size: 0.8125rem;
    & ol {
      margin: 0;
      padding: 0;
      list-style: none;
    }
    & > ol {
      border-inline-start: 1px solid var(--border);
    }
    & ol ol {
      padding-inline-start: 0.75rem;
    }
    & a {
      display: block;
      margin-inline-start: -1px;
      padding: 0.3125rem 0.75rem;
      border-inline-start: 2px solid transparent;
      color: var(--muted-foreground);
      text-decoration: none;
      line-height: 1.4;
    }
    & a:hover {
      color: var(--foreground);
    }
    & a[aria-current] {
      border-inline-start-color: var(--primary);
      color: var(--foreground);
      font-weight: 600;
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
    }
  }
  .mk-contents-title {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .mk-contents[data-variant="boxed"] {
    max-width: 30rem;
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    background: var(--muted);
    font-size: 0.9375rem;

    & > ol {
      border: 0;
      counter-reset: mk-toc;
    }
    & > ol > li {
      counter-increment: mk-toc;
    }
    & > ol > li > a::before {
      content: counter(mk-toc) ". ";
      color: var(--muted-foreground);
      font-variant-numeric: tabular-nums;
    }
    & a {
      margin: 0;
      padding: 0.25rem 0;
      border: 0;
      color: var(--foreground);
    }
    & a:hover {
      color: var(--primary);
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    & a[aria-current] {
      color: var(--primary);
    }
  }

  .mk-contents[data-variant="dropdown"] {
    max-width: 24rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    & summary {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.75rem 1rem;
      cursor: pointer;
      font-weight: 600;
      list-style: none;
    }
    & summary::-webkit-details-marker {
      display: none;
    }
    & summary::after {
      content: "";
      width: 0.4375rem;
      height: 0.4375rem;
      border-block-end: 2px solid currentColor;
      border-inline-end: 2px solid currentColor;
      rotate: 45deg;
      transition: rotate 150ms ease;
    }
    &[open] summary::after {
      rotate: 225deg;
    }
    & summary:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: -2px;
      border-radius: var(--radius-lg);
    }
    & > ol {
      margin: 0 1rem 0.75rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-contents[data-variant="dropdown"] summary::after {
      transition: none;
    }
  }

  @media (forced-colors: active) {
    .mk-contents a[aria-current] {
      border-inline-start-color: Highlight;
    }
  }
}

/* ── components/quick-links/quick-links.css ── */
/* -- Quick Links (website · Search & Navigation) --------------------------
   Groups shortcuts to frequently needed destinations - icon tiles with a line each, a compact list, or chips. */

@layer components {
  /* every box in the block measures border-box - the same on any page */
  :where(.mk-quick-links, .mk-quick-links *, .mk-quick-links ::before, .mk-quick-links ::after) {
    box-sizing: border-box;
  }

  .mk-quick-links {
    width: 100%;
    & ul {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
      gap: 0.75rem;
      margin: 0;
      padding: 0;
      list-style: none;
    }
    & a {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr) auto;
      align-items: center;
      gap: 0.875rem;
      height: 100%;
      padding: 1rem 1.125rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-xl);
      color: inherit;
      text-decoration: none;
      transition:
        border-color 150ms ease,
        background-color 150ms ease;
    }
    & a:hover {
      border-color: color-mix(in oklch, var(--foreground) 25%, var(--border));
      background: color-mix(in oklch, var(--accent) 50%, transparent);
    }
    & a:focus-visible {
      outline: 2px solid var(--ring);
      outline-offset: 2px;
    }
    & a > svg:first-child {
      width: 1.25rem;
      height: 1.25rem;
      color: var(--primary);
    }
    & a > svg:last-child {
      width: 1rem;
      height: 1rem;
      color: var(--muted-foreground);
      transition: translate 150ms ease;
    }
    & a:hover > svg:last-child {
      translate: 0.25rem 0;
      color: var(--foreground);
    }
    & span {
      display: grid;
    }
    & strong {
      font-size: 0.9375rem;
      font-weight: 600;
    }
    & small {
      color: var(--muted-foreground);
      font-size: 0.8125rem;
    }
  }
  .mk-quick-links[data-variant="list"] {
    max-width: 28rem;
    & ul {
      grid-template-columns: minmax(0, 1fr);
      gap: 0;
    }
    & a {
      padding: 0.875rem 0.5rem;
      border: 0;
      border-block-end: 1px solid var(--border);
      border-radius: 0;
    }
  }
  .mk-quick-links[data-variant="chips"] {
    & ul {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
    & a {
      display: inline-flex;
      gap: 0.5rem;
      padding: 0.5rem 0.875rem;
      border-radius: 999px;
    }
    & small,
    & a > svg:last-child {
      display: none;
    }
    & strong {
      font-size: 0.875rem;
      font-weight: 500;
    }
    & a > svg:first-child {
      width: 1rem;
      height: 1rem;
    }
  }

  /* -- Accessibility ------------------------------------------- */
  @media (prefers-reduced-motion: reduce) {
    .mk-quick-links a,
    .mk-quick-links a > svg:last-child {
      transition: none;
    }
    .mk-quick-links a:hover > svg:last-child {
      translate: none;
    }
  }

  @media (forced-colors: active) {
    .mk-quick-links a {
      border-color: CanvasText;
    }
  }
}
