/* ── Breakout Story — single profile template ──────────────────────────── */

.tbc-story-page-header {
    padding-top: var(--space-120-40);
    padding-bottom: var(--space-80-40);
}

.tbc-story-page-header .tbc-container{
    text-align: center;
}

.tbc-story-page-title {
    font-family: var(--tbc-font-heading);
    font-size: var(--fs-48-24);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
}

.tbc-story-page-subtitle {
    font-family: var(--tbc-font-body);
    font-size: var(--fs-22-18);
    font-weight: 800;
    margin: 0;
}


/* ── Profile ─────────────────────────────────────────────────────────────── */
/* .tbc-story-profile {
    padding: var(--space-40-20) 0 var(--space-80-40);
} */

.tbc-story-profile__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-60-24);
    align-items: stretch;
    max-width: 100%;
    padding-inline: 0;
}

.tbc-story-profile__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
}
.tbc-story-profile__body {
    padding-right: 20px;
    max-width: 26rem;
    margin-inline: auto;
    padding-block: var(--space-80-40);
}
.tbc-story-profile__eyebrow {
    font-family: var(--tbc-font-heading);
    font-size: var(--fs-32-24);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 0.25rem;
}

.tbc-story-profile__name {
    font-family: var(--tbc-font-heading);
    font-size: var(--fs-32-24);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    line-height: 1.15;
}

.tbc-story-profile__tagline {
    font-size: clamp(1rem, 0.571rem + 0.893vw, 1.375rem);
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.tbc-story-profile__meta {
    font-size: 1rem;
    margin-top: var(--space-80-40);
}

.tbc-story-profile__meta p {
    margin: 0 0 0.4rem;
}

.tbc-story-profile__social {
    display: flex;
    gap: 1rem;
    margin-top: var(--space-60-24);
}

.tbc-story-profile__social a {
    color: var(--tbc-color-text);
    transition: color 0.25s ease;
}

.tbc-story-profile__social a:hover {
    color: var(--tbc-pink-accent);
}

/* ── Interview Q&A ───────────────────────────────────────────────────────── */
.tbc-story-profile+section{
    padding-top: var(--space-80-40);
}
.tbc-story-qa {
    padding-block: calc(var(--space-80-40) / 2);
}

.tbc-story-qa__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-40-20);
}

.tbc-story-qa__heading {
    font-family: var(--tbc-font-body);
    font-size: clamp(1.125rem, 0.554rem + 1.19vw, 1.625rem);
    font-weight: 800;
    margin: 0 0 0.35rem;
}

.tbc-story-qa__subheading {
    font-family: var(--tbc-font-body);
    font-weight: 900;
    font-size: 1rem;
    margin: 0 0 1.25rem;
}

.tbc-story-qa__body {
    font-family: var(--tbc-font-body);
    font-size: 1rem;
    line-height: 1.7;
}

.tbc-story-qa__body p {
    margin: 0 0 1rem;
}

.tbc-story-qa__body p:last-child {
    margin-bottom: 0;
}

/* ── Video ───────────────────────────────────────────────────────────────── */
.tbc-story-video {
    padding-block: calc(var(--space-80-40) / 2);
}
.tbc-story-video:has(+.tbc-story-gallery){
    padding-bottom: 10px;
}
.tbc-story-video+.tbc-story-gallery{
    padding-top: 10px;
}
.tbc-story-video__embed {
    position: relative;
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.tbc-story-video__embed iframe,
.tbc-story-video__embed embed,
.tbc-story-video__embed object,
.tbc-story-video__embed img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.tbc-story-video__embed img {
    object-fit: cover;
    display: block;
}

/* ── Portfolio image gallery (2x2) ───────────────────────────────────────── */
.tbc-story-gallery {
    padding: var(--space-40-20) 0;
}

.tbc-story-gallery__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

.tbc-story-gallery__item img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

/* ── About box ───────────────────────────────────────────────────────────── */
.tbc-story-about {
    padding: var(--space-40-20) 0 var(--space-80-40);
}

.tbc-story-about__box {
    display: flex;
    align-items: center;
    gap: var(--space-60-24);
}

.tbc-story-about__photo {
    flex-shrink: 0;
    --bio-photo-size: 13.188rem;
    width: var(--bio-photo-size);
    height: var(--bio-photo-size);
    border-radius: 50%;
    overflow: hidden;
}

.tbc-story-about__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tbc-story-about__heading {
    font-family: var(--tbc-font-body);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.45;
    margin: 0 0 0.4rem;
    letter-spacing: 3%;
}

.tbc-story-about__body p {
    font-size: 1rem;
    line-height: 1.45;
    letter-spacing: 3%;
    margin: 0;
}

/* ── Share + prev/next nav bar (direct port from BSB bsb-single-nav-wrapper) ── */
.tbc-story-share-nav {
    padding: 0 0 var(--space-80-40);
}

.tbc-story-share-nav__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.tbc-story-share {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tbc-story-share a,
.tbc-copy-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--tbc-color-text);
    padding: 0;
    transition: opacity 0.3s ease;
}

.tbc-story-share a:hover,
.tbc-copy-link-btn:hover {
    opacity: 0.5;
}

.tbc-story-share svg,
.tbc-copy-link-btn svg {
    width: 22px;
    height: 22px;
}

.tbc-copy-link-btn {
    position: relative;
}

.tbc-copy-link-btn::after {
    content: 'Copied!';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--tbc-color-black);
    color: #ffffff;
    font-family: var(--tbc-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tbc-copy-link-btn.is-copied {
    color: var(--tbc-pink-accent);
    opacity: 1;
}

.tbc-copy-link-btn.is-copied::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tbc-story-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.tbc-story-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--tbc-font-body);
    font-size: 0.875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tbc-color-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.tbc-story-nav-link:hover {
    opacity: 0.6;
}

.tbc-story-nav-link--disabled {
    opacity: 0.25;
    cursor: default;
}

.tbc-story-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Archive / listing grid ──────────────────────────────────────────────── */
.tbc-story-archive {
    padding: var(--space-40-20) 0 var(--space-80-40);
}

.tbc-story-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-40-20);
}

.tbc-story-archive__empty {
    font-family: var(--tbc-font-body);
    color: var(--tbc-color-text);
}

.tbc-story-card {
    display: block;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    border: 0.5px solid #e5e5e5;
    box-shadow: 0px 0px 10px 0px #00000014;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.tbc-story-card:hover {
    box-shadow: 0px 4px 16px 0px #00000026;
    transform: translateY(-2px);
}

.tbc-story-card__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.tbc-story-card__body {
    padding: 2rem;
}

.tbc-story-card__discipline {
    font-family: var(--tbc-font-body);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--tbc-color-black);
    margin: 0 0 0.5rem;
}

.tbc-story-card__name {
    font-family: var(--tbc-font-heading);
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--tbc-color-black);
    margin: 0 0 0.5rem;
}


.tbc-story-card__tagline {
    font-family: var(--tbc-font-body);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--tbc-color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Archive pagination (WP core markup) ─────────────────────────────────── */
.tbc-story-archive .navigation.pagination {
    margin-top: var(--space-60-24);
}

.tbc-story-archive .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tbc-story-archive .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    font-family: var(--tbc-font-body);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tbc-color-text);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.tbc-story-archive a.page-numbers:hover {
    background: var(--tbc-color-black);
    border-color: var(--tbc-color-black);
    color: #ffffff;
}

.tbc-story-archive .page-numbers.current {
    background: var(--tbc-color-black);
    border-color: var(--tbc-color-black);
    color: #ffffff;
}

.tbc-story-archive .page-numbers.dots {
    border: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .tbc-story-page-header{
        padding-top: 100px;
    }
    .tbc-story-profile__grid {
        grid-template-columns: 1fr;
    }
    .tbc-story-profile__body{
        max-width: 100%;
        padding-top: 0;
        padding-bottom: 20px;
        padding-inline: 20px;
    }
    
    .tbc-story-about__box {
        flex-direction: column;
        text-align: center;
    }
    
    .tbc-story-archive__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tbc-story-share-nav__row {
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .tbc-story-nav {
        gap: 1.5rem;
    }
}


@media (max-width: 600px) {
    .tbc-story-page-header{
        padding-top: 80px;
    }
    .tbc-story-page-title{
        font-size: 1.5rem;
    }
    .tbc-story-page-subtitle{
        font-size: 1.125rem;
    }
    .tbc-story-archive__grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 375px) {
    .tbc-story-gallery__grid{
        gap: 10px;
    }
    .tbc-story-video__embed iframe,
    .tbc-story-video__embed embed,
    .tbc-story-video__embed object,
    .tbc-story-video__embed img{
        border-radius: 10px;
    }
    .tbc-story-gallery__item img{
        border-radius: 10px;
    }
    .tbc-story-share-nav__row {
        flex-direction: column-reverse;
        align-items: flex-start;
    }
    .tbc-story-share {
        gap: 1rem;
    }
    .tbc-story-nav {
        gap: 0.75rem;
        width: 100%;
        justify-content: space-between;
        margin-bottom: 1rem;
    }
    .tbc-story-nav-link {
        font-size: 0.8rem;
    }
}
