/* ========================================
   Apex Financial Partners — Custom CSS
   ======================================== */

/* Glass utility */
.glass {
    background: rgba(10, 22, 40, 0.6);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #c9a84c 0%, #e8e4dc 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card glow on hover */
.card-glow:hover {
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.15);
}

/* TOC sidebar styling */
.toc-sidebar .toc {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-sidebar .toc li {
    margin: 0;
    padding: 0;
}

.toc-sidebar .toc a {
    display: block;
    padding: 4px 0;
    color: #64748b;
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.4;
    transition: color 0.15s;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.toc-sidebar .toc a:hover {
    color: #c9a84c;
    border-left-color: #c9a84c;
}

.toc-sidebar .toc .toc {
    padding-left: 8px;
}

/* TOC anchor links (permalinks) */
.toc-anchor {
    color: #c9a84c;
    opacity: 0;
    margin-left: 0.5rem;
    text-decoration: none;
    font-size: 0.875em;
    transition: opacity 0.15s;
}

h2:hover .toc-anchor,
h3:hover .toc-anchor {
    opacity: 1;
}

/* Prose table improvements */
.prose table {
    font-family: 'Inter', system-ui, sans-serif;
    border-collapse: collapse;
    width: 100%;
}

.prose th {
    padding: 10px 16px;
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prose td {
    padding: 8px 16px;
}

.prose tbody tr:nth-child(even) {
    background-color: rgba(10, 22, 40, 0.02);
}

/* Alpine.js cloak */
[x-cloak] {
    display: none !important;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom scrollbar for modal */
.search-modal-content::-webkit-scrollbar {
    width: 6px;
}
.search-modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.search-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
