/* The install guides: the client picker on /integrations and the "If it does not work" card on every guide.
   The picker tabs are radio buttons, so picking a client needs no script; the checked
   radio shows the panel in the same position. Without this file every panel shows in order. Tokens only. */
.picker { display: flex; flex-wrap: wrap; align-items: stretch; margin: 0 0 var(--lt-space-4); }
/* The tab row's base line: each label carries its part, and this filler draws the rest of the row. */
.picker::after { content: ""; flex: 1; border-bottom: 1px solid var(--lt-line); }
.picker > input { position: absolute; opacity: 0; pointer-events: none; }
.picker > label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--lt-space-4);
  border-bottom: 1px solid var(--lt-line);
  color: var(--lt-text-2);
  font: 560 var(--lt-step-1) / 1 var(--lt-font-display);
  cursor: pointer;
}
.picker > label:hover { color: var(--lt-text-1); }
.picker > input:checked + label { padding-bottom: 0; color: var(--lt-glow-ink); border-bottom: 2px solid var(--lt-glow-fill); }
.picker > input:focus-visible + label { outline: 2px solid var(--lt-teal); outline-offset: 2px; }
.picker-panel {
  display: none;
  order: 2;
  width: 100%;
  margin: var(--lt-space-5) 0 var(--lt-space-4);
  padding: var(--lt-space-5);
  border: 1px solid var(--lt-line);
  border-radius: var(--lt-radius-card);
  background: var(--lt-surface-2);
}
.picker > input:nth-of-type(1):checked ~ .picker-panel:nth-of-type(1),
.picker > input:nth-of-type(2):checked ~ .picker-panel:nth-of-type(2),
.picker > input:nth-of-type(3):checked ~ .picker-panel:nth-of-type(3),
.picker > input:nth-of-type(4):checked ~ .picker-panel:nth-of-type(4) { display: block; }
.lt-prose .picker-panel h2 { margin: 0 0 var(--lt-space-2); }
.lt-prose .picker-panel > p { color: var(--lt-text-2); }
.lt-prose .picker-panel > :last-child { margin-bottom: 0; }
.picker-code { position: relative; }
.lt-prose .picker-code pre { padding-right: 88px; }
.picker-copy {
  position: absolute;
  top: var(--lt-space-2);
  right: var(--lt-space-2);
}
.lt-prose .picker-copy { min-height: 32px; margin: 0; padding: 0 var(--lt-space-3); font: 600 var(--lt-step--1) / 1 var(--lt-font-ui); }
.lt-prose .picker-copy[data-copied] { color: var(--lt-success); border-color: var(--lt-success); }
.picker-pairs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 0 var(--lt-space-4); padding-top: var(--lt-space-4); border-top: 1px solid var(--lt-line); }
.picker-pairs > div { padding-right: var(--lt-space-4); }
.picker-pairs > div + div { padding-left: var(--lt-space-4); border-left: 1px solid var(--lt-line); }
.picker-pairs dt { font-size: var(--lt-step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lt-text-3); }
.picker-pairs dd { margin: var(--lt-space-1) 0 0; font-family: var(--lt-font-mono); font-size: var(--lt-step--1); }
@media (max-width: 480px) {
  /* Four client tabs fit one row at 390 px only with the small gap. */
  .picker > label { padding: 0 var(--lt-space-2); font-size: var(--lt-step-0); }
  .picker-panel { padding: var(--lt-space-4); }
  .lt-prose .picker-panel h2 { font-size: var(--lt-step-2); }
  /* On a phone the copy button sits under the block, so it never covers the end of a long URL. */
  .lt-prose .picker-code pre { padding-right: var(--lt-space-4); margin-bottom: var(--lt-space-2); }
  .picker-copy { position: static; }
  .lt-prose .picker-copy { margin-bottom: var(--lt-space-4); }
  .picker-pairs { grid-template-columns: 1fr; gap: var(--lt-space-3); }
  .picker-pairs > div + div { padding-left: 0; border-left: 0; }
}

/* "If it does not work": one card with a divided row per problem, instead of a card per row. */
.lt-prose .trouble { margin: 0 0 var(--lt-space-4); border: 1px solid var(--lt-line); border-radius: var(--lt-radius-card); background: var(--lt-surface-2); }
.lt-prose .trouble details { margin: 0; border: 0; border-radius: 0; background: none; }
.lt-prose .trouble details + details { border-top: 1px solid var(--lt-line); }
.lt-prose .trouble summary { padding: var(--lt-space-4) var(--lt-space-5); }
.lt-prose .trouble details > p { padding: 0 var(--lt-space-5) var(--lt-space-4); color: var(--lt-text-2); }

/* "Plugin or direct MCP?": a note card with a label line, between the picker and the troubleshooting card. */
.lt-prose .install-note { margin: 0 0 var(--lt-space-4); }
.lt-prose .install-note-label { margin: 0 0 var(--lt-space-2); font-size: var(--lt-step--1); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lt-text-3); }
.lt-prose .install-note > p:last-child { margin-bottom: 0; color: var(--lt-text-2); }

/* The server facts on /integrations/agent-sdk: the picker's pair row with a third column. */
.picker-pairs.sdk-facts { grid-template-columns: 2fr 1fr 1fr; margin-bottom: var(--lt-space-5); padding-bottom: var(--lt-space-4); border-bottom: 1px solid var(--lt-line); }
.picker-pairs.sdk-facts dd { overflow-wrap: anywhere; }
.lt-prose .picker-code + .picker-code { margin-top: var(--lt-space-3); }
@media (max-width: 480px) {
  .picker-pairs.sdk-facts { grid-template-columns: 1fr; }
}

/* The search box on /integrations. It matches .lt-input from components.css, which a reading page does not load. */
.guide-search { margin: var(--lt-space-4) 0 var(--lt-space-2); }
.guide-search[hidden] { display: none; }
.guide-search-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0 var(--lt-space-4);
  border: 1px solid var(--lt-line-strong);
  border-radius: var(--lt-radius-control);
  background: var(--lt-surface-2);
  color: var(--lt-text-1);
  font: var(--lt-step-0) / 1.4 var(--lt-font-ui);
  transition: border-color var(--lt-dur-fast) var(--lt-ease), box-shadow var(--lt-dur-base) var(--lt-ease);
}
.guide-search-input::placeholder { color: var(--lt-text-3); }
.guide-search-input:focus { outline: none; border-color: var(--lt-glow-ink); box-shadow: 0 0 0 3px var(--lt-glow-wash); }
.lt-prose .guide-search-status { margin: var(--lt-space-2) 0 0; color: var(--lt-text-2); font-size: var(--lt-step--1); }
.guide-search-status:empty { display: none; }
#servers, .guide-entry { scroll-margin-top: var(--lt-space-9); }
.guide-entry[hidden] { display: none; }
