/* ============================================================================
   Setup guides — shared styles
   Used by /docs/setup/*  and  by the inline expandable panels embedded in
   dashboard settings pages. Keeping one file means the inline preview and
   the full doc page look unmistakably part of the same surface.
   ============================================================================ */

/* ===== /docs/setup/ index cards ============================================ */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.setup-card {
  display: flex; flex-direction: column;
  background: #ffffff;
  border: 1px solid #d4cfc0;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 0 rgba(10,21,33,0.04), 0 4px 12px -6px rgba(10,21,33,0.06);
  transition: transform 0.12s, border-color 0.12s;
}
.setup-card:hover {
  transform: translateY(-1px);
  border-color: #0a1521;
}
.setup-card-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a5568;
  margin-bottom: 10px;
}
.setup-card h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: #0a1521;
}
.setup-card p {
  font-family: 'Source Serif Pro', serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: #243140;
  margin-bottom: 14px;
  flex: 1;
}
.setup-card-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0c3787;
  margin-top: auto;
}

/* ===== /docs/setup/* — guide body ========================================= */
.guide-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .guide-toc    { position: static !important; }
}
.guide-toc {
  position: sticky;
  top: 24px;
  align-self: start;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
}
.guide-toc h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4a5568;
  margin: 0 0 12px;
}
.guide-toc ul { list-style: none; padding: 0; margin: 0 0 24px; }
.guide-toc li { margin: 4px 0; }
.guide-toc a {
  color: #243140;
  text-decoration: none;
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 2px solid #e2e8f0;
}
.guide-toc a:hover  { color: #1853c5; border-left-color: #1853c5; }

.guide-content {
  font-family: 'Source Serif Pro', serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: #243140;
  min-width: 0;
}
.guide-content h2 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.015em;
  margin: 48px 0 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
  color: #0a1521;
  scroll-margin-top: 80px;
}
.guide-content h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.guide-content h2 em { font-style: italic; color: #0c3787; }
.guide-content h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  margin: 26px 0 8px;
  color: #0a1521;
  scroll-margin-top: 80px;
}
.guide-content p  { margin: 0 0 12px; }
.guide-content ol { padding-left: 22px; margin: 0 0 14px; }
.guide-content ul { padding-left: 22px; margin: 0 0 14px; }
.guide-content li { margin: 4px 0; }
.guide-content li b { color: #0a1521; }

.guide-content code,
.setup-block code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  background: rgba(24,83,197,0.07);
  color: #0c3787;
  padding: 1px 6px;
  border-radius: 3px;
}

.guide-content pre,
.setup-block pre {
  background: #0a1521;
  color: #f3f1ea;
  padding: 14px 18px;
  border-radius: 6px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
}
.guide-content pre code,
.setup-block pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ===== Copy-row: 'Paste this into your IdP' callout ====================== */
.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #d4cfc0;
  padding: 10px 12px;
  margin: 8px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #0a1521;
  align-items: center;
}
.copy-row .copy-row-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4a5568;
  margin-right: 12px;
}
.copy-row code { background: transparent; padding: 0; word-break: break-all; }
.copy-row button {
  background: #0a1521;
  color: #fbfaf6;
  border: 0;
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 3px;
  letter-spacing: 0.01em;
}
.copy-row button:hover { background: #0c3787; }
.copy-row button:focus-visible {
  outline: 2px solid #0c3787;
  outline-offset: 2px;
}

/* ===== Provider picker (tabs that swap step-blocks) ====================== */
.provider-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  background: #f5f1e8;
  border: 1px solid #d4cfc0;
  padding: 6px;
  border-radius: 4px;
}
.provider-picker button {
  background: transparent;
  border: 1px solid transparent;
  color: #243140;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 3px;
}
.provider-picker button:hover { background: #ffffff; }
.provider-picker button[aria-selected="true"] {
  background: #0a1521;
  color: #fbfaf6;
}
.provider-picker button:focus-visible {
  outline: 2px solid #0c3787;
  outline-offset: 2px;
}
.provider-block { display: none; }
.provider-block.active { display: block; }
.provider-block ol, .provider-block ul { padding-left: 22px; }

/* ===== Callouts =========================================================== */
.callout {
  border-left: 3px solid #1853c5;
  background: rgba(24,83,197,0.06);
  padding: 14px 18px;
  margin: 16px 0;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  border-radius: 0 4px 4px 0;
}
.callout.warn   { border-left-color: #b76e00; background: rgba(183,110,0,0.07); }
.callout.danger { border-left-color: #c53030; background: rgba(197,48,48,0.06); }
.callout strong { color: #0a1521; }

/* ===== Inline panel embedded in the dashboard ============================= */
.aa-setup-panel {
  border: 1px solid var(--rule, #d4cfc0);
  background: var(--paper-warm, #f5f1e8);
  padding: 16px 20px;
  margin-bottom: 18px;
  border-radius: 0;
}
.aa-setup-panel > summary {
  cursor: pointer;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink, #0a1521);
  letter-spacing: -0.01em;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.aa-setup-panel > summary::-webkit-details-marker { display: none; }
.aa-setup-panel > summary::before {
  content: '+';
  color: var(--brand-ink, #0c3787);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  width: 12px;
}
.aa-setup-panel[open] > summary::before { content: '\2212'; }
.aa-setup-panel > summary em {
  font-style: italic;
  color: var(--brand-ink, #0c3787);
  font-variation-settings: "WONK" 1;
}
.aa-setup-panel > summary .aa-summary-meta {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-quiet, #4a5568);
  text-transform: uppercase;
}
.aa-setup-panel .aa-setup-body {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft, #243140);
}
.aa-setup-panel .aa-setup-body ol,
.aa-setup-panel .aa-setup-body ul {
  padding-left: 22px;
}
.aa-setup-panel .aa-setup-body li { margin: 4px 0; }
.aa-setup-panel .aa-setup-body li b { color: var(--ink, #0a1521); }
.aa-setup-panel pre {
  background: #0a1521; color: #f3f1ea;
  padding: 10px 14px;
  margin: 8px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  border-radius: 4px;
}
.aa-setup-panel a.aa-setup-fulldoc {
  margin-top: 12px;
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--brand-ink, #0c3787);
}
