/* Features hub page (imessage-api/features/): tabbed code panel, effects tile, table caption. Bento tiles and the code card come from features-bento.css and product-page.css. */
.imsg.fx-hub { --pg-hub-gap: clamp(120px, 12vw, 200px); }

/* the bento's last tile: effect names as chips, no drawing */
@media (min-width: 901px) { .arc-concept .imsg .feature-grid.bento > .f-6 { grid-column: span 6; } }
.arc-concept .imsg .feature-grid.bento > .fx-effects { min-height: 0; }
.fx-chips { display: flex; flex-wrap: wrap; gap: .55em; width: 100%; }
.fx-chip {
  padding: .45em .95em; border-radius: 99px; background: var(--fb-chip); color: var(--fb-ink);
  font-size: .95em; font-weight: 500; font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.arc-concept .imsg .feature-grid.bento .fx-effects .feature-media { font-size: clamp(13px, 1.3vw, 17px); place-items: start; }

/* tabs */
.fx-tablist { display: flex; gap: 8px; margin: 0 0 clamp(24px, 3vw, 40px); overflow-x: auto; scrollbar-width: none; padding: 2px; margin-inline: -2px; }
.fx-tablist::-webkit-scrollbar { display: none; }
.fx-tablist button {
  flex: none; font: inherit; font-size: 15px; font-weight: 600; padding: 10px 18px; border-radius: 99px; cursor: pointer;
  color: var(--pg-ink); background: var(--surface); border: 1px solid var(--pg-line);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s var(--pg-ease);
}
.fx-tablist button:hover { border-color: color-mix(in srgb, var(--pg-blue) 45%, transparent); color: var(--pg-blue); }
.fx-tablist button:active { transform: scale(.97); }
.fx-tablist button[aria-selected="true"] { background: var(--pg-blue); border-color: var(--pg-blue); color: #fff; }
.fx-tablist button:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 2px; }
html:not(.fx-js) .fx-tablist { display: none; }

/* panel: copy and code on one two-column grid; stacked with JS off or on phones */
.fx-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.fx-panel + .fx-panel { margin-top: clamp(48px, 6vw, 88px); }
.fx-panel[hidden] { display: none; }
.fx-panel:focus-visible { outline: 3px solid color-mix(in srgb, var(--pg-blue) 45%, transparent); outline-offset: 8px; border-radius: 12px; }
html:not(.fx-js) .fx-h { display: block; }
html.fx-js .fx-h { display: none; }
.fx-h { margin: 0 0 14px; font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.fx-copy p { margin: 0 0 16px; max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; color: var(--pg-ink-2); }
.fx-copy strong { color: var(--pg-ink); font-weight: 600; }
.fx-more a { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--sh-link); text-decoration: none; }
.fx-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.fx-more a:active { opacity: .6; }
.fx-more a:focus-visible { outline: 2px solid var(--sh-link); outline-offset: 3px; border-radius: 4px; }
.fx-more svg { width: 14px; height: 14px; }
.fx-panel .pg-code { position: static; }
.pg-code .fx-sub { border-top: 1px solid rgba(255, 255, 255, .08); }
@media (max-width: 900px) { .fx-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* limits / related: plain lists on the grid, not a narrow column */
.fx-hub .pg-hub-prose > ul { max-width: 72ch; }

/* the source line under the table */
.fx-hub .pg-table caption { caption-side: bottom; text-align: left; padding: 14px 20px 16px; border-top: 1px solid var(--pg-line); font-size: 13.5px; color: var(--pg-ink-3); }
