/* ============================================================
   PLATFORM TABS — /mcp «Cross-platform by design» (site/src/components/PlatformTabs.astro, MAR-157, 11.11.2026,
   Figma 1241:6205). From 992: square tabs in the grid's first column, one card in the other eleven (its inside on
   the page grid: subgrid — the left part on columns 2–6, the right on 7–12). Up to 991: a gallery of the cards.
   Requires: tokens.css, surface.css (.card), patterns.css (.badge), gallery.css
   ============================================================ */

.platform-tabs__list { display: none; }
.platform-tabs__panel { position: relative; display: flex; flex-direction: column; gap: var(--space); } /* positioned: its visually-hidden H3 stays in the slide, not off the page's edge */
.platform-tabs__head { display: flex; flex-direction: column; gap: var(--space); }
.platform-tabs__text { margin: 0; color: var(--color-text-grey-on-grey); }

/* the drawn title: the Birch MCP logo over «for» + the platform's name on its brand colour (H2 size, the mock's
   logo 80 at the 52 type in em; the plate's padding on the spacing scale) */
.platform-tabs__title { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); margin: 0; } /* the logo and the plate a step closer (review 11.11.2026) */
.platform-tabs__logo { display: block; width: auto; height: 1.54em; }
.platform-tabs__for { display: flex; align-items: center; gap: var(--space-xs); line-height: 1; }
.platform-tabs__name { padding: var(--space-xxs) var(--space-sm); background: var(--brand); color: var(--color-text-inverted); line-height: 1; }
@media (min-width: 62rem) { .platform-tabs__name { padding: var(--space-xs) var(--space); } } /* the mock: 10 / 24 at the 52 type */

/* «Try asking»: the example question on a surface one step off the card */
.platform-tabs__prompt { display: flex; flex-direction: column; margin-top: auto; /* on the card's bottom: the slides of the gallery are one height */ gap: var(--space-sm); padding: var(--space-sm); border-radius: var(--radius-sm); background: var(--color-bg-grey-inset); }
.platform-tabs__prompt-label { margin: 0; color: var(--color-text-grey-on-grey); }
.platform-tabs__prompt-text { margin: 0; color: var(--color-text); }

@media (min-width: 62rem) {
  /* the tabs: square, the grid column wide; the open one white, the others the card's grey with the bare mark */
  .platform-tabs__list { display: flex; flex-direction: column; gap: var(--space-xs); grid-column: 1; grid-row: 1; }
  .platform-tabs__tab {
    display: block; width: 100%; aspect-ratio: 1; padding: var(--space-xs); border: 0; border-radius: var(--radius-lg);
    background: var(--color-bg-grey); cursor: pointer; transition: background-color var(--duration-hover) var(--ease-hover);
  }
  .platform-tabs__tab[aria-selected="true"] { background: var(--color-bg-white); }
  @media (hover: hover) { .platform-tabs__tab[aria-selected="false"]:hover { background: color-mix(in oklab, var(--color-bg-grey), var(--color-text) 8%); } }
  .platform-tabs__tab:focus-visible { outline: var(--border-thick) solid var(--color-accent-indigo); outline-offset: var(--border-thin); }
  .platform-tabs__mark, .platform-tabs__mark svg { display: block; width: 100%; height: 100%; }

  /* the card: only the open one, on the row the tab column sets (so its height never changes between platforms) */
  .platform-tabs__panel { display: none; grid-column: 2 / -1; grid-row: 1; }
  .platform-tabs__panel.is-active {
    display: grid; grid-template-columns: subgrid; grid-template-rows: 1fr auto; row-gap: var(--space-lg);
  }
  .platform-tabs__head { grid-column: 1 / 6; grid-row: 1 / 3; justify-content: space-between; gap: var(--space-lg); }
  .platform-tabs__text { grid-column: 6 / -1; grid-row: 1; }
  .platform-tabs__prompt { grid-column: 6 / -1; grid-row: 2; align-self: end; }
}
