/* Shared styles for public portal documentation pages */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
.doc-toc-link { display: block; padding: 6px 12px; font-size: 13px; color: #64748b; border-radius: 8px; border-left: 2px solid transparent; transition: all .15s; }
.doc-toc-link:hover { color: #2563eb; background: #f8fafc; }
.doc-toc-link.active { color: #2563eb; background: #eff6ff; border-left-color: #2563eb; font-weight: 600; }
.doc-toc-group { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; padding: 12px 12px 4px; }
.doc-section { scroll-margin-top: 88px; }
.doc-hero { background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 50%, #fff 100%); border: 1px solid #dbeafe; border-radius: 16px; padding: 28px 32px; margin-bottom: 2rem; }
.doc-hero h1 { font-size: 1.75rem; font-weight: 800; color: #0f172a; }
.doc-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.doc-badge-blue { background: #dbeafe; color: #1e40af; }
.doc-badge-green { background: #dcfce7; color: #166534; }
.doc-badge-purple { background: #ede9fe; color: #5b21b6; }
#doc-content .doc-section h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-bottom: 1rem; padding-bottom: .75rem; border-bottom: 2px solid #e2e8f0; }
#doc-content .doc-section h3 { font-size: 1.125rem; font-weight: 600; color: #1e293b; margin: 1.5rem 0 .75rem; }
#doc-content .doc-section p, #doc-content .doc-section li { color: #475569; line-height: 1.75; font-size: 15px; }
#doc-content .doc-section ul { list-style: disc; padding-left: 1.25rem; }
#doc-content .doc-section ol { list-style: decimal; padding-left: 1.25rem; }
#doc-content .doc-callout { border-radius: 12px; padding: 14px 16px; margin: 1rem 0; font-size: 14px; line-height: 1.6; }
#doc-content .doc-callout.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e40af; }
#doc-content .doc-callout.tip { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
#doc-content .doc-callout.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
#doc-content .doc-step { display: flex; gap: 14px; margin: 1rem 0; }
#doc-content .doc-step-num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; background: #2563eb; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
#doc-content .doc-mock { position: relative; isolation: isolate; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 8px 30px rgba(15,23,42,.06); margin: 1.25rem 0; }
#doc-content .doc-mock-bar { background: #f8fafc; border-bottom: 1px solid #e2e8f0; padding: 8px 14px; display: flex; align-items: center; gap: 6px; }
#doc-content .doc-mock-dot { width: 8px; height: 8px; border-radius: 999px; }
#doc-content .doc-mock-body { position: relative; overflow: hidden; padding: 16px; }
#doc-content .doc-mock-body--chat { display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
#doc-content .doc-mock-input { margin-top: auto; border: 1px solid #e2e8f0; border-radius: 9999px; padding: 8px 12px; font-size: 12px; color: #9ca3af; background: #fff; }
/* Legacy Tailwind absolute mock controls — anchor to mock body, not the page */
#doc-content .doc-mock .absolute { position: absolute !important; }
#doc-content .doc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1rem 0; }
#doc-content .doc-table th, #doc-content .doc-table td { border: 1px solid #e2e8f0; padding: 10px 12px; text-align: left; }
#doc-content .doc-table th { background: #f8fafc; font-weight: 600; color: #334155; }
#doc-content .doc-table td { color: #475569; }
#doc-content .doc-badge-green { background: #dcfce7; color: #166534; }
#doc-content .doc-badge-blue { background: #dbeafe; color: #1e40af; }
#doc-content .doc-badge-purple { background: #ede9fe; color: #5b21b6; }
.docs-header { border-bottom: 1px solid #e7ebf2; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.doc-card { display: block; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px; transition: all .2s; box-shadow: 0 1px 3px rgba(15,23,42,.04); }
.doc-card:hover { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(37,99,235,.08); transform: translateY(-2px); }
.doc-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: #64748b; margin-bottom: 1.5rem; }
.doc-breadcrumb a { color: #2563eb; }
.doc-breadcrumb a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .doc-layout { flex-direction: column; }
  .doc-toc-panel { position: static !important; width: 100% !important; max-height: none !important; }
}
