
/*
Talarpartner Talarguide Clean Core
This CSS styles only plugin components. It does not define page/container width.
Theme owns page layout.
*/

.tp-speaker-list-component {
    width: 100%;
}

.tp-speaker-list-count {
    margin-bottom: 18px;
    font-weight: 800;
}

.tp-speaker-list-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tp-speaker-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(11, 29, 43, 0.12);
    border-radius: 7px;
    box-shadow: 0 12px 30px rgba(11, 29, 43, 0.06);
}

.tp-speaker-card-image {
    display: block;
    aspect-ratio: 4 / 3.08;
    overflow: hidden;
    background: #e9e2d8;
}

.tp-speaker-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.tp-speaker-card-body {
    padding: 18px;
}

.tp-speaker-card-role {
    margin: 0 0 8px;
    color: var(--tp-ref-gold, var(--tp-ref-gold, #c99243));
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-speaker-card-body h2 {
    margin: 0 0 8px;
    line-height: 1.08;
}

.tp-speaker-card-body a {
    text-decoration: none;
}

.tp-speaker-card-link {
    color: var(--tp-ref-gold, var(--tp-ref-gold, #c99243));
    font-weight: 900;
}

.tp-speaker-profile {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.tp-speaker-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 48px;
    align-items: start;
}

.tp-speaker-profile-image img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
}

.tp-speaker-profile-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.tp-speaker-profile-meta div {
    background: #fff;
    border: 1px solid rgba(11, 29, 43, 0.08);
    border-radius: 8px;
    padding: 14px;
}

.tp-speaker-profile-meta strong {
    display: block;
    color: var(--tp-ref-gold, var(--tp-ref-gold, #c99243));
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tp-speaker-back {
    display: inline-block;
    margin-bottom: 18px;
    font-weight: 800;
    text-decoration: none;
}

.tp-speaker-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--tp-ref-ink, var(--tp-ref-ink, #0b1d2b));
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 960px) {
    .tp-speaker-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-speaker-profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .tp-speaker-list-grid,
    .tp-speaker-profile-meta {
        grid-template-columns: 1fr;
    }
}

/* v3.1: video preview and theme-color inheritance */
.tp-speaker-video{margin-top:32px}.tp-speaker-video h2{margin:0 0 14px}.tp-speaker-video-embed{position:relative;width:100%;max-width:860px;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:rgba(11,29,43,.08)}.tp-speaker-video-embed iframe,.tp-speaker-video-embed video,.tp-speaker-video-embed object,.tp-speaker-video-embed embed{width:100%;height:100%;display:block}.tp-speaker-video-link{color:var(--tp-ref-gold,var(--tp-ref-gold, #c99243));font-weight:900}.tp-speaker-primary-button{background:var(--tp-ref-gold,var(--tp-ref-gold, #c99243));color:#fff}


/* v3.2: Video and front-end refinements */
.tp-speaker-profile-pitch {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--tp-ref-muted, #6b6258);
}

.tp-speaker-video {
    margin: 26px 0 30px;
}

.tp-speaker-video h2 {
    margin: 0 0 14px;
}

.tp-speaker-video-embed {
    position: relative;
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(11, 29, 43, 0.08);
}

.tp-speaker-video-embed iframe,
.tp-speaker-video-embed video,
.tp-speaker-video-embed object,
.tp-speaker-video-embed embed {
    width: 100%;
    height: 100%;
    display: block;
}

.tp-speaker-video-link,
.tp-speaker-edit-link {
    color: var(--tp-ref-gold, #c99243);
    font-weight: 900;
}

.tp-speaker-admin-actions {
    margin: 0 0 18px;
}

.tp-speaker-primary-button {
    background: var(--tp-ref-gold, #c99243);
    color: #fff;
}


/* v3.3 single speaker layout refinements */
.tp-speaker-profile-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    align-items: start;
}

.tp-speaker-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    margin-bottom: 12px;
}

.tp-speaker-title-row h1 {
    margin-top: 0;
    margin-bottom: 0;
}

.tp-speaker-primary-button--top {
    justify-self: end;
    white-space: nowrap;
    margin-top: 6px;
}

.tp-speaker-profile-image {
    align-self: start;
}

.tp-speaker-profile-image img {
    aspect-ratio: 4 / 5.35;
    object-fit: cover;
    object-position: center top;
    width: 100%;
    border-radius: 14px;
}

.tp-speaker-video {
    margin: 22px 0 30px;
}

.tp-speaker-video-embed {
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(11, 29, 43, 0.08);
}

.tp-speaker-video-embed iframe,
.tp-speaker-video-embed video,
.tp-speaker-video-embed object,
.tp-speaker-video-embed embed {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

@media (max-width: 960px) {
    .tp-speaker-profile-grid {
        display: flex;
        flex-direction: column;
    }

    .tp-speaker-profile-image {
        order: -1;
        width: 100%;
        margin-bottom: 24px;
    }

    .tp-speaker-profile-main {
        order: 0;
        width: 100%;
    }

    .tp-speaker-profile-image img {
        aspect-ratio: 16 / 10;
    }

    .tp-speaker-title-row {
        grid-template-columns: 1fr;
    }

    .tp-speaker-primary-button--top {
        justify-self: start;
        margin-top: 0;
    }
}

@media (max-width: 560px) {
    .tp-speaker-profile-image img {
        aspect-ratio: 4 / 3.1;
    }
}


/* v3.4: no visible list count */
.tp-speaker-list-count {
    display: none;
}


/* v3.6 image focus: object-position may be set inline per speaker from tm_image_position. */
.tp-speaker-card-image img,
.tp-speaker-profile-image img {
    object-position: center top;
}


/* v3.8 speaker subjects and share block */
.tp-speaker-subjects,
.tp-speaker-share {
    margin-top: 26px;
}

.tp-speaker-subjects h2,
.tp-speaker-share h2 {
    margin: 0 0 14px;
    color: var(--tp-ref-ink, #0b1d2b);
    font-size: 1rem;
    line-height: 1.3;
}

.tp-speaker-subject-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 12px;
}

.tp-speaker-subject-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tp-ref-gold, #c99243);
    font-weight: 800;
    text-decoration: none;
    line-height: 1.25;
}

.tp-speaker-subject-list a:hover,
.tp-speaker-subject-list a:focus-visible {
    text-decoration: underline;
}

.tp-speaker-subject-list span {
    font-size: 0.76em;
    line-height: 1;
}

.tp-speaker-share-links {
    display: flex;
    align-items: center;
}

.tp-speaker-share-links a {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(11, 29, 43, 0.12);
    color: var(--tp-ref-muted, #6b6258);
    background: #fff;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.tp-speaker-share-links a + a {
    margin-left: -1px;
}

.tp-speaker-share-links a:hover,
.tp-speaker-share-links a:focus-visible {
    color: #fff;
    background: var(--tp-ref-gold, #c99243);
    border-color: var(--tp-ref-gold, #c99243);
    z-index: 1;
}

.tp-speaker-share-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 960px) {
    .tp-speaker-subjects,
    .tp-speaker-share {
        margin-top: 20px;
    }
}


/* v4.0 ämnessida uses same card grid as speaker listing, without search box */
.tp-speaker-taxonomy-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0 64px;
}

.tp-speaker-taxonomy-header {
    max-width: 760px;
    margin-bottom: 30px;
}

.tp-speaker-taxonomy-kicker {
    margin: 0 0 10px;
    color: var(--tp-ref-gold, #c99243);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-speaker-taxonomy-header h1 {
    margin: 0;
    color: var(--tp-ref-ink, #0b1d2b);
    font-size: clamp(2.6rem, 5vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.tp-speaker-taxonomy-header p {
    margin: 16px 0 0;
    color: var(--tp-ref-muted, #6b6258);
    font-size: 1.05rem;
}

.tp-speaker-taxonomy-page .tp-speaker-list-component {
    margin-top: 0;
}


/* v4.1 ensure taxonomy archives use the same card layout as speaker search/list */
.tp-speaker-taxonomy-page .tp-speaker-list-component {
    width: 100%;
}

.tp-speaker-taxonomy-page .tp-speaker-list-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.tp-speaker-taxonomy-page .tp-speaker-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tp-speaker-taxonomy-page .tp-speaker-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tp-speaker-taxonomy-page .tp-speaker-card-body .tp-speaker-card-link {
    margin-top: auto;
}

@media (max-width: 960px) {
    .tp-speaker-taxonomy-page .tp-speaker-list-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tp-speaker-taxonomy-page .tp-speaker-list-grid {
        grid-template-columns: 1fr;
    }
}


/* v4.5.6: Slightly reduced desktop speaker name after v4.5.5. */
@media (min-width: 961px) {
    .tp-speaker-title-row h1 {
        font-size: clamp(3.06rem, 5.04vw, 4.59rem);
        line-height: 0.98;
        letter-spacing: -0.04em;
    }
}

/* v4.5.7: Alternative speakers at the bottom of single speaker pages */
.tp-speaker-alternatives {
    margin-top: 56px;
    padding-top: 34px;
    border-top: 1px solid rgba(11, 29, 43, 0.10);
}

.tp-speaker-alternatives-head {
    max-width: 760px;
    margin-bottom: 22px;
}

.tp-speaker-alternatives-kicker {
    margin: 0 0 8px;
    color: var(--tp-ref-gold, #c99243);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tp-speaker-alternatives h2 {
    margin: 0;
    color: var(--tp-ref-ink, #0b1d2b);
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.tp-speaker-alternatives-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tp-speaker-alternative-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tp-speaker-alternative-card .tp-speaker-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tp-speaker-alternative-card h3 {
    margin: 0 0 8px;
    color: var(--tp-ref-ink, #0b1d2b);
    font-size: 1.28rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.tp-speaker-alternative-card h3 a {
    color: inherit;
    text-decoration: none;
}

.tp-speaker-alternative-card .tp-speaker-card-link {
    margin-top: auto;
}

@media (max-width: 960px) {
    .tp-speaker-alternatives-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .tp-speaker-alternatives {
        margin-top: 38px;
        padding-top: 26px;
    }

    .tp-speaker-alternatives-grid {
        grid-template-columns: 1fr;
    }
}

/* v4.5.8: Compact mobile spacing between top media block and speaker intro. */
@media (max-width: 960px) {
    .tp-speaker-profile-grid {
        gap: 0;
    }

    .tp-speaker-profile-image {
        margin-bottom: 18px;
    }
}

@media (max-width: 560px) {
    .tp-speaker-profile-image {
        margin-bottom: 14px;
    }

    .tp-speaker-subjects,
    .tp-speaker-share {
        margin-top: 16px;
    }
}

/* v4.5.9: Mobile speaker header order and compact share action. */
.tp-speaker-share-heading-row {
    display: block;
}

.tp-speaker-primary-button--mobile-share {
    display: none;
}

@media (max-width: 960px) {
    .tp-speaker-profile-main {
        display: contents;
    }

    .tp-speaker-title-row {
        order: -2;
        width: 100%;
        margin: 0 0 18px;
    }

    .tp-speaker-title-row h1 {
        display: block;
        margin: 0;
    }

    .tp-speaker-primary-button--top {
        display: none;
    }

    .tp-speaker-card-role,
    .tp-speaker-profile-pitch,
    .tp-speaker-video,
    .tp-speaker-profile-meta,
    .tp-speaker-profile-content {
        width: 100%;
    }

    .tp-speaker-share-heading-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 12px;
    }

    .tp-speaker-share-heading-row h2 {
        margin: 0;
    }

    .tp-speaker-primary-button--mobile-share {
        display: inline-flex;
        min-height: 42px;
        padding: 0 18px;
        font-size: 0.95rem;
        white-space: nowrap;
    }
}

@media (max-width: 380px) {
    .tp-speaker-share-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }
}
