/* pages/integrations.css: Integrations (/integrations), round four U9 (plan 2026-11-12-2225 R19, W12).
   Linked last in the page's own list by lib/site/pages/integrations.ts, so it reaches this page and no other.
   Every rule is under an ig- class the page prints. The tables are site.css's table.plain (on a phone each row
   stacks and every cell shows its column head); this sheet sets them in a card and lets the name cell stack too.
   No brown: navy, ink, paper, studio and the amber accent, all from the site's tokens. */

/* 1. the first screen: words on the page's ground, Plug's cut-out beside them */
.ig-hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.ig-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: clamp(24px, 5vw, 80px); align-items: center; }
.ig-hero__copy { max-width: 720px; }
.ig-hero__copy > .label { margin: 0 0 14px; }
.ig-hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.2rem); max-width: 16ch; }
.ig-hero .lede { max-width: 58ch; margin: 0 0 clamp(20px, 2.4vw, 28px); }
.ig-hero__host { margin: 0; display: grid; justify-items: center; gap: 12px; }
.ig-hero__uwee { width: min(100%, 280px); }
.ig-hero__role { text-align: center; }

/* W8's door: the question, then the one button */
.ig-door { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 20px; max-width: 640px; border-radius: var(--radius-sm); background: var(--card); border: 1.5px solid var(--rule); }
.ig-door__q { margin: 0; font-family: var(--ui); font-weight: 700; font-size: 1.02rem; }
.ig-door .doors { margin: 0; }

/* the four groups, as jump links */
.ig-jump { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: clamp(18px, 2vw, 24px); }
.ig-jump a { font-family: var(--ui); font-weight: 600; font-size: .9rem; color: var(--fg); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--rule); }
.ig-jump a:hover, .ig-jump a:focus-visible { border-color: var(--amber); }

/* 2 to 5. each group: its words on the left, its rows on the right */
.ig-group__grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: start; }
.ig-group__head > .label { margin: 0 0 8px; }
.ig-group__head h2 { margin-bottom: 14px; }
.ig-group__head .lede { margin: 0 0 14px; font-size: 1.05rem; }
.ig-group__links { margin: 6px 0 0; }
.ig-when { font-family: var(--ui); font-weight: 700; letter-spacing: .02em; }
.ig-group:not(.ig-group--coming) .ig-when::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--amber); vertical-align: 1px; }

/* the features the work leaves from, each with its status line */
.ig-feats { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-family: var(--ui); font-size: .92rem; color: var(--muted); }
.ig-feats a { color: var(--fg); font-weight: 700; }
.ig-status::before { content: "\00B7"; margin: 0 .4em; }

/* the table in its card */
.ig-table-card { background: var(--card); border: 1.5px solid var(--rule); border-radius: var(--radius); padding: clamp(6px, 1vw, 12px) clamp(12px, 2vw, 24px); }
.ig-table { font-size: .98rem; }
.ig-table thead th { font-family: var(--ui); font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.ig-table tbody th { font-weight: 400; width: 26%; }
.ig-table tbody td:nth-child(2) { width: 40%; }
.ig-table tbody tr:last-child th, .ig-table tbody tr:last-child td { border-bottom: 0; }
.ig-name { display: block; font-family: var(--head); font-weight: 700; font-size: 1.08rem; }
.ig-note { display: inline-block; margin-top: 6px; font-family: var(--ui); font-size: .78rem; font-weight: 600; color: var(--muted); padding: 2px 9px; border-radius: 999px; border: 1.5px dashed var(--rule); }

/* the Coming rows: dashed and open, not yet a card */
.ig-soon-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ig-soon { padding: 16px 18px; border-radius: var(--radius-sm); border: 1.5px dashed var(--rule); }
.ig-soon__name { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--head); font-weight: 700; font-size: 1.08rem; }
.ig-soon__name .kit-status { font-family: var(--ui); font-weight: 600; font-size: .8rem; color: var(--muted); }
.ig-soon__line { margin: 8px 0 0; font-size: .95rem; color: var(--muted); }

@media (max-width: 960px) {
  .ig-group__grid { grid-template-columns: minmax(0, 1fr); }
  .ig-group__head { max-width: 640px; }
}
@media (max-width: 860px) {
  .ig-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .ig-hero__host { grid-row: 1; grid-template-columns: 96px auto; justify-items: start; align-items: end; justify-self: start; }
  .ig-hero__uwee { width: 96px; }
  .ig-hero__role { text-align: left; }
}
@media (max-width: 860px) {
  /* site.css stacks table.plain's td at this width; the row's name is a th, so it stacks the same way */
  .ig-table tbody th { display: block; width: auto; border: 0; padding: 4px 0 2px; }
  .ig-table tbody td { width: auto !important; }
  .ig-table tbody tr:last-child { border-bottom: 0; }
}
@media (max-width: 480px) {
  .ig-door { padding: 14px 16px; }
  .ig-door .doors, .ig-door .btn { width: 100%; }
  .ig-door .btn { justify-content: center; text-align: center; }
}
