.catalog-page {
  --tint: #f6f3c7;
  --accent: var(--ink);
  --accent-strong: #080906;
}
.catalog-intro {background: var(--intro-gradient) center bottom / 100% calc(100% + var(--header-height, 92px)) no-repeat; padding-block: clamp(2.7rem, 5vw, 5.5rem)}
.catalog-intro h1 {max-width: 23ch; font-weight: 500; font-size: clamp(1.65rem, 4vw, 4rem); line-height: 1.15; text-wrap: balance}
.catalog-intro p {max-width: 58ch; margin: 1.1rem 0 .55rem; font-size: clamp(1rem, 1.25vw, 1.16rem); line-height: 1.55}
.catalog-page select, .catalog-page input {font: inherit; color: inherit}
.catalog-page select {cursor: pointer}
.catalog-page [hidden] {display: none !important}
.symbol-bank {position: absolute; width: 0; height: 0; overflow: hidden}
.visually-hidden {position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0}
.catalog-page .icon {display: block; width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round}
.registry { margin-block: clamp(1.7rem, 3vw, 3.2rem) 4rem; scroll-margin-top: 20px; }
.toolbar { display: grid; grid-template-columns: minmax(0,1fr) minmax(177px, .32fr) minmax(175px,.29fr); gap: 10px; }
.search-field, .select-field {
  position: relative; min-width: 0; display: flex; align-items: center; border: 1px solid var(--line);
  border-radius: 10px; height: 46px; background: #fffefa;
}
.search-field { padding-inline: 15px 12px; gap: 10px; }
.search-field > .icon { color: var(--muted); width: 19px; height: 19px; }
.search-field input { flex: 1; min-width: 0; height: 100%; padding: 0; background: transparent; border: 0; outline: none; font-size: .96rem; }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field:focus-within, .select-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #27251b24; }
kbd { display: grid; place-content: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #f1f0e6; font: 13px/1 "IBM Plex Mono", ui-monospace, monospace; }
.field-clear { border: 0; background: #f1f0e6; border-radius: 4px; padding: 4px; color: var(--muted); }
.field-clear .icon { width: 15px; height: 15px; }
.select-field:hover { border-color: var(--ink); }
.select-field select, .sort-field select { width: 100%; background: transparent; appearance: none; -webkit-appearance: none; border: 0; text-overflow: ellipsis; }
.select-field select { border-radius: 9px; height: 100%; padding: 0 34px 0 40px; font-size: .92rem; }
.select-icon, .chevron { pointer-events: none; }
.select-field .select-icon { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--muted); }
.select-field .chevron, .sort-field .chevron { position: absolute; right: 12px; width: 15px; height: 15px; color: var(--muted); }
.select-field.active { background: var(--tint); border-color: var(--ink); }
.result-heading, .heading-start, .heading-end { display: flex; align-items: center; }
.result-heading { min-height: 44px; justify-content: space-between; gap: 18px; margin: 23px 0 10px; }
.heading-start { gap: 10px; min-width: 0; }
.heading-start h2 { margin: 0; font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 650; line-height: 1.2; }
.count { padding: 3px 8px; line-height: 1.15; font-size: .82rem; font-weight: 600; color: var(--muted); background: #f1f0e6; border-radius: 6px; font-variant-numeric: tabular-nums; }
.heading-end { gap: 14px; flex: none; }
.text-button { padding: 5px 4px; border: 0; background: transparent; font-size: .88rem; color: var(--accent); }
.text-button:hover { text-decoration: underline; text-underline-offset: 2px; }
.sort-field { display: flex; align-items: center; position: relative; }
.sort-field .select-icon { position: absolute; left: 0; width: 17px; height: 17px; color: var(--muted); }
.sort-field .chevron { right: 0; width: 13px; height: 13px; }
.sort-field select { padding: 7px 19px 7px 24px; font-size: .875rem; color: var(--muted); border-radius: 4px; }
.server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 1120px) { .server-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.category-groups { display: grid; gap: clamp(28px, 3vw, 42px); }
.category-section { min-width: 0; }
.category-heading { margin: 0 0 12px; color: var(--ink); font-size: clamp(1.12rem, 1.65vw, 1.4rem); line-height: 1.25; font-weight: 600; }
.category-heading:has(+ .category-subtitle) { margin-bottom: 4px; }
.category-subtitle { margin: 0 0 15px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.retail-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 16px; padding: 18px 20px; border-radius: 12px; background: var(--tint); }
.retail-callout > div { flex: 1 1 34rem; }
.retail-callout h4 { margin: 0 0 5px; font-size: 1.08rem; line-height: 1.3; }
.retail-callout p { margin: 0; max-width: 80ch; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.server-card {
  display: flex; flex-direction: column; align-items: stretch; min-width: 0; min-height: 180px; padding: 20px 21px 16px;
  border: 1px solid var(--line); border-radius: 13px; background: #fffefa; text-align: left; color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
@media (hover: hover) { .server-card:hover { transform: translateY(-2px); border-color: var(--ink); box-shadow: 0 5px 15px #20211e12; } }
.card-top { display: flex; gap: 13px; align-items: center; min-width: 0; }
.logo { display: block; width: 44px; height: 44px; flex: none; object-fit: contain; }
.logo.wide-logo { width: 84px; object-position: left center; }
.card-title { font-size: 1rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.card-identity { display: grid; gap: 4px; min-width: 0; }
.public-endpoint { display: inline-flex; align-items: center; gap: 6px; color: #236647; font-size: .84rem; line-height: 1.25; }
.public-endpoint::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #228156; }
.card-description { margin-top: 14px; color: var(--muted); font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.auth-meta { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; padding-top: 12px; color: var(--muted); font-size: .79rem; line-height: 1.3; }
.auth-meta .icon { width: 13px; height: 13px; stroke-width: 1.65; }
.tag { display: inline-block; max-width: 100%; border-radius: 5px; padding: 4px 7px; background: #f1f0e6; color: var(--muted); font-size: .775rem; line-height: 1.2; font-weight: 500; }
.empty-state { min-height: 190px; display: grid; align-content: center; justify-items: center; padding: 30px; text-align: center; background: white; border: 1px dashed var(--line); border-radius: 13px; }
.empty-state p { margin: 5px 0; color: var(--muted); line-height: 1.45; }
.empty-state h3 { margin: 12px 0 0; font-size: 1.2rem; }
.empty-state > .icon { width: 26px; height: 26px; color: var(--muted); }
.empty-state button { margin-top: 10px; }
html:has(.drawer[open]) { overflow: hidden; }
.drawer { position: fixed; inset: 0 0 0 auto; border-radius: 0; margin: 0; border: 0; padding: 0; width: min(510px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; color: var(--ink); background: #fffefa; box-shadow: -12px 0 55px #27251b24; }
.drawer[open] { animation: drawer-in .22s ease-out; }
.drawer::backdrop { background: #20211e66; }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.drawer-inner { position: relative; min-height: 100%; padding: 36px 31px 48px; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; background: #f1f0e6; border: 0; border-radius: 8px; color: var(--muted); }
.icon-button:hover { background: #f1f0e6; }
.close-drawer { position: absolute; top: 20px; right: 20px; }
.detail-logo { width: 64px; height: 64px; margin-bottom: 17px; }
.detail-logo.wide-logo { width: 128px; height: auto; max-height: 64px; }
.drawer h2 { margin: 0; padding-right: 25px; font-size: 2rem; line-height: 1.11; overflow-wrap: anywhere; }
.detail-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 12px; }
.detail-desc { margin: 21px 0 0; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.detail-desc + .detail-desc { margin-top: 12px; }
.product-variants { margin-top: 24px; }
.server-variant { padding-top: 24px; border-top: 1px solid var(--line); }
.server-variant + .server-variant { margin-top: 28px; }
.variant-title { margin: 0; scroll-margin-top: 18px; color: var(--ink); font-size: 1.35rem; line-height: 1.3; overflow-wrap: anywhere; }
.server-variant > .detail-desc:first-of-type { margin-top: 10px; }
.detail-links { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 14px; }
.detail-links a { display: inline-flex; align-items: baseline; gap: 7px; font-size: .93rem; font-weight: 550; color: var(--accent); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.detail-links a:hover { color: var(--accent-strong); }
.detail-links .icon { width: 14px; height: 14px; align-self: center; }
.integration-cta { display: grid; justify-items: start; gap: 10px; margin-top: 28px; padding: 20px; border-radius: 12px; background: var(--tint); }
.integration-cta h3 { margin: 0; font-size: 1.16rem; line-height: 1.3; }
.integration-cta p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.integration-cta a, .retail-callout a { display: inline-block; border-radius: 100px; padding: 10px 17px; color: #fff; background: var(--accent); font-size: .93rem; font-weight: 600; text-decoration: none; }
.integration-cta a { margin-top: 4px; }
.integration-cta a:hover, .retail-callout a:hover { background: var(--accent-strong); }
.connection-section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.connection-title { margin: 0 0 17px; font-size: 1.22rem; }
.connection + .connection { margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); }
.server-variant .connection-section { margin-top: 20px; padding-top: 0; border-top: 0; }
.server-variant .connection-title { font-size: 1.04rem; }
.connection h4, .connection h5 { margin: 0 0 12px; font-size: .94rem; }
.connection dl { margin: 0; }
.field-row { margin-block: 13px; }
.field-row dt { color: var(--muted); font-size: .85rem; line-height: 1.4; }
.field-row dd { margin: 4px 0 0; font-size: .97rem; line-height: 1.5; overflow-wrap: anywhere; }
.endpoint-box { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 9px 10px 9px 12px; border: 1px solid var(--line); background: #f1f0e6; border-radius: 8px; }
.endpoint-box code { align-self: center; word-break: break-all; }
.endpoint-box .icon-button { width: 28px; height: 28px; border: 1px solid var(--line); background: white; flex: none; }
.endpoint-box .icon { width: 15px; height: 15px; }
.endpoint-box [data-copied] { color: #236647; }
code { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; }
.header-value { display: block; margin-bottom: 4px; border-radius: 5px; padding: 6px 8px; background: #f1f0e6; overflow-wrap: anywhere; white-space: pre-wrap; }
.unknown { color: var(--muted); }
@media (max-width: 1050px) {
  .server-card { padding: 17px 16px 15px; }
  .card-top { gap: 10px; }
}
@media (max-width: 850px) {
  .server-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { grid-template-columns: minmax(0, 1fr) minmax(145px, .42fr) minmax(146px, .42fr); }
}
@media (max-width: 680px) {
  .registry { margin-top: 16px; }
  .toolbar { grid-template-columns: 1fr 1fr; gap: 8px; }
  .search-field { grid-column: 1/-1; }
  .result-heading { margin: 16px 0 9px; }
  .sort-field select { font-size: .8rem; }
  .server-grid { gap: 10px; }
  .server-card { min-height: 178px; }
  .card-top { gap: 9px; }
  .logo { width: 38px; height: 38px; }
  .detail-logo { height: 58px; width: 58px; }
  .heading-end { gap: 7px; }
}
@media (max-width: 550px) {
  .server-grid { grid-template-columns: minmax(0, 1fr); }
  .server-card { min-height: 155px; padding: 17px 18px 15px; }
  .card-description { margin-top: 12px; }
  .heading-start { gap: 6px; }
  .sort-field .select-icon { display: none; }
  .sort-field select { padding-left: 2px; }
  .drawer-inner { padding: 32px 22px 40px; }
}
@media (max-width: 385px) {
  .select-field .select-icon { display: none; }
  .select-field select { padding-left: 13px; }
  .result-heading { flex-wrap: wrap; gap: 4px; }
  .sort-field select { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.mcp-term {white-space: nowrap}
.record-crumbs {display: flex; flex-wrap: wrap; gap: .6rem; color: var(--muted); margin-bottom: 1.7rem}
.record-crumbs a, .record-sources a, .variant-link strong {text-decoration: underline; text-underline-offset: .2em}
.record-title {display: flex; align-items: center; gap: clamp(.8rem, 1.8vw, 1.6rem)}
.record-title h1 {max-width: 26ch; overflow-wrap: anywhere}
.record-logo {object-fit: contain; flex: none; max-width: 100%}
.record-content {width: min(100%, 52rem); padding-block: clamp(2rem, 5vw, 4.5rem); line-height: 1.6}
.record-content h2 {font-size: clamp(1.35rem, 2.4vw, 2.15rem); line-height: 1.22}
.record-content h3 {font-size: clamp(1.03rem, 1.55vw, 1.42rem); margin-block: 1.5rem .8rem; line-height: 1.35}
.record-content > p {font-size: clamp(1rem, 1.3vw, 1.16rem); margin-bottom: 1rem}
.record-section {margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.5rem}
.record-section h2 {margin-bottom: 1rem}
.record-fields {margin: 0}
.record-fields .field-row {display: grid; grid-template-columns: minmax(9rem, 28%) minmax(0, 1fr); align-items: baseline; margin: 0; padding-block: .7rem; border-bottom: 1px solid var(--line)}
.record-fields .field-row dd {margin: 0}
.record-sources {display: flex; gap: .45rem 1.25rem; flex-wrap: wrap; margin-block: 1.25rem}
.copy-endpoint {flex: none; background: #fffefa; border: 1px solid var(--line); border-radius: .5rem; font: 600 .78rem/1.4 Manrope,sans-serif; padding: .3rem .6rem}
.variant-link {display: grid; gap: .4rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line)}
.variant-link strong {font-size: 1.13rem}
.variant-link span {color: var(--muted)}
.record-offer {margin-top: 2.5rem; padding: clamp(1.25rem, 2.5vw, 2rem); border-radius: 1rem; background: var(--tint)}
.record-offer p {margin: .8rem 0 1rem}
@media (max-width: 620px) {
  .record-fields .field-row {grid-template-columns: minmax(0, 1fr); gap: .4rem}
  .record-title {flex-direction: column; align-items: flex-start}
  .endpoint-box {flex-wrap: wrap}
  .endpoint-box code {min-width: 0; max-width: 100%}
}

html.can-copy-endpoint .catalog-page .copy-endpoint[hidden] {display: inline-block !important}
html:has(.mcp-drawer[open]) {overflow: hidden; scrollbar-gutter: stable}
.catalog-underlay {min-height: 100vh; background: var(--paper)}
.mcp-drawer {
  position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
  width: min(510px, 100%); height: 100dvh; max-width: 100%; max-height: 100dvh;
  overflow: hidden; border-radius: 1.35rem 0 0 1.35rem; background: #fffefa;
  color: var(--ink); box-shadow: -12px 0 60px rgb(30 31 20 / .16);
}
.mcp-drawer::backdrop {background: rgb(32 33 30 / .34)}
.mcp-drawer[open] {animation: mcp-slide-in .28s cubic-bezier(.22,.8,.25,1)}
.mcp-drawer[open]::backdrop {animation: mcp-shade-in .22s ease-out}
@keyframes mcp-slide-in {from {transform: translateX(100%)} to {transform: none}}
@keyframes mcp-shade-in {from {opacity: 0} to {opacity: 1}}
.drawer-scroll {height: 100%; overflow-y: auto; overscroll-behavior: contain}
.drawer-controls {position: sticky; top: .85rem; z-index: 1; height: 0; display: flex; justify-content: flex-end; padding-right: 1rem; pointer-events: none}
.drawer-close {pointer-events: auto; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fffefa; color: var(--ink)}
.drawer-close:hover {background: #f7f5c6}
.drawer-close svg {width: 1.2rem; height: 1.2rem; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round}
.mcp-drawer .wrap {padding-inline: 31px}
.mcp-drawer .catalog-intro {padding-block: 1.7rem 2rem}
.mcp-drawer .record-crumbs {margin: 0 2.6rem 1.6rem 0; font-size: .9rem}
.mcp-drawer .record-title {align-items: flex-start; flex-direction: column; gap: .8rem}
.mcp-drawer .record-title h1 {font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2}
.mcp-drawer .record-content {padding-block: 1.55rem 3rem}
.mcp-drawer .record-content h2 {font-size: clamp(1.22rem, 2.15vw, 1.6rem)}
.mcp-drawer .record-fields .field-row {grid-template-columns: minmax(0, 1fr); gap: .4rem}
.mcp-drawer .endpoint-box {flex-wrap: wrap}
.mcp-drawer .endpoint-box code {min-width: 0; max-width: 100%}
@media (max-width: 550px) {.mcp-drawer .wrap {padding-inline: 22px}}
@media (max-width: 510px) {.mcp-drawer {border-radius: 0}}
@media (prefers-reduced-motion: reduce) {.mcp-drawer[open], .mcp-drawer[open]::backdrop {animation: none}}

.record-content .server-variant {padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--line)}
.record-content .variant-title {font-size: 1.35rem; line-height: 1.3; margin: 0 0 .65rem; padding-right: 1.9rem}
.variant-title a:hover {text-decoration: underline; text-underline-offset: .2em}
.server-variant .record-description {margin: .65rem 0; line-height: 1.55}
.server-variant .record-section {margin-top: 1.25rem; padding-top: 0; border-top: 0}
.server-variant .record-section h3 {margin: 0 0 .65rem; font-size: 1.04rem}
.server-variant .record-section h4 {margin: 1rem 0 .4rem; font-size: .97rem}

.server-card.gaff-card { background: #fff6a8; }

/* Keep the last two cards together if GAFF would start a row on its own. */
@media (550px < width <= 850px) {
  .server-card:nth-child(2n):has(+ .gaff-card) { grid-column-start: 1; }
}
@media (850px < width < 1120px) {
  .server-card:nth-child(3n):has(+ .gaff-card) { grid-column-start: 1; }
}
@media (min-width: 1120px) {
  .server-card:nth-child(4n):has(+ .gaff-card) { grid-column-start: 1; }
}
