/* === DOC TABLE === */
.doc-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
            0 0 10px rgba(0, 150, 255, 0.18),
            0 0 20px rgba(0, 150, 255, 0.10);
    border: 1px solid #3c3f41;
}

.struct-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #3c3f41;
    
    box-shadow:
            0 0 6px rgba(0, 30, 30, 0.15),
            0 0 12px rgba(0, 30, 30, 0.08);
}

.doc-table {
    --col-hover-bg: rgba(0, 150, 255, 0.12);
    --col-hover-glow: rgba(0, 150, 255, 0.15);

    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: var(--re-bg-dark);
}

/* Header */
.doc-table th {
    background: var(--re-bg-darker);
    color: var(--re-header-text);
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid #3c3f41;
    border-right: 1px solid #3c3f41;
}

/* Cells */
.doc-table td {
    padding: 0.65rem 1rem;
    color: var(--re-text-light);
    border-bottom: 1px solid #3c3f41;
    border-right: 1px solid #3c3f41;
    font-size: 0.9rem;
}

/* Remove last column divider */
.doc-table td:last-child,
.doc-table th:last-child {
    border-right: none;
}

/* Zebra striping */
.doc-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
}

/* Hover */
.doc-table tr:hover {
    background: rgba(0, 150, 255, 0.12);
    color: var(--re-accent-blue);
    transition: background 0.15s ease, color 0.15s ease;
}

/* Last row cleanup */
.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-table td:hover,
.doc-table th:hover {
    position: relative;
}

.doc-table td,
.doc-table th {
    position: relative;
    z-index: 2;
}

/* === DOC META DATA === */
.doc-meta {
    background: rgba(0, 150, 255, 0.05);
    border-left: 4px solid var(--re-accent-blue);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.doc-meta p {
    margin: 0.25rem 0;
    color: var(--re-text-gray);
}

.doc-meta strong {
    color: var(--re-text-gray);
}

.doc-meta a {
    color: var(--re-text-gray);
    text-decoration: none;
    border-radius: 6px;
    padding: 2px 4px;
}

.doc-meta a:hover {
    background: rgba(0, 150, 255, 0.15);
    color: var(--re-accent-blue);
}

.doc-meta a:active,
.doc-meta a.active {
    background: rgba(0, 150, 255, 0.22);
    color: var(--re-accent-blue);
    font-weight: 600;
    box-shadow: inset 0 0 8px rgba(0, 150, 255, 0.35);
}

/* === METHOD BOX === */
.method-box {
    position: relative;
    z-index: 1;
    scroll-margin: 40vh 0;
    background: var(--re-bg-dark);
    padding: 1.25rem 1.4rem;
    margin: 1.5rem 0;
    border: 1px solid #3c3f41;
    border-radius: 12px;
    box-shadow:
            0 0 10px rgba(0, 150, 255, 0.18),
            0 0 20px rgba(0, 150, 255, 0.10);
}

/* Highlight overlay */
.method-box::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: transparent;
    pointer-events: none;
    opacity: 0;
    z-index: 20;
    mix-blend-mode: screen;
}

@keyframes re-highlight {
    0% {
        opacity: 1;
        background: rgba(0, 150, 255, 0.35);
        box-shadow:
                0 0 25px rgba(0, 150, 255, 0.85),
                0 0 40px rgba(0, 150, 255, 0.45);
    }
    40% {
        opacity: 1;
        background: rgba(0, 150, 255, 0.20);
        box-shadow:
                0 0 18px rgba(0, 150, 255, 0.55),
                0 0 28px rgba(0, 150, 255, 0.30);
    }
    100% {
        opacity: 0;
        background: transparent;
        box-shadow: none;
    }
}

.method-box.is-target::after {
    animation: re-highlight 1.2s ease-out forwards;
}

/* Section titles */
.method-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* === DOC BLOCKS (inside method box) === */
.doc-block {
    margin: 1rem 0;
}

/* Subheadings */
.doc-block h4 {
    margin: 0 0 0.35rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--re-text-light);
}

/* Parameter/exception rows */
.doc-line {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.doc-line:last-child {
    border-bottom: none;
}

/* Parameter name */
.doc-label {
    font-weight: 600;
    color: var(--re-text-light);
    min-width: 120px; /* tighter */
}

/* Parameter description */
.doc-text {
    color: var(--re-text-gray);
}

/* === MEMBER SIGNATURE BOX === */
.member-signature {
    background: #2a2f36; /* slightly lighter than method-box */
    border: 1px solid #3c3f41;
    border-radius: 8px;

    display: inline-block;
    max-width: 100%;
    overflow-x: auto;

    box-shadow:
            0 0 6px rgba(0, 30, 30, 0.15),
            0 0 12px rgba(0, 30, 30, 0.08);
}

.member-signature code[class*="language-"],
.member-signature pre[class*="language-"] {
    padding: 0.3rem !important;
    margin: 0 !important;
    background: transparent !important;
}

.member-signature pre {
    margin: 0;
    background: transparent !important;
}

.member-signature code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.9rem; /* slightly larger */
    line-height: 1.4;
    background: transparent !important;
    color: var(--re-text-light);
}
