/* Integrations section (docs/integrations/): one page per built-in WebMCP site adapter, and a hub.
   Assembled by scripts/assemble-integrations.py; this sheet is hand-edited.
   Linked after ../styles.css and additive over it: every selector here is one the
   shared sheet does not define, and every colour comes from its tokens. */

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.int-crumbs { padding-top: 28px; }
.int-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: .9rem; color: var(--ink-soft);
}
.int-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-faint); }
.int-crumbs a { color: var(--accent); }

/* ── Section index: every integration, the current one marked ──────────── */
.int-index { margin-top: 18px; }
.int-index ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.int-index li a,
.int-index li span {
  display: inline-block; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .88rem; text-decoration: none; color: var(--ink-soft);
}
.int-index li a:hover { border-color: var(--accent); color: var(--accent); }
.int-index li span[aria-current="page"] {
  background: var(--accent); border-color: var(--accent); color: var(--paper); font-weight: 600;
}

/* ── An integration's page ─────────────────────────────────────────────── */
.int-page { padding-block: clamp(36px, 6vw, 64px) var(--band-y); }
.int-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 44px); }
.int-head h1 { margin: 0 0 12px; }
.int-figure { margin: 0 0 clamp(36px, 5vw, 56px); max-width: 1040px; }
.int-figure img {
  width: auto; max-width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 18px 44px -26px var(--ink-soft);
}
.int-figure figcaption { margin-top: 10px; font-size: .92rem; color: var(--ink-soft); max-width: 46rem; }
.int-prose { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 40px); }
.int-prose h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 0 0 14px; }
.int-prose p { line-height: 1.6; }
.int-prose code, .int-tools code { font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere; }
.int-prose h3 { margin: 32px 0 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.int-class {
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft);
}
.int-class-line { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; }

/* The tools: the friendly name, the id the agent uses, then the description's first sentence. */
.int-tools { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-soft); }
.int-tools li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.int-tools strong { color: var(--ink); margin-right: 6px; }
.int-tools code { color: var(--ink-faint); }
.int-tools span { display: block; margin-top: 4px; font-size: .94rem; line-height: 1.5; color: var(--ink-soft); }
.int-more { max-width: 46rem; margin-top: clamp(28px, 4vw, 40px); color: var(--ink-soft); }
.int-more a { color: var(--accent); font-weight: 600; }

/* ── The hub's lists ───────────────────────────────────────────────────── */
#list-heading { margin-bottom: 20px; }
#list-heading ~ h3 { margin: 0 0 14px; }
.int-list {
  list-style: none; margin: 0 0 clamp(28px, 4vw, 40px); padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}
.int-list a {
  display: block; height: 100%; padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); color: var(--ink); text-decoration: none;
}
.int-list a:hover { border-color: var(--accent); }
.int-list strong { display: block; font-size: 1.08rem; color: var(--accent); margin-bottom: 6px; }
.int-list span { display: block; font-size: .94rem; line-height: 1.5; color: var(--ink-soft); }

@media print {
  .int-index { display: none; }
  .int-figure img { box-shadow: none; border-color: #999; }
}
