/* ================================
   BE CITATION TABS – FULL, FINAL, NO-JUMP STYLES
   Includes BioExplorer button styling:
   Yellow + Black base
   Green + White hover
   Stable pill, no shrink, no flash
   ================================ */

/* ================================
   Wrapper
   ================================ */

.be-cite-tabs {
    margin: 1.5rem 0 2rem;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e3e7ee;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    padding: 0;
    font-size: 15px;
}

.be-cite-tabs__heading {
    margin: 0;
    padding: 14px 18px 4px;
    font-size: 1.1rem;
    font-weight: 700;
}

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

.be-cite-tabs__nav {
    display: flex;
    border-top: 1px solid #e5e8f0;
    border-bottom: 1px solid #e5e8f0;
    overflow-x: auto;
}

.be-cite-tabs__tab {
    flex: 0 0 auto;
    border: none;
    background: #ffffff;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0;
    text-transform: none;
    color: #222222;
    border-right: 1px solid #eceff5;
    outline: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.be-cite-tabs__tab:last-child {
    border-right: none;
}

.be-cite-tabs__tab.is-active {
    background: #0b5d0b;
    color: #ffffff;
}

.be-cite-tabs__tab:not(.is-active):hover {
    background: #f4cf58;
    color: #000000;
}

/* ================================
   Body
   ================================ */

.be-cite-tabs__body {
    padding: 14px 18px 18px;
}

.be-cite-tabs__citation {
    margin: 0 0 12px;
    line-height: 1.55;
    word-wrap: break-word;
}

.be-cite-helper-text {
    margin: 0 0 8px;
    font-size: 0.95rem;
    color: #555;
}

/* ================================
   Copy Button – BioExplorer Style
   ================================ */

body .be-cite-tabs button.be-cite-tabs__copy,
body .be-cite-tabs button.be-cite-tabs__copy:hover,
body .be-cite-tabs button.be-cite-tabs__copy:focus,
body .be-cite-tabs button.be-cite-tabs__copy:focus-visible,
body .be-cite-tabs button.be-cite-tabs__copy:active {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    min-height: 35px;
    padding: 0 1.05rem;
    box-sizing: border-box;
    line-height: 1;
    font-size: 0.80rem;
    font-weight: 200;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    border: 2px solid #000;
    background: #f4cf58;
    color: #000;
    outline: none;
    text-decoration: none;
    box-shadow: 3px 3px 0 #000;
    transform: translate(0, 0);
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease;
}

/* Hover / Focus – Green + White (exact BioExplorer green) */
body .be-cite-tabs button.be-cite-tabs__copy:hover,
body .be-cite-tabs button.be-cite-tabs__copy:focus,
body .be-cite-tabs button.be-cite-tabs__copy:focus-visible {
    background: #0b5d0b;
    color: #ffffff;
    transform: translate(0, 0);
    box-shadow: 4px 4px 0 #000;
}

/* Active press – subtle depth, no shrink */
body .be-cite-tabs button.be-cite-tabs__copy:active {
    transform: translate(1px, 1px);
    box-shadow: 3px 3px 0 #000;
}

/* Copied state – keep green, no animation change */
body .be-cite-tabs button.be-cite-tabs__copy.is-copied {
    background: #0b5d0b;
    color: #ffffff;
}

/* ================================
   Small screens
   ================================ */

@media (max-width: 600px) {
    .be-cite-tabs__heading {
        padding: 12px 12px 2px;
    }

    .be-cite-tabs__nav {
        padding-left: 2px;
    }

    .be-cite-tabs__body {
        padding: 12px;
    }
}
