/* the marketplace (R78): our reviewed catalogue, then Anthropic's two directories; plugin pages */
.pg-k { font: 500 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mk .lu { width: 16px; height: 16px; flex: none; }
.mk kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 6px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink-3); }
.mk code { font: 500 0.88em var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--win-2); color: var(--ink); overflow-wrap: anywhere; }
.mk-main { padding-bottom: 120px; }

/* head */
.mk-head { padding-top: 96px; }
.mk-h1 { margin-top: 16px; font-family: var(--f-display); font-size: 56px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; max-width: 860px; text-wrap: balance; }
.mk-sub { margin-top: 16px; font-size: 20px; line-height: 1.5; color: var(--ink-2); max-width: 640px; text-wrap: pretty; }
.mk-s { display: flex; align-items: center; gap: 10px; max-width: 560px; height: 48px; margin-top: 32px; padding: 0 12px 0 16px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule-2), 0 8px 24px -16px rgba(28,25,23,.3); transition: box-shadow 150ms var(--e-out); }
.mk-s:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 8px 24px -16px rgba(28,25,23,.3); }
.mk-s .lu { color: var(--ink-3); }
.mk-s input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.mk-s input::-webkit-search-cancel-button { display: none; }

.mk-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: 2px; margin-top: 24px; padding: 3px; border-radius: 14px; background: #F0EFEA; width: max-content; max-width: 100%; }
.mk-tabs button { display: grid; gap: 1px; padding: 8px 16px; border: 0; border-radius: 11px; background: none; font: inherit; text-align: left; color: var(--ink-3); cursor: pointer; transition: background-color 180ms var(--e-out), color 180ms var(--e-out), box-shadow 180ms var(--e-out), transform 160ms var(--e-out); }
.mk-tabs button span { font-size: 14px; font-weight: 500; white-space: nowrap; }
.mk-tabs button b { font: 500 12px var(--mono); color: var(--ink-4); font-variant-numeric: tabular-nums; }
.mk-tabs button small { font-size: 12px; color: var(--ink-4); white-space: nowrap; }
.mk-tabs button:hover { color: var(--ink); }
.mk-tabs button:active { transform: scale(0.98); }
.mk-tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(28,25,23,.08), 0 0 0 1px rgba(28,25,23,.05); }
.mk-tabs button[aria-selected="true"] span { font-weight: 600; }
.mk-tabs button[aria-selected="true"] b { color: var(--ink-3); }
.mk-tabs button:focus-visible, .mk-chip:focus-visible, .mk-c:focus-visible, .mk-mb:focus-visible, .mk-copy:focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; }

/* panels */
.mk-p { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--rule); }
.mk-note { max-width: 760px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.mk-note b { color: var(--ink); font-weight: 600; }
.mk-chips { display: flex; gap: 6px; margin-top: 20px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mk-chips::-webkit-scrollbar { display: none; }
.mk-chips:empty { display: none; }
.mk-chip { flex: none; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 9999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule); font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background-color 150ms var(--e-out), color 150ms var(--e-out), box-shadow 150ms var(--e-out), transform 160ms var(--e-out); }
.mk-chip span { font: 500 11px var(--mono); color: var(--ink-4); }
.mk-chip:hover { box-shadow: inset 0 0 0 1px var(--rule-2); color: var(--ink); }
.mk-chip:active { transform: scale(0.97); }
.mk-chip[aria-pressed="true"] { background: var(--ink); color: var(--lift); box-shadow: none; }
.mk-chip[aria-pressed="true"] span { color: rgba(255,255,255,.6); }

.mk-grp { margin-top: 36px; }
.mk-grp h3 { font: 500 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.mk-grp h3 span { color: var(--ink-4); }
.mk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.mk-x { margin-top: 24px; }
.mk-c { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--white); box-shadow: 0 0 0 1px var(--rule); color: var(--ink); text-decoration: none; transition: box-shadow 160ms var(--e-out), transform 160ms var(--e-out); min-width: 0; }
a.mk-c:hover, .mk-c:has(.mk-ct:hover) { box-shadow: 0 0 0 1px var(--rule-2), 0 10px 24px -18px rgba(28,25,23,.35); transform: translateY(-1px); }
a.mk-c:active { transform: scale(0.98); }
.mk-c > b, .mk-ct { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.mk-cd { font-size: 14px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-cn { margin-top: auto; padding-top: 4px; font: 500 11.5px var(--mono); color: var(--ink-3); }
.mk-ct { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: var(--ink); text-decoration: none; }
.mk-ct i { font-style: normal; font-weight: 400; color: var(--ink-4); transition: transform 160ms var(--e-out), color 160ms var(--e-out); }
.mk-ct:hover i { transform: translate(2px, -2px); color: var(--ink); }
.mk-ct:focus-visible { outline: 2px solid #0EA5E9; outline-offset: 2px; border-radius: 4px; }
.mk-cm { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: auto; padding-top: 4px; font-size: 12px; color: var(--ink-3); }
.mk-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 500; }
.mk-ok .lu { width: 13px; height: 13px; stroke-width: 2.5; }
.mk-cp { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 4px 4px 10px; border-radius: 9px; background: var(--win-2); }
.mk-cp code { flex: 1; min-width: 0; padding: 0; background: none; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-copy { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--ink-3); cursor: pointer; transition: background-color 150ms var(--e-out), color 150ms var(--e-out), transform 160ms var(--e-out); }
.mk-copy:hover { background: var(--white); color: var(--ink); }
.mk-copy:active { transform: scale(0.94); }
.mk-copy.done { color: var(--ok); }
.mk-copy .lu { width: 14px; height: 14px; }
.mk-more { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; font-size: 13px; color: var(--ink-3); }
.mk-more[hidden] { display: none; }
.mk-mb { height: 36px; padding: 0 16px; border: 0; border-radius: 9999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--rule-2); font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background-color 150ms var(--e-out), transform 160ms var(--e-out); }
.mk-mb:hover { background: var(--win-2); }
.mk-mb:active { transform: scale(0.97); }
.mk-none { margin-top: 32px; font-size: 15px; color: var(--ink-3); }

/* how to install */
.mk-how { margin-top: 96px; padding-top: 40px; border-top: 1px solid var(--rule); }
.mk-how h2 { font-family: var(--f-display); font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; }
.mk-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: mk; }
.mk-how li { display: grid; gap: 6px; align-content: start; counter-increment: mk; }
.mk-how li::before { content: counter(mk); display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 9999px; background: var(--win-2); font: 500 13px var(--mono); color: var(--ink-2); }
.mk-how li > b { font-size: 16px; font-weight: 600; }
.mk-how li > span { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.mk-how li > span b { color: var(--ink); font-weight: 600; }
.mk-more-l { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; font-size: 15px; }
.mk-more-l a { color: var(--ink); font-weight: 500; text-decoration: none; }
.mk-more-l a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--rule-2); }

/* plugin page */
.mk-page { padding-top: 40px; }
.mk-cr { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.mk-cr a { color: inherit; text-decoration: none; }
.mk-cr a:hover { color: var(--ink); }
.mk-cr span { color: var(--ink-4); }
.mk-ph1 { margin-top: 12px; font-family: var(--f-display); font-size: 44px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; text-wrap: balance; max-width: 820px; }
.mk-lede { margin-top: 16px; max-width: 760px; font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.mk-pg { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; margin-top: 48px; }
.mk-in > h2, .mk-ins > h2, .mk-rel > h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.mk-ik { margin-top: 24px; }
.mk-ik h3 { font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mk-ik ul { display: grid; gap: 1px; margin: 10px 0 0; padding: 0; list-style: none; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); background: var(--rule); }
.mk-ik li { display: grid; gap: 2px; padding: 12px 16px; background: var(--white); }
.mk-ik li b { font-size: 15px; font-weight: 600; }
.mk-ik li span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.mk-ik > p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.mk-ins { position: sticky; top: 97px; padding: 20px; border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px var(--rule); }
.mk-il { margin-top: 16px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mk-ins .mk-cp { margin-top: 8px; align-items: flex-start; }
.mk-ins .mk-cp code { white-space: normal; font-size: 12.5px; line-height: 1.5; padding: 4px 0; }
.mk-path { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.mk-path b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.mk-fine { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }
.mk-meta { display: flex; gap: 12px; margin-top: 10px; font: 500 11.5px var(--mono); color: var(--ink-3); }
.mk-rel { margin-top: 72px; }

@media (max-width: 1024px) {
  .mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-how ol { grid-template-columns: minmax(0, 1fr); }
  .mk-pg { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .mk-ins { position: static; order: -1; }
}
@media (max-width: 640px) {
  .mk-head { padding-top: 40px; }
  .mk-h1 { font-size: 32px; letter-spacing: -0.02em; }
  .mk-sub { font-size: 16px; }
  .mk-s kbd { display: none; }
  .mk-tabs { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mk-tabs button { padding: 8px 10px; }
  .mk-tabs button small { display: none; }
  .mk-tabs button span { display: grid; font-size: 13px; }
  .mk-tabs button b { font-size: 11px; }
  .mk-tabs [data-tab="irene"] .mk-tl { display: none; }
  .mk-grid { grid-template-columns: minmax(0, 1fr); }
  .mk-p { margin-top: 28px; padding-top: 24px; }
  .mk-ph1 { font-size: 30px; }
  .mk-lede { font-size: 16px; }
  .mk-how { margin-top: 72px; }
  .mk-how h2 { font-size: 26px; }
  .mk-main { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) { .mk-c, .mk-ct i { transition: none; } }
.mk-ta { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
.mk-tl { font-style: normal; }

/* chip rows that don't fit: edges fade, an arrow shows on the side with more, hovering the arrow scrolls */
.mk-cw { position: relative; margin-top: 20px; }
.mk-cw .mk-chips { margin-top: 0; scroll-behavior: smooth; }
.mk-cw[data-l] .mk-chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
.mk-cw[data-r] .mk-chips { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 56px); mask-image: linear-gradient(270deg, transparent 0, #000 56px); }
.mk-cw[data-l][data-r] .mk-chips { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
.mk-ar { position: absolute; top: 0; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9999px; background: var(--white); box-shadow: 0 0 0 1px var(--rule-2), 0 4px 12px -6px rgba(28,25,23,.3); color: var(--ink-2); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 160ms var(--e-out), transform 160ms var(--e-out), color 150ms var(--e-out); }
.mk-ar .lu { width: 15px; height: 15px; }
.mk-arl { left: 0; transform: translateX(-4px); }
.mk-arr { right: 0; transform: translateX(4px); }
.mk-cw[data-l] .mk-arl, .mk-cw[data-r] .mk-arr { opacity: 1; pointer-events: auto; transform: none; }
.mk-ar:hover { color: var(--ink); }
.mk-ar:active { transform: scale(0.94); }
@media (hover: none) { .mk-ar { display: none; } }
.mk-cw .mk-chips.glide { scroll-behavior: auto; }
