/* ============================================================
   /docs — Ellie onboarding documentation
   Conventional docs layout: sticky left sidebar, content column,
   platform tabs (Claude / Gemini) with role subtabs (Org / User).
   Deep-linkable via hash: #claude/org, #gemini/user, #troubleshooting.
   ============================================================ */
.docs-hero { padding: 150px 24px 40px; }
.docs-hero__inner { max-width: 1120px; margin: 0 auto; }
.docs-hero h1 { font-size: clamp(32px, 4.5vw, 46px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; color: #F0F0F5; }
.docs-hero p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.66); max-width: 640px; margin: 0; }
.docs-status {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 6px 12px;
}
.docs-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #F9BE00; box-shadow: 0 0 10px rgba(249,190,0,0.6); }

.docs-layout { max-width: 1120px; margin: 0 auto; padding: 0 24px 120px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; }
.docs-sidebar { position: sticky; top: 92px; align-self: start; }
.docs-sidebar__group { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin: 22px 0 8px; }
.docs-sidebar__group:first-child { margin-top: 0; }
.docs-sidebar a { display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; color: rgba(255,255,255,0.66); text-decoration: none; border-left: 2px solid transparent; }
.docs-sidebar a:hover { color: #F0F0F5; background: rgba(255,255,255,0.04); }
.docs-sidebar a.is-active { color: #F0F0F5; border-left-color: #00A0FF; background: rgba(0,160,255,0.08); }

.docs-content { min-width: 0; }
.docs-section { padding: 36px 0; border-top: 1px solid rgba(255,255,255,0.07); scroll-margin-top: 90px; }
.docs-section:first-child { border-top: 0; padding-top: 0; }
.docs-section h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.015em; color: #F0F0F5; margin: 0 0 10px; }
.docs-section h3 { font-size: 18px; font-weight: 600; color: #F0F0F5; margin: 28px 0 10px; }
.docs-section p, .docs-section li { font-size: 15.5px; line-height: 1.7; color: rgba(255,255,255,0.72); }
.docs-section p { margin: 0 0 14px; }
.docs-section ul, .docs-section ol { padding-left: 22px; margin: 0 0 16px; }
.docs-section li { margin-bottom: 6px; }
.docs-section li::marker { color: rgba(255,255,255,0.4); }
.docs-section a { color: #00A0FF; text-decoration: none; border-bottom: 1px solid rgba(0,160,255,0.3); }
.docs-section a:hover { border-bottom-color: #00A0FF; }
.docs-section code, .docs-kv code { font-family: 'JetBrains Mono', monospace; font-size: 13px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 2px 7px; color: #F0F0F5; overflow-wrap: anywhere; }
.docs-lede { font-size: 17px !important; color: rgba(255,255,255,0.6) !important; }

/* Tabs */
.docs-tabs { display: flex; gap: 6px; padding: 5px; background: rgba(14,24,38,0.7); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; margin: 22px 0 18px; width: max-content; max-width: 100%; }
.docs-tab { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 10px; border: 0; background: none; color: rgba(255,255,255,0.6); font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.docs-tab:hover { color: #F0F0F5; }
.docs-tab[aria-selected="true"] { background: linear-gradient(135deg, rgba(0,122,255,0.9), rgba(0,160,255,0.9)); color: #fff; }
.docs-tab svg { display: block; }
.docs-subtabs { display: flex; gap: 22px; border-bottom: 1px solid rgba(255,255,255,0.1); margin: 0 0 26px; }
.docs-subtab { padding: 10px 2px 12px; border: 0; background: none; color: rgba(255,255,255,0.55); font: inherit; font-size: 14.5px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.docs-subtab:hover { color: #F0F0F5; }
.docs-subtab[aria-selected="true"] { color: #F0F0F5; border-bottom-color: #54E42B; }
.docs-panel[hidden] { display: none; }

/* Callouts */
.docs-callout { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 16px 18px; border-radius: 12px; margin: 18px 0; border: 1px solid; }
.docs-callout svg { margin-top: 2px; }
.docs-callout p { margin: 0; font-size: 14.5px; }
.docs-callout strong { color: #F0F0F5; }
.docs-callout--info { background: rgba(0,160,255,0.07); border-color: rgba(0,160,255,0.25); }
.docs-callout--warn { background: rgba(249,190,0,0.07); border-color: rgba(249,190,0,0.3); }
.docs-callout--todo { background: rgba(255,33,152,0.06); border-color: rgba(255,33,152,0.35); border-style: dashed; }
.docs-callout--todo p::before { content: 'Placeholder · confirm with engineering'; display: block; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #FF2198; margin-bottom: 4px; }

/* Key/value table for connector settings */
.docs-kv { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 14.5px; }
.docs-kv th, .docs-kv td { text-align: left; padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); vertical-align: top; }
.docs-kv th { width: 38%; font-weight: 500; color: rgba(255,255,255,0.6); }
.docs-kv td { color: #F0F0F5; }
.docs-kv tr:last-child th, .docs-kv tr:last-child td { border-bottom: 0; }
.docs-kv-wrap { overflow-x: auto; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; background: rgba(255,255,255,0.025); }

/* Numbered steps */
.docs-steps { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: step; }
.docs-steps > li { position: relative; padding: 0 0 22px 46px; counter-increment: step; }
.docs-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 600; color: #0c1520; background: linear-gradient(135deg, #54E42B, #00A0FF); }
.docs-steps > li::after { content: ''; position: absolute; left: 14px; top: 34px; bottom: 0; width: 2px; background: rgba(255,255,255,0.07); }
.docs-steps > li:last-child::after { display: none; }
.docs-steps > li > strong:first-child { display: block; color: #F0F0F5; font-size: 15.5px; margin-bottom: 4px; }

/* Screenshot placeholder */
.docs-shot { margin: 14px 0 6px; border: 1px dashed rgba(255,255,255,0.22); border-radius: 12px; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 10px, transparent 10px 20px); padding: 34px 20px; text-align: center; color: rgba(255,255,255,0.45); font-size: 13px; }
.docs-shot span { display: block; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 6px; }

.docs-meta { margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.07); font-family: 'JetBrains Mono', monospace; font-size: 11.5px; letter-spacing: 0.04em; color: rgba(255,255,255,0.4); }

@media (max-width: 860px) {
  .docs-layout { grid-template-columns: 1fr; gap: 28px; }
  .docs-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 4px 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .docs-sidebar__group { width: 100%; margin: 10px 0 4px; }
  .docs-sidebar a { margin: 0; padding: 5px 8px; border-left: 0; }
  .docs-hero { padding-top: 120px; }
  .docs-tabs { width: 100%; }
  .docs-tab { flex: 1; justify-content: center; }
}

/* Three platform tabs: drop the "Ellie for" prefix on phones so they fit. */
.docs-tab { white-space: nowrap; }
@media (max-width: 560px) {
  .docs-tab__prefix { display: none; }
  .docs-tab { padding: 10px 8px; gap: 7px; font-size: 13.5px; }
}
