/* Infolake: the connector catalogue, drawn in the app's own design language (its colour tokens,
   Geist, its card, badge, filter and search components) at an illustration's scale: the logos
   and names large enough to read when the window is shown small. Names, categories and logos
   are the app's own (its connector catalogue; kit/marks/). */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../../kit/fonts/geist-400.woff2) format("woff2"); }

/* The app's light theme. */
:root {
	--background: #fff;
	--foreground: #0a0a0a;
	--card: #fff;
	--primary: #171717;
	--primary-foreground: #fafafa;
	--secondary: #f5f5f5;
	--muted: #f5f5f5;
	--muted-foreground: #737373;
	--accent: #f5f5f5;
	--border: #e5e5e5;
	--input: #e5e5e5;
}

*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: "Geist", ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, p, ul { margin: 0; padding: 0; }

.infolake { max-width: 1208px; margin: 0 auto; padding: 52px 24px 130px; }

/* ---------- Title, search ---------- */
.infolake-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.infolake-head h1 { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -0.035em; }
.infolake-head p { margin-top: 12px; font-size: 17px; line-height: 24px; color: var(--muted-foreground); }
.search { display: flex; align-items: center; gap: 10px; width: 340px; height: 46px; padding: 0 16px; border: 1px solid var(--input); border-radius: 12px; font-size: 16px; color: var(--muted-foreground); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
.search svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Category filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.filter { display: flex; align-items: center; height: 34px; padding: 0 15px; border: 1px solid var(--border); border-radius: 9999px; font-size: 14px; color: var(--muted-foreground); white-space: nowrap; }
.filter.is-on { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

/* ---------- Connectors ---------- */
.connectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 26px; list-style: none; }
.connector { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 152px; padding: 22px 22px 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); transition: border-color 150ms, box-shadow 150ms, translate 150ms; }
.connector:hover { border-color: color-mix(in oklab, var(--primary) 22%, var(--border)); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 24px -10px rgb(0 0 0 / 0.14); translate: 0 -1px; }
.connector-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.connector-mark { display: block; width: 56px; height: 56px; object-fit: contain; object-position: left center; }
.connector-kind { flex: none; padding: 4px 10px; border-radius: 9999px; background: var(--secondary); font-size: 12px; line-height: 16px; color: var(--muted-foreground); white-space: nowrap; }
.connector-name { font-size: 19px; font-weight: 600; line-height: 24px; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- In the frame ---------- */
/* This screen is the one the sidebar's Infolake item opens. */
.framed .rail-item.is-here { border-radius: 10px; background: var(--accent); box-shadow: 0 0 0 7px var(--accent); color: var(--foreground); }
/* The last row in view dissolves into the page, so the eye reads "and more below". The fade is
   on the window, not the page: it stays put while the connectors scroll under it. */
.framed .window-view { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 104px), transparent calc(100% - 6px)); mask-image: linear-gradient(to bottom, #000 calc(100% - 104px), transparent calc(100% - 6px)); }
