/* integrations.html (11 Nov 2026): "All integrations" under the featured
   cards. Category chips; in each, the native Askpilot integrations, then
   MCP integrations, and "View all" to that category of the directory
   (/docs/mcp-servers.html#<id>). Generated by tools/build-mcp-servers-page.py
   between the int-list markers; js/int-list.js switches the chips. The
   tiles match the directory's (logo, name, one line). */

/* the page header: left-aligned on the list's edge */
.il-hero { max-width: 1136px; margin: 0 auto; text-align: left; }
.il-hero h1 { margin: 0; max-width: 860px; font-size: clamp(2.25rem, 5.2vw, 4.25rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; color: #16121A; text-wrap: balance; }
.il-hero p { margin: 16px 0 0; max-width: 640px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: #4E4854; }
.il-hero-cta { margin-top: 26px; }

.il { max-width: 1136px; margin: 48px auto 0; text-align: left; }
.il-head { margin: 0 0 18px; }
/* the category menu down the left, as in the docs directory (Dom, 11 Nov 2026) */
.il-dir { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 40px; align-items: start; }
.il-side { position: sticky; top: 96px; }
.il-fh { margin: 0 0 8px; padding-left: 10px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #8B8492; }
.il-chips { display: grid; gap: 2px; }
.il-chip {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; text-align: left;
    font: inherit; font-size: 0.9375rem; font-weight: 500; color: #4E4854; cursor: pointer; transition: background .15s, color .15s;
}
.il-chip small { font-size: 0.75rem; font-weight: 600; color: #8B8492; font-variant-numeric: tabular-nums; }
.il-chip:hover { background: #F4EFED; color: #16121A; }
/* the selected category: a soft grey fill and bold text, as in an app sidebar (Dom, 11 Nov 2026) */
.il-chip.is-on, .il-chip.is-on:hover { background: #EDE6E3; color: #16121A; font-weight: 700; }
.il-chip.is-on small { color: #16121A; }
.il-chip:focus-visible { outline: 2px solid #4C6BEE; outline-offset: 1px; }
.il-main { min-width: 0; }
/* the search, at the top of the list */
.il-search {
    display: flex; align-items: center; gap: 10px; height: 48px; margin: 0 0 26px; padding: 0 14px;
    border: 1px solid #EAE3E1; border-radius: 14px; background: #fff;
}
.il-search:focus-within { border-color: #4C6BEE; box-shadow: 0 0 0 3px rgba(76, 107, 238, 0.16); }
.il-search svg { flex: none; width: 18px; height: 18px; color: #8B8492; }
.il-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 1rem; color: #16121A; }
.il-search input::placeholder { color: #8B8492; }
.il-empty { margin: 0 0 24px; padding: 16px 18px; border: 1px dashed #E2D6DA; border-radius: 14px; font-size: 0.9375rem; color: #4E4854; }
.il-empty a { color: #4C6BEE; font-weight: 600; text-decoration: none; }
.il-part[data-part="native"][hidden] + .il-part[data-part="mcp"] { padding-top: 0; border-top: 0; }
/* native first, then MCP */
.il-part + .il-part { margin-top: 36px; }
.il-part[hidden] + .il-part { margin-top: 0; }
/* each part's header: the title and a line, the count on the right */
.il-sub { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.il-sub-t { flex: 1; min-width: 0; }
.il-sub h3 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: #16121A; }
.il-sub p { margin: 2px 0 0; font-size: 0.9375rem; color: #8B8492; }
.il-part[data-part="mcp"] { padding-top: 32px; border-top: 1px solid #EAE3E1; }
.il-part[hidden] + .il-part[data-part="mcp"] { padding-top: 0; border-top: 0; }
.il-tile[hidden] { display: none; }

/* the featured native integrations (their own page): bigger cards in the brand's tint, first in the native list */
.il-feats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.il-feat {
    flex: 1 1 250px; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 20px;
    border: 1px solid #EAE3E1; border-radius: 20px; color: inherit; text-decoration: none;
    background: linear-gradient(160deg, var(--t) 0%, #fff 70%);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.il-feat:hover { border-color: color-mix(in srgb, var(--a) 35%, #EAE3E1); box-shadow: 0 16px 34px -22px rgba(22, 18, 26, 0.45); transform: translateY(-2px); }
.il-feat:focus-visible { outline: 2px solid #4C6BEE; outline-offset: 2px; }
.il-feat[hidden] { display: none; }
.il-feat-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.il-feat .il-logo { width: 52px; height: 52px; border-radius: 14px; }
.il-feat .il-logo img { width: 32px; height: 32px; }
.il-feat-badge {
    padding: 3px 10px; border-radius: 999px; background: var(--a); color: #fff;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.il-feat-k { margin-top: 16px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--a); }
.il-feat-n { margin-top: 4px; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; color: #16121A; }
.il-feat-p { margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; color: #4E4854; }
.il-feat-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-size: 0.875rem; font-weight: 650; color: var(--a); }
.il-feat-link svg { width: 14px; height: 14px; transition: transform .15s; }
.il-feat:hover .il-feat-link svg { transform: translateX(3px); }
.il-head h2 { margin: 0; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; color: #16121A; }
.il-head p { margin: 6px 0 0; max-width: 680px; font-size: 1.0625rem; line-height: 1.55; color: #4E4854; }

.il-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.il-tile {
    display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px;
    border: 1px solid #EAE3E1; border-radius: 16px; background: #fff; color: inherit; text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.il-tile:hover { border-color: #D9CFD6; box-shadow: 0 14px 30px -20px rgba(22, 18, 26, 0.4); transform: translateY(-2px); }
.il-tile:focus-visible { outline: 2px solid #4C6BEE; outline-offset: 2px; }
.il-logo {
    flex: none; display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid #EAE3E1; border-radius: 12px; background: #fff; overflow: hidden;
}
.il-logo img { width: 28px; height: 28px; object-fit: contain; }
.il-logo--brand { border-color: transparent; background: var(--b); }
.il-logo--brand img { width: 22px; height: 22px; }
.il-logo--l { border-color: transparent; background: var(--t); font-size: 0.9375rem; font-weight: 800; letter-spacing: -0.02em; color: #2B2430; }
.il-logo--any { border-color: transparent; background: linear-gradient(135deg, #FFF3FF 0%, #EEF3FF 100%); color: #D53BD5; }
.il-logo--any svg { width: 24px; height: 24px; }
.il-t { display: grid; gap: 2px; min-width: 0; }
.il-t b { font-size: 1rem; font-weight: 650; line-height: 1.3; color: #16121A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.il-t small { font-size: 0.8125rem; line-height: 1.4; color: #8B8492; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.il-tile--any { border-style: dashed; border-color: #E2C9E7; background: #FFFBFF; }

.il-all {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 12px 20px;
    border: 1px solid #16121A; border-radius: 999px; background: #16121A; color: #fff;
    font-size: 0.9375rem; font-weight: 600; text-decoration: none; transition: opacity .15s;
}
.il-all:hover { opacity: .88; }
.il-all svg { width: 16px; height: 16px; }

@media (max-width: 960px) {
    .il-dir { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .il-side { position: static; }
    .il-fh { display: none; }
    .il-chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
    .il-chips::-webkit-scrollbar { display: none; }
    .il-chip { flex: none; width: auto; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid #EAE3E1; border-radius: 999px; background: #fff; font-size: 0.875rem; }
    .il-chip.is-on, .il-chip.is-on:hover { border-color: #D9CFCB; background: #EDE6E3; }
}
@media (max-width: 767px) {
    .il { margin-top: 32px; }
    .il-hero p { margin-top: 12px; }
    .il-hero-cta { margin-top: 20px; }
    .il-head h2 { font-size: 1.375rem; }
    .il-head p { font-size: 0.9375rem; }
    .il-sub { align-items: flex-start; gap: 12px; }
    .il-sub h3 { font-size: 1.125rem; }
    .il-sub p { font-size: 0.875rem; }
    .il-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .il-tile { gap: 10px; padding: 12px; }
    .il-t b { white-space: normal; overflow-wrap: anywhere; font-size: 0.9375rem; }
    .il-feat { flex-basis: 100%; padding: 14px 16px; }
    .il-feat .il-logo { width: 42px; height: 42px; border-radius: 12px; }
    .il-feat .il-logo img { width: 26px; height: 26px; }
    .il-feat-k { margin-top: 10px; }
    .il-feat-n { font-size: 1.0625rem; }
    .il-feat-p { font-size: 0.875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .il-feat-link { padding-top: 10px; }
    .il-logo { width: 38px; height: 38px; border-radius: 10px; }
    .il-logo img { width: 24px; height: 24px; }
}
@media (max-width: 359px) { .il-grid { grid-template-columns: minmax(0, 1fr); } }
