/* Integrations + MCP + IT Leader lists, v2 (owner: builder "int-v2"; CHANGES-V2 #18-21, #23).
   Loaded after solutions.css / who.css on /solutions/integrations/, /solutions/mcp/ and /who-are-you/it-leaders/ only.
   Adds the MCP use-case prompt cards and aligns a few off-scale text styles on these pages to the concept 3 scale
   (40 / 32 / 24 / 20 / 18 / 16 / 14, -2% tracking). Does not change solutions.css or who.css. */

/* ---------- Integrations catalog: type scale ---------- */
/* Group titles were 28px (off-scale): use Heading/lg. Sidebar links were 15px: use Body/md. */
.page-solutions-integrations .int-group__title { font-size: 32px; line-height: 1.3; font-weight: 600; }
.page-solutions-integrations .int-nav a { font-size: 16px; line-height: 1.5; }
.page-solutions-integrations .int-nav a span { font-size: 14px; line-height: 1.5; }
/* Text tiles (no logo file yet) kept -0.01em tracking; the system is -2% everywhere. */
.int-card__logo--text { letter-spacing: var(--track); }

/* Line under a category ("And more on the way!", "Works with any AI tool that supports MCP.") */
.int-group__more { line-height: 1.5; }
.int-group__more a,
.who-int__more a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: 3px; transition: opacity .15s; }
.int-group__more a:hover,
.who-int__more a:hover { opacity: .75; }

/* ---------- IT Leader integration lists (mirror of the catalog: 9 groups, 3 x 3) ---------- */
.page-who-it .who-int__group h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.page-who-it .who-int__more { margin-top: auto; padding-top: 4px; font-size: 14px; line-height: 1.5; }
/* Off-scale text on the rest of the IT page: 15px step copy -> Body/md, stat value line-height -> Heading/lg. */
.page-who-it .who-rollout span { font-size: 16px; line-height: 1.5; }
.page-who-it .who-stat__value { line-height: 1.3; }

/* ---------- MCP use cases (prompt cards grouped by role) ---------- */
.mcp-cases { display: flex; flex-direction: column; }
.mcp-cases__role {
  display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start;
  padding-block: 40px; border-top: 1px solid rgba(10, 10, 10, .14);
}
.mcp-cases__role:first-child { padding-top: 0; border-top: 0; }
.mcp-cases__role:last-child { padding-bottom: 0; }
.mcp-cases__head { display: flex; flex-direction: column; gap: 12px; }
.mcp-cases__icon {
  width: 48px; height: 48px; margin-bottom: 4px; border-radius: 12px;
  display: grid; place-items: center; background: var(--black); color: var(--lime);
}
.mcp-cases__head h3 { font-size: 24px; line-height: 1.4; font-weight: 600; }
.mcp-cases__head p { font-size: 16px; line-height: 1.5; color: var(--n800); }
.mcp-cases__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* One prompt card: what you ask (chat bubble, as in the hero chat) and what Lendware returns */
.mcp-prompt {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  border-radius: var(--radius-md); background: var(--black); border: 1px solid var(--black); color: var(--white);   /* review v2: #0a0a0a on lime, as site-wide */
}
.mcp-prompt__q {
  align-self: flex-end; max-width: 100%; padding: 12px 16px; border-radius: 12px 12px 4px 12px;
  background: var(--lime-200); color: var(--black); font-size: 16px; line-height: 1.5; font-weight: 500;
}
.mcp-prompt__label {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--n400);
}
.mcp-prompt__label .sol-icon { width: 16px; height: 16px; color: var(--lime); }
.mcp-prompt__a { font-size: 16px; line-height: 1.5; color: var(--n300); }
/* Line up the bubble, label and answer across each row of cards */
@supports (grid-template-rows: subgrid) {
  .mcp-prompt { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; align-content: start; }
  .mcp-prompt__q { justify-self: end; align-self: start; }
  .mcp-prompt__label { align-self: end; }
}
.mcp-cases__note { margin-top: 48px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--n800); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .mcp-cases__role { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 1024px) {
  .page-solutions-integrations .int-nav a { font-size: 14px; }
  /* 2-column lists: let the last of 9 groups span the row instead of leaving a gap */
  .page-who-it .who-int > .who-int__group:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mcp-cases__role { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mcp-cases__head { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; align-items: center; }
  .mcp-cases__icon { grid-row: span 2; margin-bottom: 0; }
  .mcp-cases__head h3 { font-size: 20px; }
}
@media (max-width: 768px) {
  .page-solutions-integrations .int-group__title { font-size: 26px; }
  .page-who-it .who-int > .who-int__group:last-child:nth-child(odd) { grid-column: auto; }
  .page-who-it .who-int__group h3 { font-size: 18px; }
  .mcp-cases__role { padding-block: 32px; }
  .mcp-cases__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mcp-prompt { padding: 20px; }
  .mcp-cases__note { margin-top: 32px; }
}
