/* ============================================================
   AvioIQ — in-page document reader (slide-in panel)
   Opens authored article content for docs guides / categories
   and help-center topics without leaving the page.
   ============================================================ */

/* clickable affordance for cards/rows wired to the reader */
[data-doc] { cursor: pointer; }
.feature-card[data-doc] { position: relative; }
.feature-card[data-doc]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(26,43,74,0); transition: box-shadow 150ms var(--ao-ease);
  pointer-events: none;
}
.feature-card[data-doc]:hover::after { box-shadow: inset 0 0 0 1px var(--ao-green-500); }
.guide-row[data-doc] .guide-txt b { transition: color 140ms var(--ao-ease); }
.guide-row[data-doc]:hover .guide-txt b { color: var(--ao-green-900); }

/* overlay */
.docr-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(16,24,40,0.44);
  opacity: 0; visibility: hidden;
  transition: opacity 200ms var(--ao-ease), visibility 200ms var(--ao-ease);
}
.docr-scrim.open { opacity: 1; visibility: visible; }

.docr-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 201;
  width: min(680px, 100vw); background: #fff;
  display: flex; flex-direction: column;
  box-shadow: -24px 0 60px rgba(16,24,40,0.18);
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22,0.61,0.36,1);
}
.docr-scrim.open .docr-panel { transform: translateX(0); }

.docr-bar {
  flex: none; display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; border-bottom: 1px solid var(--ao-line);
}
.docr-bar .docr-kicker {
  font-family: var(--ao-font-mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ao-ink-4);
}
.docr-bar .docr-meta {
  margin-left: auto; font-family: var(--ao-font-mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--ao-ink-4);
}
.docr-close {
  flex: none; width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--ao-line); background: #fff; color: var(--ao-blue);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background 140ms var(--ao-ease);
}
.docr-close:hover { background: var(--ao-surface-3); }

.docr-body { flex: 1; overflow-y: auto; padding: 34px 46px 60px; }
@media (max-width: 640px){ .docr-body { padding: 26px 22px 48px; } }

.docr-body h1 {
  font-family: var(--ao-font-display); font-weight: 700; font-size: 27px;
  color: var(--ao-blue); letter-spacing: -0.025em; line-height: 1.2; margin: 6px 0 14px;
}
.docr-body .docr-lede { font-size: 16px; line-height: 1.6; color: var(--ao-ink-3); margin-bottom: 30px; max-width: 60ch; }
.docr-body h2 {
  font-family: var(--ao-font-display); font-weight: 600; font-size: 18px;
  color: var(--ao-blue); letter-spacing: -0.01em; margin: 30px 0 10px;
}
.docr-body p { font-size: 15px; line-height: 1.7; color: #3a3a3a; margin-bottom: 14px; max-width: 62ch; }
.docr-body ul { margin: 0 0 16px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.docr-body ul li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.6; color: #3a3a3a; max-width: 60ch; }
.docr-body ul li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 2px; background: var(--ao-green-500); }
.docr-body ol { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.docr-body ol li { font-size: 14.5px; line-height: 1.6; color: #3a3a3a; max-width: 58ch; padding-left: 4px; }
.docr-body code { font-family: var(--ao-font-mono); font-size: 13px; color: var(--ao-blue); background: var(--ao-surface-3); border: 1px solid var(--ao-line); border-radius: 4px; padding: 1px 5px; }
.docr-body .docr-callout {
  background: var(--ao-green-200); border-left: 3px solid var(--ao-green-500);
  border-radius: 0 8px 8px 0; padding: 16px 20px; margin: 18px 0 24px;
}
.docr-body .docr-callout p { font-size: 14px; line-height: 1.6; color: var(--ao-blue); margin: 0; }
.docr-body .docr-code {
  background: var(--ao-blue); border-radius: 10px; padding: 18px 20px; overflow-x: auto; margin: 6px 0 22px;
}
.docr-body .docr-code pre { margin: 0; font-family: var(--ao-font-mono); font-size: 12.5px; line-height: 1.7; color: #e8eef6; white-space: pre; }
.docr-body .docr-metric { color: var(--ao-green-500); }

.docr-body .docr-foot {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--ao-line);
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.docr-body .docr-foot span { font-size: 13.5px; color: var(--ao-ink-4); }
