:root {
  --ink: #172124;
  --ink-soft: #536164;
  --ink-muted: #7a8789;
  --line: #e4e9e8;
  --line-strong: #cfd8d6;
  --surface: #ffffff;
  --surface-soft: #f6f8f7;
  --accent: #7aaf12;
  --accent-ink: #2f5d1c;
  --accent-soft: #eef4ea;
  --night: #142126;
  --night-raised: #1f3237;
  --night-line: #3f555a;
  --topbar-height: 72px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 30; left: 16px; top: -60px; padding: 10px 14px; border: 1px solid var(--line-strong); background: var(--surface); }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

/* Top bar: always visible; the featured strip unfolds under it once the hero is gone. */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1320px; height: var(--topbar-height); margin: auto; padding: 0 32px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; font-size: 23px; font-weight: 760; letter-spacing: -.06em; text-decoration: none; line-height: 1; }
.brand img { width: 26px; height: 26px; }
.brand span { margin-left: 2px; color: var(--ink-muted); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.search { width: min(100%, 460px); height: 42px; margin-left: auto; padding: 0 16px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.search:focus-within { border-color: var(--ink-muted); }
.search-icon { position: relative; width: 13px; height: 13px; flex: none; border: 1.6px solid var(--ink-muted); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -2px; width: 6px; height: 1.6px; background: var(--ink-muted); transform: rotate(45deg); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.language-switch { display: flex; gap: 2px; flex: none; }
.language-switch button { padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-muted); font-size: 12px; font-weight: 650; }
.language-switch button[aria-pressed="true"] { background: var(--surface-soft); color: var(--ink); }

.featured-strip { max-height: 0; overflow: hidden; opacity: 0; border-top: 1px solid transparent; transition: max-height .25s ease, opacity .2s ease, border-color .2s; }
.topbar.compact:not(.on-detail) .featured-strip { max-height: 64px; opacity: 1; border-top-color: var(--line); }
.featured-strip-inner { max-width: 1320px; height: 56px; margin: auto; padding: 0 32px; display: flex; align-items: center; gap: 18px; }
.featured-strip-label { flex: none; color: var(--ink-muted); font-size: 11px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.featured-strip-items { min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.featured-chip { flex: none; height: 38px; padding: 0 12px 0 5px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-align: left; }
.featured-chip:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.featured-chip .featured-text { display: flex; align-items: baseline; gap: 8px; }
.featured-chip strong { font-size: 13px; }
.featured-chip .featured-text span { color: var(--ink-muted); font-size: 12px; }

/* Plugin icon: the catalogue image, or initials on a soft tile. */
.plugin-icon { display: grid; place-items: center; flex: none; overflow: hidden; border: 1px solid #dce6df; background: var(--accent-soft); color: var(--accent-ink); font-weight: 720; letter-spacing: -.02em; }
.plugin-icon.has-image { background: var(--surface); }
.plugin-icon img { width: 100%; height: 100%; object-fit: contain; }
.plugin-icon-xs { width: 28px; height: 28px; border-radius: 999px; font-size: 11px; }
.plugin-icon-xs.has-image { padding: 3px; }
.plugin-icon-sm { width: 38px; height: 38px; border-radius: 9px; font-size: 14px; }
.plugin-icon-sm.has-image, .plugin-icon-md.has-image { padding: 4px; }
.plugin-icon-md { width: 48px; height: 48px; border-radius: 11px; font-size: 17px; }
.plugin-icon-lg { width: 76px; height: 76px; border-radius: 17px; font-size: 27px; }
.plugin-icon-lg.has-image { padding: 7px; }
.row-arrow { margin-left: auto; color: var(--ink-muted); font-size: 15px; }

/* Hero, from the editorial variant: positioning on the left, featured on the right. */
.hero { background: var(--night); color: #fff; }
.hero-inner { max-width: 1320px; min-height: 400px; margin: auto; padding: 60px 32px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 80px; align-items: center; }
.hero-copy .eyebrow { color: #b6d593; }
.hero-copy h1 { max-width: 640px; margin: 0; font-size: clamp(40px, 4.4vw, 60px); font-weight: 620; line-height: 1.07; letter-spacing: -.055em; }
.hero-intro { max-width: 540px; margin: 22px 0 0; color: #cad7d6; font-size: 16px; line-height: 1.65; }
.hero-featured { padding: 22px; border: 1px solid var(--night-line); border-radius: 14px; background: var(--night-raised); }
.hero-featured .eyebrow { color: #bccbc9; }
.featured-row { width: 100%; margin-top: 10px; padding: 12px 14px 12px 12px; display: flex; align-items: center; gap: 14px; border: 0; border-radius: 9px; background: var(--surface); color: var(--ink); text-align: left; }
.featured-row:hover { background: #f1f6f0; }
.featured-row .featured-text { display: grid; gap: 2px; }
.featured-row strong { font-size: 15px; }
.featured-row .featured-text span { color: var(--ink-muted); font-size: 12px; }

/* Directory, from the task-first variant: categories on the left, dense rows. */
.directory { max-width: 1320px; margin: auto; padding: 56px 32px 96px; scroll-margin-top: calc(var(--topbar-height) + 64px); }
.directory-heading { padding-bottom: 26px; }
.directory-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 680; line-height: 1.15; letter-spacing: -.045em; }
.directory-hint { margin: 10px 0 0; color: var(--ink-muted); font-size: 14px; }
.directory-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 26px; border-top: 1px solid var(--line); }
.without-categories .directory-body { grid-template-columns: minmax(0, 1fr); }
.category-nav { position: sticky; top: calc(var(--topbar-height) + 76px); align-self: start; display: grid; gap: 4px; }
.category-button { width: 100%; padding: 11px 12px; display: flex; justify-content: space-between; gap: 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-soft); text-align: left; font-size: 14px; }
.category-button:hover { background: var(--surface-soft); }
.category-button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.category-count { color: var(--ink-muted); font-size: 12px; font-weight: 500; }
.catalogue-state { min-height: 18px; margin: 0 0 6px; color: var(--ink-muted); font-size: 13px; }
.directory-row { width: 100%; padding: 20px 8px; display: flex; align-items: flex-start; gap: 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.directory-row:hover { background: #fafcfb; }
.directory-row:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.directory-text { min-width: 0; display: grid; gap: 5px; }
.directory-text strong { font-size: 17px; font-weight: 660; }
.directory-summary { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.directory-text small { color: var(--ink-muted); font-size: 12px; }

/* Detail page. */
.detail { max-width: 1320px; margin: auto; padding: 34px 32px 96px; }
.back-link { display: inline-flex; gap: 9px; color: var(--ink-soft); font-size: 13px; text-decoration: none; }
.back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.detail-header { display: flex; align-items: center; gap: 22px; padding: 36px 0 32px; border-bottom: 1px solid var(--line); }
.detail-category { margin-bottom: 7px; color: #5b8075; }
.detail-heading h1 { margin: 0; font-size: clamp(30px, 3.4vw, 42px); font-weight: 680; line-height: 1.1; letter-spacing: -.045em; }
.detail-byline { margin: 9px 0 0; color: var(--ink-muted); font-size: 14px; }
.detail-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; padding-top: 36px; }
.detail-main > section + section { margin-top: 44px; }
.detail-main h2 { margin: 0 0 16px; font-size: 19px; font-weight: 680; letter-spacing: -.02em; }
.detail-summary { max-width: 720px; margin: 0; color: var(--ink); font-size: 18px; line-height: 1.55; }
.long-description { max-width: 720px; margin-top: 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.long-description p { margin: 0 0 12px; }
.text-button { margin-top: 12px; padding: 0; border: 0; background: transparent; color: var(--accent-ink); font-size: 14px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.capability-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.capability { padding: 14px 0; border-bottom: 1px solid var(--line); }
.capability code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; font-weight: 600; }
.capability p { max-width: 720px; margin: 6px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.capability-empty { padding: 14px 0; color: var(--ink-muted); font-size: 14px; }
.release-list { border-top: 1px solid var(--line); }
.release-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.release-heading { display: flex; align-items: center; gap: 10px; }
.release-heading strong { font-size: 15px; }
.release-date { margin-left: auto; color: var(--ink-muted); font-size: 13px; }
.status { padding: 3px 7px; border-radius: 5px; font-size: 11px; font-weight: 650; }
.status-published { background: var(--accent-soft); color: var(--accent-ink); }
.status-deprecated { background: #fbf2e1; color: #7b5a20; }
.status-revoked { background: #fbe9e7; color: #8b2f25; }
.release-changelog { margin: 8px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.release-meta { margin: 6px 0 0; color: var(--ink-muted); font-size: 12px; }
.detail-aside { position: sticky; top: calc(var(--topbar-height) + 24px); align-self: start; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts dt { padding-top: 12px; color: var(--ink-muted); font-size: 12px; }
.facts dd { margin: 3px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 560; overflow-wrap: anywhere; }
.docs-link { margin-top: 18px; display: inline-flex; gap: 8px; font-size: 14px; font-weight: 650; text-underline-offset: 4px; }
.install-note { margin-top: 24px; padding: 18px; border-radius: 12px; background: var(--surface-soft); }
.install-note strong { font-size: 14px; }
.install-note p { margin: 8px 0 12px; color: var(--ink-soft); font-size: 13px; line-height: 1.55; }
.install-path { color: var(--accent-ink); font-size: 12px; font-weight: 650; }

.site-footer { max-width: 1320px; margin: auto; padding: 26px 32px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 12px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; min-height: 0; }
  .directory-body { grid-template-columns: 190px minmax(0, 1fr); gap: 24px; }
  .detail-body { grid-template-columns: 1fr; gap: 40px; }
  .detail-aside { position: static; }
}
@media (max-width: 620px) {
  :root { --topbar-height: 112px; }
  .topbar-inner { height: auto; padding: 14px 16px; flex-wrap: wrap; gap: 12px; }
  .search { order: 3; width: 100%; margin: 0; }
  .language-switch { margin-left: auto; }
  .featured-strip-inner { padding: 0 16px; }
  .featured-strip-label { display: none; }
  .hero-inner, .directory, .detail { padding-left: 16px; padding-right: 16px; }
  .hero-inner { padding-top: 44px; padding-bottom: 44px; }
  .directory-body { display: block; }
  .category-nav { position: static; display: flex; margin-bottom: 18px; overflow-x: auto; }
  .category-button { width: auto; flex: none; white-space: nowrap; }
  .detail-header { align-items: flex-start; }
  .plugin-icon-lg { width: 60px; height: 60px; font-size: 22px; }
  .site-footer { padding: 22px 16px 32px; flex-direction: column; }
}
.site-footer [data-i18n="trademarks"] { flex-basis: 100%; }

/* MCP entries: a badge on rows and the detail title, a filter between plugins and MCP servers. */
.kind-filter { margin-top: 18px; display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.kind-button { padding: 7px 12px; display: inline-flex; align-items: baseline; gap: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-soft); font-size: 13px; }
.kind-button:hover { color: var(--ink); }
.kind-button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgb(23 33 36 / .08); }
.directory-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.kind-badge { padding: 2px 6px; border: 1px solid #b9cdea; border-radius: 5px; background: #eef3fb; color: #23436f; font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.directory-row:hover .kind-badge { text-decoration: none; }
.detail-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.kind-badge-lg { font-size: 11.5px; padding: 3px 8px; }
.setup-steps { max-width: 720px; color: var(--ink); font-size: 15px; line-height: 1.65; }
.setup-steps p { margin: 0 0 12px; white-space: pre-line; }
.endpoint, .auth-item { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.endpoint strong, .auth-item strong { font-size: 14px; }
.endpoint code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.auth-item p { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.auth-scopes code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; }
.docs-button { margin-bottom: 22px; padding: 13px 16px; display: flex; justify-content: space-between; gap: 10px; border-radius: 10px; background: var(--night); color: #fff; font-size: 14px; font-weight: 650; text-decoration: none; }
.docs-button:hover { background: var(--night-raised); text-decoration: underline; text-underline-offset: 4px; }

/* Generated pages (scripts/lib/storefront.mjs): links where the original storefront has buttons. */
.language-switch a { padding: 7px 9px; border-radius: 6px; color: var(--ink-muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.language-switch a[aria-current="page"] { background: var(--surface-soft); color: var(--ink); }
a.directory-row, a.featured-chip { color: inherit; text-decoration: none; }
a.featured-row { text-decoration: none; }
.description-more > summary { display: inline-block; list-style: none; cursor: pointer; }
.description-more > summary::-webkit-details-marker { display: none; }
.description-more[open] .when-closed, .description-more:not([open]) .when-open { display: none; }
.description-more[open] > summary { margin-top: 0; }
.release-note { margin: 0 0 12px; color: #7b5a20; font-size: 14px; }
.not-found section + section { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.not-found h1 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); font-weight: 680; letter-spacing: -.045em; }
.not-found p { margin: 0 0 16px; color: var(--ink-soft); }
