/**
 * ReportedIP Developer Documentation Styles
 *
 * @package ReportedIP_Service
 * @since 1.0.0
 */

/* ==========================================================================
   Layout
   ========================================================================== */

.rip-docs {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--rip-space-6) var(--rip-space-4);
    font-family: var(--rip-font-sans);
    color: var(--rip-gray-800);
    line-height: 1.7;
}

.rip-docs *,
.rip-docs *::before,
.rip-docs *::after {
    box-sizing: border-box;
}

.rip-docs__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--rip-space-8);
    align-items: start;
}

.rip-docs__layout--with-toc {
    grid-template-columns: 260px 1fr 200px;
}

.rip-docs__content {
    min-width: 0;
    max-width: 900px;
}

.rip-docs__content h1 {
    font-size: var(--rip-text-3xl);
    font-weight: 700;
    color: var(--rip-gray-900);
    margin: 0 0 var(--rip-space-2) 0;
    line-height: 1.3;
}

.rip-docs__content h2 {
    font-size: var(--rip-text-2xl);
    font-weight: 600;
    color: var(--rip-gray-900);
    margin: var(--rip-space-8) 0 var(--rip-space-4) 0;
    padding-bottom: var(--rip-space-2);
    border-bottom: 1px solid var(--rip-gray-200);
}

.rip-docs__content h3 {
    font-size: var(--rip-text-xl);
    font-weight: 600;
    color: var(--rip-gray-800);
    margin: var(--rip-space-6) 0 var(--rip-space-3) 0;
}

.rip-docs__content p {
    margin: 0 0 var(--rip-space-4) 0;
    color: var(--rip-gray-600);
}

.rip-docs__content a {
    color: var(--rip-primary);
    text-decoration: none;
}

.rip-docs__content a:hover {
    color: var(--rip-primary-dark);
    text-decoration: underline;
}

.rip-docs__lead {
    font-size: var(--rip-text-lg);
    color: var(--rip-gray-500);
    margin: 0 0 var(--rip-space-6) 0;
}

/* ==========================================================================
   Header
   ========================================================================== */

.rip-docs-header {
    background: var(--rip-gradient-dark);
    border-radius: var(--rip-radius-xl);
    padding: var(--rip-space-6) var(--rip-space-8);
    margin-bottom: var(--rip-space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

a.rip-docs-header__brand {
    display: flex;
    align-items: center;
    gap: var(--rip-space-4);
    text-decoration: none;
    color: inherit;
}

a.rip-docs-header__brand:hover,
a.rip-docs-header__brand:visited {
    text-decoration: none;
    color: inherit;
}

.rip-docs-header__logo {
    width: 48px;
    height: 48px;
    color: var(--rip-primary-light);
    flex-shrink: 0;
}

.rip-docs-header__title {
    font-size: var(--rip-text-2xl);
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.rip-docs-header__subtitle {
    font-size: var(--rip-text-sm);
    color: var(--rip-gray-400);
    margin: var(--rip-space-1) 0 0 0;
}

.rip-docs-header__version {
    display: inline-flex;
    align-items: center;
    padding: var(--rip-space-1) var(--rip-space-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--rip-radius-full);
    font-size: var(--rip-text-sm);
    font-weight: 500;
    color: var(--rip-primary-light);
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.rip-docs-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--rip-space-2);
    font-size: var(--rip-text-sm);
    color: var(--rip-gray-400);
    margin-bottom: var(--rip-space-6);
    flex-wrap: wrap;
}

.rip-docs-breadcrumbs a {
    color: var(--rip-gray-500);
    text-decoration: none;
}

.rip-docs-breadcrumbs a:hover {
    color: var(--rip-primary);
}

.rip-docs-breadcrumbs__sep {
    color: var(--rip-gray-300);
    user-select: none;
}

.rip-docs-breadcrumbs__current {
    color: var(--rip-gray-700);
    font-weight: 500;
}

/* ==========================================================================
   Sidebar Navigation
   ========================================================================== */

.rip-docs-nav {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.rip-docs-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--rip-space-1);
}

.rip-docs-nav__link {
    display: flex;
    align-items: center;
    gap: var(--rip-space-3);
    padding: var(--rip-space-2) var(--rip-space-3);
    border-radius: var(--rip-radius);
    color: var(--rip-gray-600);
    text-decoration: none;
    font-size: var(--rip-text-sm);
    font-weight: 500;
    transition: var(--rip-transition);
}

.rip-docs-nav__link:hover {
    background: var(--rip-gray-100);
    color: var(--rip-gray-900);
    text-decoration: none;
}

.rip-docs-nav__link--active {
    background: var(--rip-primary-50);
    color: var(--rip-primary);
    font-weight: 600;
}

.rip-docs-nav__link--active:hover {
    background: var(--rip-primary-100);
    color: var(--rip-primary-dark);
}

.rip-docs-nav__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.7;
}

.rip-docs-nav__link--active .rip-docs-nav__icon {
    opacity: 1;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */

.rip-docs-mobile-toggle {
    display: none;
    position: fixed;
    bottom: var(--rip-space-6);
    left: var(--rip-space-4);
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: var(--rip-radius-full);
    background: var(--rip-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: var(--rip-shadow-lg);
    align-items: center;
    justify-content: center;
    transition: var(--rip-transition);
}

.rip-docs-mobile-toggle:hover {
    background: var(--rip-primary-dark);
    transform: scale(1.05);
}

.rip-docs-mobile-toggle svg {
    width: 22px;
    height: 22px;
}

.rip-docs-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rip-docs-mobile-overlay--visible {
    opacity: 1;
}

.rip-docs-mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: var(--rip-space-6) var(--rip-space-4);
    box-shadow: var(--rip-shadow-xl);
}

.rip-docs-mobile-panel--open {
    transform: translateX(0);
}

.rip-docs-mobile-panel__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--rip-gray-100);
    border-radius: var(--rip-radius);
    cursor: pointer;
    margin-left: auto;
    margin-bottom: var(--rip-space-4);
    color: var(--rip-gray-500);
}

.rip-docs-mobile-panel__close:hover {
    background: var(--rip-gray-200);
}

/* ==========================================================================
   HTTP Method Badges
   ========================================================================== */

.rip-docs-method {
    display: inline-flex;
    align-items: center;
    padding: var(--rip-space-1) var(--rip-space-2);
    border-radius: var(--rip-radius-sm);
    font-family: var(--rip-font-mono);
    font-size: var(--rip-text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.rip-docs-method--get {
    background: var(--rip-success-bg);
    color: var(--rip-success);
}

.rip-docs-method--post {
    background: var(--rip-info-bg);
    color: var(--rip-info);
}

.rip-docs-method--delete {
    background: var(--rip-danger-bg);
    color: var(--rip-danger);
}

.rip-docs-method--put,
.rip-docs-method--patch {
    background: var(--rip-warning-bg);
    color: var(--rip-warning);
}

/* ==========================================================================
   Auth Badges
   ========================================================================== */

.rip-docs-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--rip-space-1);
    padding: var(--rip-space-1) var(--rip-space-2);
    border-radius: var(--rip-radius-full);
    font-size: var(--rip-text-xs);
    font-weight: 500;
    line-height: 1;
}

.rip-docs-auth-badge svg {
    width: 12px;
    height: 12px;
}

.rip-docs-auth-badge--public {
    background: var(--rip-success-bg);
    color: #059669;
}

.rip-docs-auth-badge--api-key {
    background: var(--rip-info-bg);
    color: #2563EB;
}

.rip-docs-auth-badge--professional {
    background: rgba(139, 92, 246, 0.1);
    color: #7C3AED;
}

.rip-docs-auth-badge--enterprise {
    background: rgba(236, 72, 153, 0.1);
    color: #DB2777;
}

.rip-docs-auth-badge--admin {
    background: var(--rip-danger-bg);
    color: #DC2626;
}

/* ==========================================================================
   Endpoint Card
   ========================================================================== */

.rip-docs-endpoint {
    border: 1px solid var(--rip-gray-200);
    border-radius: var(--rip-radius-lg);
    margin-bottom: var(--rip-space-6);
    overflow: hidden;
    transition: var(--rip-transition);
}

.rip-docs-endpoint:hover {
    border-color: var(--rip-gray-300);
    box-shadow: var(--rip-shadow);
}

.rip-docs-endpoint--deprecated {
    opacity: 0.7;
    border-left: 3px solid var(--rip-warning);
}

.rip-docs-endpoint__header {
    display: flex;
    align-items: center;
    gap: var(--rip-space-3);
    padding: var(--rip-space-4);
    background: var(--rip-gray-50);
    border-bottom: 1px solid var(--rip-gray-200);
    flex-wrap: wrap;
}

.rip-docs-endpoint__heading {
    display: flex;
    align-items: center;
    gap: var(--rip-space-3);
    flex-wrap: wrap;
    margin: 0;
    font-size: var(--rip-text-base);
    line-height: 1.4;
}

.rip-docs-endpoint__name {
    font-size: var(--rip-text-sm);
    font-weight: 500;
    color: var(--rip-gray-600);
}

.rip-docs-endpoint__path {
    font-family: var(--rip-font-mono);
    font-size: var(--rip-text-sm);
    font-weight: 600;
    color: var(--rip-gray-800);
    word-break: break-all;
}

.rip-docs-endpoint__badges {
    display: flex;
    align-items: center;
    gap: var(--rip-space-2);
    margin-left: auto;
}

.rip-docs-endpoint__body {
    padding: var(--rip-space-4);
}

.rip-docs-endpoint__desc {
    color: var(--rip-gray-600);
    margin: 0 0 var(--rip-space-4) 0;
    line-height: 1.6;
}

.rip-docs-endpoint__deprecated-note {
    display: flex;
    align-items: center;
    gap: var(--rip-space-2);
    padding: var(--rip-space-3);
    background: var(--rip-warning-bg);
    border-radius: var(--rip-radius);
    color: #92400E;
    font-size: var(--rip-text-sm);
    margin-bottom: var(--rip-space-4);
}

.rip-docs-endpoint__section-title {
    font-size: var(--rip-text-sm);
    font-weight: 600;
    color: var(--rip-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: var(--rip-space-4) 0 var(--rip-space-2) 0;
}

/* ==========================================================================
   Parameter Table
   ========================================================================== */

.rip-docs-params {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--rip-text-sm);
    margin-bottom: var(--rip-space-4);
}

.rip-docs-params th {
    text-align: left;
    padding: var(--rip-space-2) var(--rip-space-3);
    background: var(--rip-gray-50);
    border-bottom: 2px solid var(--rip-gray-200);
    font-weight: 600;
    color: var(--rip-gray-700);
    font-size: var(--rip-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rip-docs-params td {
    padding: var(--rip-space-2) var(--rip-space-3);
    border-bottom: 1px solid var(--rip-gray-100);
    color: var(--rip-gray-700);
    vertical-align: top;
}

.rip-docs-params__name {
    font-family: var(--rip-font-mono);
    font-weight: 600;
    color: var(--rip-gray-900);
    white-space: nowrap;
}

.rip-docs-params__type {
    font-family: var(--rip-font-mono);
    font-size: var(--rip-text-xs);
    color: var(--rip-primary);
}

.rip-docs-params__required {
    display: inline-block;
    padding: 1px 6px;
    border-radius: var(--rip-radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.rip-docs-params__required--yes {
    background: var(--rip-danger-bg);
    color: var(--rip-danger);
}

.rip-docs-params__required--no {
    background: var(--rip-gray-100);
    color: var(--rip-gray-500);
}

/* ==========================================================================
   Code Block
   ========================================================================== */

.rip-docs-code {
    position: relative;
    margin-bottom: var(--rip-space-4);
    border-radius: var(--rip-radius-lg);
    overflow: hidden;
}

.rip-docs-code__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--rip-space-2) var(--rip-space-4);
    background: #1a1a2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rip-docs-code__lang {
    font-family: var(--rip-font-mono);
    font-size: var(--rip-text-xs);
    color: var(--rip-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.rip-docs-code__copy {
    display: inline-flex;
    align-items: center;
    gap: var(--rip-space-1);
    padding: var(--rip-space-1) var(--rip-space-2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--rip-radius-sm);
    background: transparent;
    color: var(--rip-gray-400);
    font-size: var(--rip-text-xs);
    cursor: pointer;
    transition: var(--rip-transition);
}

.rip-docs-code__copy:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.rip-docs-code__copy--copied {
    color: var(--rip-success);
    border-color: var(--rip-success);
}

.rip-docs-code__copy svg {
    width: 14px;
    height: 14px;
}

.rip-docs-code__pre {
    margin: 0;
    padding: var(--rip-space-4);
    background: #0f0f23;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rip-docs-code__pre code {
    font-family: var(--rip-font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre;
    tab-size: 2;
}

/* Syntax Highlighting (minimal) */
.rip-docs-code__pre .token-string { color: #a5d6ff; }
.rip-docs-code__pre .token-key { color: #7ee787; }
.rip-docs-code__pre .token-number { color: #ffa657; }
.rip-docs-code__pre .token-comment { color: #8b949e; font-style: italic; }
.rip-docs-code__pre .token-keyword { color: #ff7b72; }

/* ==========================================================================
   Code Tabs
   ========================================================================== */

.rip-docs-code-tabs {
    margin-bottom: var(--rip-space-4);
}

.rip-docs-code-tabs__nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--rip-gray-200);
    margin-bottom: 0;
}

.rip-docs-code-tabs__tab {
    padding: var(--rip-space-2) var(--rip-space-4);
    border: none;
    background: none;
    font-size: var(--rip-text-sm);
    font-weight: 500;
    color: var(--rip-gray-500);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--rip-transition);
    font-family: var(--rip-font-sans);
}

.rip-docs-code-tabs__tab:hover {
    color: var(--rip-gray-700);
}

.rip-docs-code-tabs__tab--active {
    color: var(--rip-primary);
    border-bottom-color: var(--rip-primary);
}

.rip-docs-code-tabs__panel {
    display: none;
}

.rip-docs-code-tabs__panel--active {
    display: block;
}

/* ==========================================================================
   Response Block
   ========================================================================== */

.rip-docs-response {
    margin-bottom: var(--rip-space-4);
}

.rip-docs-response__status {
    display: inline-flex;
    align-items: center;
    gap: var(--rip-space-2);
    margin-bottom: var(--rip-space-2);
    font-size: var(--rip-text-sm);
    font-weight: 500;
}

.rip-docs-response__status-code {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--rip-radius-sm);
    font-family: var(--rip-font-mono);
    font-size: var(--rip-text-xs);
    font-weight: 700;
}

.rip-docs-response__status-code--2xx {
    background: var(--rip-success-bg);
    color: var(--rip-success);
}

.rip-docs-response__status-code--4xx {
    background: var(--rip-warning-bg);
    color: #B45309;
}

.rip-docs-response__status-code--5xx {
    background: var(--rip-danger-bg);
    color: var(--rip-danger);
}

/* ==========================================================================
   Table of Contents (right panel, API Reference only)
   ========================================================================== */

.rip-docs-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-left: var(--rip-space-3);
    border-left: 1px solid var(--rip-gray-200);
}

.rip-docs-toc__title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rip-gray-400);
    margin: 0 0 var(--rip-space-2) 0;
}

.rip-docs-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rip-docs-toc__section {
    font-size: 10px;
    font-weight: 600;
    color: var(--rip-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--rip-space-2);
    margin-bottom: 2px;
    padding-left: var(--rip-space-1);
}

.rip-docs-toc__link {
    display: block;
    padding: 2px var(--rip-space-1);
    font-size: 11px;
    line-height: 1.3;
    color: var(--rip-gray-500);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -1px;
    transition: var(--rip-transition);
}

.rip-docs-toc__link:hover {
    color: var(--rip-gray-700);
    text-decoration: none;
}

.rip-docs-toc__link--active {
    color: var(--rip-primary);
    border-left-color: var(--rip-primary);
    font-weight: 500;
}

/* ==========================================================================
   Prev/Next Pager
   ========================================================================== */

.rip-docs-updated {
    display: flex;
    align-items: center;
    gap: var(--rip-space-2);
    margin-top: var(--rip-space-8);
    font-size: var(--rip-text-sm);
    color: var(--rip-gray-500);
}

.rip-docs-updated svg {
    flex-shrink: 0;
}

.rip-docs-pager {
    display: flex;
    justify-content: space-between;
    gap: var(--rip-space-4);
    margin-top: var(--rip-space-8);
    padding-top: var(--rip-space-6);
    border-top: 1px solid var(--rip-gray-200);
}

.rip-docs-pager__link {
    display: flex;
    flex-direction: column;
    gap: var(--rip-space-1);
    padding: var(--rip-space-3) var(--rip-space-4);
    border: 1px solid var(--rip-gray-200);
    border-radius: var(--rip-radius-lg);
    text-decoration: none;
    transition: var(--rip-transition);
    max-width: 50%;
}

.rip-docs-pager__link:hover {
    border-color: var(--rip-primary);
    box-shadow: var(--rip-shadow);
    text-decoration: none;
}

.rip-docs-pager__link--next {
    margin-left: auto;
    text-align: right;
}

.rip-docs-pager__label {
    font-size: var(--rip-text-xs);
    color: var(--rip-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rip-docs-pager__title {
    font-size: var(--rip-text-sm);
    font-weight: 600;
    color: var(--rip-primary);
}

/* ==========================================================================
   Trust Badges
   ========================================================================== */

.rip-docs-trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--rip-space-8);
    padding: var(--rip-space-4) 0;
    border-top: 1px solid var(--rip-gray-200);
}

.rip-docs-trust__badges {
    display: flex;
    align-items: center;
    gap: var(--rip-space-6);
}

.rip-docs-trust__badge {
    display: flex;
    align-items: center;
    gap: var(--rip-space-2);
    font-size: var(--rip-text-sm);
    color: var(--rip-gray-500);
}

.rip-docs-trust__badge svg {
    width: 16px;
    height: 16px;
    color: var(--rip-primary);
}

.rip-docs-trust__docs-link {
    display: inline-flex;
    align-items: center;
    gap: var(--rip-space-1);
    font-size: var(--rip-text-sm);
    color: var(--rip-gray-400);
    text-decoration: none;
    transition: var(--rip-transition);
}

.rip-docs-trust__docs-link:hover {
    color: var(--rip-primary);
    text-decoration: none;
}

/* ==========================================================================
   Hero Section (Overview)
   ========================================================================== */

.rip-docs-hero {
    text-align: center;
    padding: var(--rip-space-8) 0;
    margin-bottom: var(--rip-space-6);
}

.rip-docs-hero__title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--rip-gray-900);
    margin: 0 0 var(--rip-space-3) 0;
    line-height: 1.2;
}

.rip-docs-hero__desc {
    font-size: var(--rip-text-lg);
    color: var(--rip-gray-500);
    max-width: 600px;
    margin: 0 auto var(--rip-space-6) auto;
    line-height: 1.6;
}

.rip-docs-hero__actions {
    display: flex;
    gap: var(--rip-space-3);
    justify-content: center;
    flex-wrap: wrap;
}

.rip-docs-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--rip-space-2);
    padding: var(--rip-space-3) var(--rip-space-6);
    border-radius: var(--rip-radius-lg);
    font-size: var(--rip-text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--rip-transition);
}

.rip-docs-hero__btn--primary {
    background: var(--rip-primary);
    color: #fff;
}

.rip-docs-hero__btn--primary:hover {
    background: var(--rip-primary-dark);
    color: #fff;
    text-decoration: none;
}

.rip-docs-hero__btn--secondary {
    background: var(--rip-gray-100);
    color: var(--rip-gray-700);
}

.rip-docs-hero__btn--secondary:hover {
    background: var(--rip-gray-200);
    color: var(--rip-gray-900);
    text-decoration: none;
}

/* Theme override protection */
.rip-docs-hero__btn--primary,
.rip-docs-hero__btn--primary:visited,
.rip-docs-hero__btn--primary:hover,
.rip-docs-hero__btn--primary:active { color: #fff !important; }
.rip-docs-hero__btn--primary svg { stroke: #fff !important; }
.rip-docs-hero__btn--secondary,
.rip-docs-hero__btn--secondary:visited { color: var(--rip-gray-700) !important; }
.rip-docs-hero__btn--secondary:hover,
.rip-docs-hero__btn--secondary:active { color: var(--rip-gray-900) !important; }

/* ==========================================================================
   Quick Links Grid
   ========================================================================== */

.rip-docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--rip-space-4);
    margin: var(--rip-space-6) 0;
}

.rip-docs-grid__item {
    display: flex;
    flex-direction: column;
    padding: var(--rip-space-5);
    border: 1px solid var(--rip-gray-200);
    border-radius: var(--rip-radius-lg);
    text-decoration: none;
    transition: var(--rip-transition);
}

.rip-docs-grid__item:hover {
    border-color: var(--rip-primary);
    box-shadow: var(--rip-shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
}

.rip-docs-grid__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rip-radius);
    background: var(--rip-primary-50);
    color: var(--rip-primary);
    margin-bottom: var(--rip-space-3);
}

.rip-docs-grid__icon svg {
    width: 20px;
    height: 20px;
}

.rip-docs-grid__title {
    font-size: var(--rip-text-base);
    font-weight: 600;
    color: var(--rip-gray-900);
    margin-bottom: var(--rip-space-1);
}

.rip-docs-grid__desc {
    font-size: var(--rip-text-sm);
    color: var(--rip-gray-500);
    line-height: 1.5;
}

/* ==========================================================================
   Ecosystem Diagram
   ========================================================================== */

.rip-docs-ecosystem {
    background: var(--rip-gray-50);
    border: 1px solid var(--rip-gray-200);
    border-radius: var(--rip-radius-xl);
    padding: var(--rip-space-6);
    margin: var(--rip-space-6) 0;
    text-align: center;
}

.rip-docs-ecosystem__title {
    font-size: var(--rip-text-lg);
    font-weight: 600;
    color: var(--rip-gray-800);
    margin: 0 0 var(--rip-space-4) 0;
}

.rip-docs-ecosystem__diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--rip-space-4);
    flex-wrap: wrap;
}

.rip-docs-ecosystem__node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--rip-space-2);
    padding: var(--rip-space-4);
    background: #fff;
    border: 2px solid var(--rip-gray-200);
    border-radius: var(--rip-radius-lg);
    min-width: 140px;
    transition: var(--rip-transition);
}

.rip-docs-ecosystem__node--primary {
    border-color: var(--rip-primary);
    box-shadow: 0 0 0 3px var(--rip-primary-50);
}

.rip-docs-ecosystem__node-icon {
    width: 36px;
    height: 36px;
    color: var(--rip-primary);
}

.rip-docs-ecosystem__node-label {
    font-size: var(--rip-text-sm);
    font-weight: 600;
    color: var(--rip-gray-700);
}

.rip-docs-ecosystem__node-desc {
    font-size: var(--rip-text-xs);
    color: var(--rip-gray-400);
}

.rip-docs-ecosystem__arrow {
    font-size: var(--rip-text-xl);
    color: var(--rip-gray-300);
}

/* ==========================================================================
   Quick Start Steps
   ========================================================================== */

.rip-docs-steps {
    display: flex;
    flex-direction: column;
    gap: var(--rip-space-4);
    margin: var(--rip-space-6) 0;
}

.rip-docs-step {
    display: flex;
    gap: var(--rip-space-4);
    align-items: flex-start;
}

.rip-docs-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: var(--rip-radius-full);
    background: var(--rip-primary);
    color: #fff;
    font-size: var(--rip-text-sm);
    font-weight: 700;
}

.rip-docs-step__content h4 {
    font-size: var(--rip-text-base);
    font-weight: 600;
    color: var(--rip-gray-800);
    margin: var(--rip-space-1) 0 var(--rip-space-2) 0;
}

.rip-docs-step__content p {
    font-size: var(--rip-text-sm);
    color: var(--rip-gray-500);
    margin: 0;
}

/* ==========================================================================
   Info Box / Callout
   ========================================================================== */

.rip-docs-callout {
    display: flex;
    gap: var(--rip-space-3);
    padding: var(--rip-space-4);
    border-radius: var(--rip-radius-lg);
    margin: var(--rip-space-4) 0;
    font-size: var(--rip-text-sm);
    line-height: 1.6;
}

.rip-docs-callout svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rip-docs-callout--info {
    background: var(--rip-info-bg);
    color: #1E40AF;
}

.rip-docs-callout--warning {
    background: var(--rip-warning-bg);
    color: #92400E;
}

.rip-docs-callout--success {
    background: var(--rip-success-bg);
    color: #065F46;
}

.rip-docs-callout--danger {
    background: var(--rip-danger-bg);
    color: #991B1B;
}

/* ==========================================================================
   Inline Code
   ========================================================================== */

.rip-docs__content code:not([class]) {
    font-family: var(--rip-font-mono);
    font-size: 0.875em;
    padding: 2px 6px;
    background: var(--rip-gray-100);
    border-radius: var(--rip-radius-sm);
    color: var(--rip-danger);
    word-break: break-word;
}

/* ==========================================================================
   Base URL Box
   ========================================================================== */

.rip-docs-baseurl {
    display: flex;
    align-items: center;
    gap: var(--rip-space-3);
    padding: var(--rip-space-3) var(--rip-space-4);
    background: var(--rip-gray-50);
    border: 1px solid var(--rip-gray-200);
    border-radius: var(--rip-radius-lg);
    margin: var(--rip-space-4) 0;
}

.rip-docs-baseurl__label {
    font-size: var(--rip-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rip-gray-400);
    white-space: nowrap;
}

.rip-docs-baseurl__url {
    font-family: var(--rip-font-mono);
    font-size: var(--rip-text-sm);
    color: var(--rip-primary);
    font-weight: 500;
    word-break: break-all;
}

/* ==========================================================================
   Roles Table (Authentication page)
   ========================================================================== */

.rip-docs-roles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--rip-text-sm);
    margin: var(--rip-space-4) 0;
}

.rip-docs-roles-table th {
    text-align: left;
    padding: var(--rip-space-3);
    background: var(--rip-gray-50);
    border-bottom: 2px solid var(--rip-gray-200);
    font-weight: 600;
    color: var(--rip-gray-700);
}

.rip-docs-roles-table td {
    padding: var(--rip-space-3);
    border-bottom: 1px solid var(--rip-gray-100);
    color: var(--rip-gray-700);
}

.rip-docs-roles-table tr:hover td {
    background: var(--rip-gray-50);
}

/* ==========================================================================
   Categories Grid
   ========================================================================== */

.rip-docs-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--rip-space-4);
    margin: var(--rip-space-4) 0;
}

.rip-docs-category {
    padding: var(--rip-space-4);
    border: 1px solid var(--rip-gray-200);
    border-radius: var(--rip-radius-lg);
    transition: var(--rip-transition);
}

.rip-docs-category:hover {
    box-shadow: var(--rip-shadow);
}

.rip-docs-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--rip-space-2);
}

.rip-docs-category__id {
    font-family: var(--rip-font-mono);
    font-size: var(--rip-text-xs);
    color: var(--rip-gray-400);
    background: var(--rip-gray-100);
    padding: 2px 8px;
    border-radius: var(--rip-radius-sm);
}

.rip-docs-category__name {
    font-weight: 600;
    color: var(--rip-gray-800);
    margin-bottom: var(--rip-space-1);
}

.rip-docs-category__desc {
    font-size: var(--rip-text-sm);
    color: var(--rip-gray-500);
    line-height: 1.5;
    margin-bottom: var(--rip-space-2);
}

.rip-docs-category__severity {
    display: flex;
    align-items: center;
    gap: var(--rip-space-2);
}

.rip-docs-category__severity-bar {
    flex: 1;
    height: 6px;
    background: var(--rip-gray-200);
    border-radius: var(--rip-radius-full);
    overflow: hidden;
}

.rip-docs-category__severity-fill {
    height: 100%;
    border-radius: var(--rip-radius-full);
    transition: width 0.5s ease;
}

.rip-docs-category__severity-fill--low { background: var(--rip-success); }
.rip-docs-category__severity-fill--medium { background: var(--rip-warning); }
.rip-docs-category__severity-fill--high { background: #F97316; }
.rip-docs-category__severity-fill--critical { background: var(--rip-danger); }

.rip-docs-category__severity-label {
    font-size: var(--rip-text-xs);
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================================================================
   Changelog
   ========================================================================== */

.rip-docs-changelog__entry {
    margin-bottom: var(--rip-space-8);
    padding-left: var(--rip-space-6);
    border-left: 2px solid var(--rip-gray-200);
    position: relative;
}

.rip-docs-changelog__entry::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rip-primary);
}

.rip-docs-changelog__header {
    display: flex;
    align-items: baseline;
    gap: var(--rip-space-3);
    margin: 0 0 var(--rip-space-2) 0;
    padding: 0;
    border: 0;
}

.rip-docs-changelog__version {
    font-size: var(--rip-text-xl);
    font-weight: 700;
    color: var(--rip-gray-900);
    margin: 0 0 var(--rip-space-1) 0;
}

.rip-docs-changelog__date {
    font-size: var(--rip-text-sm);
    color: var(--rip-gray-400);
    margin-bottom: var(--rip-space-3);
}

.rip-docs-changelog__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rip-docs-changelog__list li {
    position: relative;
    padding: var(--rip-space-1) 0 var(--rip-space-1) var(--rip-space-5);
    color: var(--rip-gray-600);
    font-size: var(--rip-text-sm);
}

.rip-docs-changelog__list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--rip-primary);
    font-weight: 600;
}

.rip-docs-changelog__tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--rip-radius-full);
    font-size: 11px;
    font-weight: 600;
    margin-right: var(--rip-space-1);
}

.rip-docs-changelog__tag--added { background: var(--rip-success-bg); color: #059669; }
.rip-docs-changelog__tag--changed { background: var(--rip-info-bg); color: #2563EB; }
.rip-docs-changelog__tag--fixed { background: rgba(124, 58, 237, 0.1); color: #6D28D9; }
.rip-docs-changelog__tag--deprecated { background: var(--rip-warning-bg); color: #B45309; }
.rip-docs-changelog__tag--removed { background: var(--rip-danger-bg); color: #DC2626; }

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */

.rip-docs-faq__category {
    margin-bottom: var(--rip-space-6);
}

.rip-docs-faq__category-title {
    font-size: var(--rip-text-lg);
    font-weight: 600;
    color: var(--rip-gray-800);
    margin: 0 0 var(--rip-space-3) 0;
    padding-bottom: var(--rip-space-2);
    border-bottom: 1px solid var(--rip-gray-200);
}

.rip-docs-faq__item {
    border: 1px solid var(--rip-gray-200);
    border-radius: var(--rip-radius-lg);
    margin-bottom: var(--rip-space-2);
    overflow: hidden;
    transition: var(--rip-transition);
}

.rip-docs-faq__item:hover {
    border-color: var(--rip-gray-300);
}

.rip-docs-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--rip-space-3);
    width: 100%;
    padding: var(--rip-space-4);
    background: none;
    border: none;
    cursor: pointer;
    font-size: var(--rip-text-base);
    font-weight: 600;
    color: var(--rip-gray-800);
    text-align: left;
    font-family: var(--rip-font-sans);
    line-height: 1.4;
}

.rip-docs-faq__question:hover {
    color: var(--rip-primary);
}

.rip-docs-faq__chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--rip-gray-400);
    transition: transform 0.2s ease;
}

.rip-docs-faq__item--open .rip-docs-faq__chevron {
    transform: rotate(180deg);
    color: var(--rip-primary);
}

.rip-docs-faq__answer {
    display: none;
    padding: 0 var(--rip-space-4) var(--rip-space-4) var(--rip-space-4);
    color: var(--rip-gray-600);
    font-size: var(--rip-text-sm);
    line-height: 1.7;
}

.rip-docs-faq__item--open .rip-docs-faq__answer {
    display: block;
}

.rip-docs-faq__answer p {
    margin: 0 0 var(--rip-space-3) 0;
}

.rip-docs-faq__answer p:last-child {
    margin-bottom: 0;
}

.rip-docs-faq__answer code {
    font-family: var(--rip-font-mono);
    font-size: 0.875em;
    padding: 2px 6px;
    background: var(--rip-gray-100);
    border-radius: var(--rip-radius-sm);
    color: var(--rip-danger);
}

.rip-docs-faq__answer ul {
    margin: var(--rip-space-2) 0;
    padding-left: var(--rip-space-5);
}

.rip-docs-faq__answer li {
    margin-bottom: var(--rip-space-1);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .rip-docs__layout--with-toc {
        grid-template-columns: 260px 1fr;
    }

    .rip-docs-toc {
        display: none;
    }
}

@media (max-width: 782px) {
    .rip-docs {
        padding: var(--rip-space-4) var(--rip-space-3);
    }

    .rip-docs__layout,
    .rip-docs__layout--with-toc {
        grid-template-columns: 1fr;
    }

    .rip-docs-nav {
        display: none;
    }

    .rip-docs-mobile-toggle {
        display: flex;
    }

    .rip-docs-header {
        flex-direction: column;
        text-align: center;
        gap: var(--rip-space-3);
        padding: var(--rip-space-4);
    }

    a.rip-docs-header__brand {
        flex-direction: column;
    }

    .rip-docs-header__title {
        font-size: var(--rip-text-xl);
    }

    .rip-docs-hero__title {
        font-size: var(--rip-text-2xl);
    }

    .rip-docs-ecosystem__diagram {
        flex-direction: column;
    }

    .rip-docs-ecosystem__arrow {
        transform: rotate(90deg);
    }

    .rip-docs-pager {
        flex-direction: column;
    }

    .rip-docs-pager__link {
        max-width: 100%;
    }

    .rip-docs-pager__link--next {
        margin-left: 0;
    }

    .rip-docs-endpoint__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rip-docs-endpoint__badges {
        margin-left: 0;
    }

    .rip-docs-trust {
        flex-direction: column;
        gap: var(--rip-space-3);
        align-items: center;
    }

    .rip-docs-trust__badges {
        flex-direction: column;
        gap: var(--rip-space-2);
    }

    .rip-docs-params {
        display: block;
        overflow-x: auto;
    }

    .rip-docs-grid {
        grid-template-columns: 1fr;
    }

    .rip-docs-categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rip-docs-hero {
        padding: var(--rip-space-4) 0;
    }

    .rip-docs-code__pre {
        padding: var(--rip-space-3);
    }

    .rip-docs-code__pre code {
        font-size: 12px;
    }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
    .rip-docs-nav,
    .rip-docs-toc,
    .rip-docs-mobile-toggle,
    .rip-docs-mobile-overlay,
    .rip-docs-mobile-panel,
    .rip-docs-pager,
    .rip-docs-code__copy {
        display: none !important;
    }

    .rip-docs__layout,
    .rip-docs__layout--with-toc {
        grid-template-columns: 1fr !important;
    }

    .rip-docs-endpoint {
        break-inside: avoid;
    }

    .rip-docs-code__pre {
        background: #f5f5f5 !important;
        border: 1px solid #ddd;
    }

    .rip-docs-code__pre code {
        color: #333 !important;
    }
}
