/*
 * Lines & Waves Tabs
 * Intentionally inherits the site's typography and colors.
 */
.wp-block-lw-tabs.lw-tabs {
    --lw-tabs-gap: clamp(14px, 2.2vw, 30px);
    --lw-tabs-panel-gap: clamp(24px, 3vw, 44px);
    width: 100%;
}

.lw-tabs__nav {
    display: flex;
    align-items: flex-end;
    gap: var(--lw-tabs-gap);
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid currentColor;
}

/* Навігація з сервера прихована, доки JS її не активує (без JS видно весь контент). */
.lw-tabs__nav[hidden] {
    display: none;
}

.lw-tabs__button {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    position: relative;
    margin: 0;
    padding: 0 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    cursor: pointer;
    opacity: .52;
    transition: opacity .18s ease;
}

.lw-tabs__button::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .18s ease;
}

.lw-tabs__button:hover,
.lw-tabs__button:focus-visible,
.lw-tabs__button[aria-selected='true'] {
    opacity: 1;
}

.lw-tabs__button[aria-selected='true']::after {
    transform: scaleX(1);
}

.lw-tabs__button:focus-visible {
    outline: 1px dotted currentColor;
    outline-offset: 4px;
}

.lw-tab {
    padding-top: var(--lw-tabs-panel-gap);
}

.lw-tab[hidden] {
    display: none !important;
}

.lw-tab:focus {
    outline: none;
}

.lw-tab__content > :first-child {
    margin-top: 0;
}

.lw-tab__content > :last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .lw-tabs__nav {
        gap: 18px;
    }

    .lw-tabs__button {
        padding-bottom: 8px;
    }
}

/*
 * Блок «Біографія»: зліва дата, справа опис. Без ліній, лише текст.
 * Одна сітка на весь блок — колонка дат однакової ширини в усіх рядках.
 * Розкладка однакова на будь-якій ширині екрана: на телефоні змінюється лише ширина тексту.
 */
.wp-block-lw-bio.lw-bio {
    --lw-bio-date-max: 6.25em;
    --lw-bio-col-gap: clamp(14px, 3.5vw, 32px);
    --lw-bio-row-gap: .85em;
    display: grid;
    grid-template-columns: fit-content(var(--lw-bio-date-max)) minmax(0, 1fr);
    column-gap: var(--lw-bio-col-gap);
    row-gap: var(--lw-bio-row-gap);
    width: 100%;
    margin: 0;
    padding: 0;
}

.lw-bio__row {
    display: contents;
}

.lw-bio__date,
.lw-bio__text {
    margin: 0;
    padding: 0;
    border: 0;
    font-weight: inherit;
}

.lw-bio__date {
    font-variant-numeric: tabular-nums;
    opacity: .62;
}

.lw-bio__text {
    overflow-wrap: break-word;
}
