/* ---------- Research v2 hero tabs (user, 2026-12-04) ----------
   The three research v2 pages linked on the hero's bottom edge (partials/research-v2-tabs), identical to Recognition v2's
   tabs (.pa2-tabs in perforassess-v2.css). Self-contained: the pages use two page sheets (research-v2.css,
   academic-research.css). Spec docs/superpowers/specs/2026-12-04-research-v2-hero-tabs-design.md */

/* The hero keeps its height (the pictures' approved framing): a column, the copy centred above the tabs, the tabs on
   the bottom edge with their own 18px under them. Two classes, so it beats the page sheets' hero rules. */
.rv2-hero.rtabs-hero,
.ar-hero.rtabs-hero {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
}

.rv2-hero.rtabs-hero > .rv2-hero__inner,
.ar-hero.rtabs-hero > .ar-hero__inner {
    align-self: flex-start;
    margin-block: auto;
}

/* Where the picture is bright behind the tabs, a dark band under the row, fading upwards over 150px, so the labels
   reach 4.5:1 (measured 2026-12-04: Academic Research's white papers gave 1.1:1, the CRI map's light wave 2.5:1). Each
   hero's own scrim colour. Not on Market Research: over its hexagons the labels measured 5.6:1 or more. */
.rtabs-hero--scrim::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    height: 150px;
    pointer-events: none;
}

.rv2-hero.rtabs-hero--scrim::before {
    background: linear-gradient(0deg, rgba(5, 23, 38, .8) 0, rgba(5, 23, 38, .8) 76px, rgba(5, 23, 38, 0) 100%);
}

.ar-hero.rtabs-hero--scrim::before {
    background: linear-gradient(0deg, rgba(8, 30, 36, .8) 0, rgba(8, 30, 36, .8) 76px, rgba(8, 30, 36, 0) 100%);
}

/* margin-top: where the copy fills the hero (Market at 1024px, phones) the button kept only the row's 14px + 6px from the
   labels; 24px more gives 44px, the hero's own top padding. Where there is room the auto margins absorb it. */
.rtabs {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: 24px;
    padding: 14px 0 18px;
    font-family: 'Poppins', 'Poppins Fallback', sans-serif;
}

.rtabs .rtabs__tab {
    display: block;
    flex: 1 1 0;
    padding: 6px 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    opacity: .9;
    transition: opacity .2s ease;
}

.rtabs .rtabs__tab:hover,
.rtabs .rtabs__tab:focus-visible {
    color: #fff;
    text-decoration: none;
    opacity: 1;
}

.rtabs .rtabs__tab:focus-visible {
    outline: 2px solid #2ad1e6;
    outline-offset: 4px;
}

.rtabs .rtabs__tab::after {
    content: '';
    display: block;
    width: 64px;
    height: 2px;
    margin: 10px auto 0;
    background: rgba(255, 255, 255, .35);
}

.rtabs .rtabs__tab.is-active::after {
    height: 3px;
    background: #2ad1e6;
}

/* Phones: the three tabs in one row (user, 2026-12-04: "al doilea cuvant sa fie sub primul cuvant. asa incap toate 3
   una langa alta pe mobile?"), on all three research v2 pages; 8px between them (touch spacing). The row is a container
   for the rule below. Recognition v2's pa2 tabs keep two per row. */
@media (max-width: 767px) {
    .rtabs {
        gap: 8px;
        container: rtabs / inline-size;
    }

    .rtabs .rtabs__tab {
        font-size: 15px;
        white-space: normal;
    }
}

/* All labels on one line or all on two, the second word under the first (user's choice: only where they no longer
   fit): the columns are equal, so they cross together. 496px = 3 x 160 + 2 x 8; 160 = "Academic Research" at 15px
   (153px) + ~4% for font rendering. Below it each label is min-content wide = one word per line (every label has two
   words). At 320 a column is 85px, "Academic" 78px. */
@container rtabs (width < 496px) {
    .rtabs .rtabs__label {
        display: block;
        width: min-content;
        margin: 0 auto;
    }
}
