/* HyWay Speakers plugin — intentionally unique frontend namespace: hwspk */
.hwspk-component,
.hwspk-card,
.hwspk-grid,
.hwspk-profile {
    --hwspk-navy: #0e2a43;
    --hwspk-blue: #155aa6;
    --hwspk-cyan: #0f766e;
    --hwspk-green: #16a34a;
    --hwspk-ice: #f3fbff;
    --hwspk-mint: #ecfdf5;
    --hwspk-surface: #ffffff;
    --hwspk-line: rgba(14, 42, 67, 0.14);
    --hwspk-muted: #566b7d;
    --hwspk-shadow: 0 18px 42px rgba(14, 42, 67, 0.10);
    color: var(--hwspk-navy);
    font-family: inherit;
}

.hwspk-component *,
.hwspk-card *,
.hwspk-grid *,
.hwspk-profile * {
    box-sizing: border-box;
}

.hwspk-component {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 0.9rem;
    align-items: center;
    min-width: 0;
}

.hwspk-component__image-link {
    display: block;
    width: 82px;
    height: 82px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(14, 42, 67, 0.16);
    text-decoration: none;
}

.hwspk-component__image,
.hwspk-component__avatar {
    display: flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--hwspk-navy), var(--hwspk-cyan));
    color: #ffffff;
    font-weight: 950;
    object-fit: cover;
}

.hwspk-component__text {
    min-width: 0;
}

.hwspk-component__title {
    margin-bottom: 0.16rem;
    color: var(--hwspk-cyan);
    font-size: 0.73rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hwspk-component__name {
    display: block;
    color: var(--hwspk-navy);
    font-size: 0.98rem;
    font-weight: 950;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: none;
}

.hwspk-component__name:hover,
.hwspk-component__name:focus {
    color: var(--hwspk-cyan);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.hwspk-component__organisation {
    display: block;
    margin-top: 0.22rem;
    color: var(--hwspk-muted);
    font-size: 0.86rem;
    line-height: 1.32;
    text-decoration: none;
}

.hwspk-component__organisation--link:hover,
.hwspk-component__organisation--link:focus {
    color: var(--hwspk-cyan);
    text-decoration: underline;
}

.hwspk-grid {
    display: grid;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.hwspk-grid--cols-1 { grid-template-columns: 1fr; }
.hwspk-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hwspk-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hwspk-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hwspk-card {
    display: grid;
    grid-template-columns: 132px 1fr;
    min-height: 172px;
    overflow: hidden;
    border: 1px solid var(--hwspk-line);
    border-radius: 24px;
    background: var(--hwspk-surface);
    box-shadow: var(--hwspk-shadow);
}

.hwspk-card__image-link {
    display: block;
    min-height: 100%;
    background: linear-gradient(145deg, var(--hwspk-navy), var(--hwspk-cyan));
    text-decoration: none;
}

.hwspk-card__image,
.hwspk-card__avatar {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 172px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 950;
    object-fit: cover;
}

.hwspk-card__body {
    padding: 1rem 1.1rem;
}

.hwspk-card__title {
    margin-bottom: 0.22rem;
    color: var(--hwspk-cyan);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hwspk-card__name {
    margin: 0 0 0.28rem;
    font-size: 1.16rem;
    line-height: 1.2;
}

.hwspk-card__name a {
    color: var(--hwspk-navy);
    text-decoration: none;
    box-shadow: none;
}

.hwspk-card__name a:hover,
.hwspk-card__name a:focus {
    color: var(--hwspk-cyan);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.hwspk-card__organisation {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--hwspk-muted);
    font-size: 0.9rem;
    line-height: 1.3;
    text-decoration: none;
}

.hwspk-card__organisation--link:hover,
.hwspk-card__organisation--link:focus {
    color: var(--hwspk-cyan);
    text-decoration: underline;
}

.hwspk-card__excerpt {
    margin: 0.25rem 0 0.75rem;
    color: var(--hwspk-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.hwspk-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.hwspk-card__links a,
.hwspk-profile__links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.36rem 0.62rem;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 999px;
    background: var(--hwspk-mint);
    color: var(--hwspk-cyan);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
}

.hwspk-card__links a:hover,
.hwspk-card__links a:focus,
.hwspk-profile__links a:hover,
.hwspk-profile__links a:focus {
    border-color: rgba(15, 118, 110, 0.34);
    background: #ffffff;
    color: var(--hwspk-navy);
}

.hwspk-profile {
    margin: 1.5rem 0 2.25rem;
}

.hwspk-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin: 0 0 1rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--hwspk-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--hwspk-navy);
    font-size: 0.9rem;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(14, 42, 67, 0.08);
}

.hwspk-back:hover,
.hwspk-back:focus {
    border-color: rgba(15, 118, 110, 0.32);
    color: var(--hwspk-cyan);
    text-decoration: none;
    transform: translateX(-2px);
}

.hwspk-back__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: var(--hwspk-mint);
    color: var(--hwspk-cyan);
    font-size: 1rem;
    line-height: 1;
}



.hwspk-profile__summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.2rem);
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(1.2rem, 3vw, 2rem) 0;
    border-top: 1px solid var(--hwspk-line);
    border-bottom: 1px solid var(--hwspk-line);
    background: transparent;
    box-shadow: none;
}

.hwspk-profile__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.hwspk-profile__image,
.hwspk-profile__avatar {
    display: flex;
    width: min(100%, 340px);
    height: auto;
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: var(--hwspk-navy);
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 900;
    object-fit: cover;
    box-shadow: 0 18px 42px rgba(14, 42, 67, 0.14);
}

.hwspk-profile__intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 0;
}

.hwspk-profile__identity {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.18rem;
    width: 100%;
}

.hwspk-profile__title,
.hwspk-profile__name {
    margin: 0;
    color: var(--hwspk-navy);
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-align: left;
}

.hwspk-profile__title {
    color: var(--hwspk-cyan);
}

/* Keep the title/role and name tightly grouped on single speaker pages.
   The extra specificity and !important flags protect this block from theme heading margins. */
.hwspk-profile .hwspk-profile__identity {
    gap: 0.08rem !important;
}

.hwspk-profile .hwspk-profile__identity .hwspk-profile__title,
.hwspk-profile .hwspk-profile__identity .hwspk-profile__name {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.hwspk-profile .hwspk-profile__identity .hwspk-profile__name {
    margin-block-start: 0.02rem !important;
}

.hwspk-profile__organisation {
    margin: 0.75rem 0 0.9rem;
    color: var(--hwspk-muted);
    font-size: clamp(1rem, 1.5vw, 1.14rem);
    font-weight: 750;
    line-height: 1.35;
    text-align: left;
}

.hwspk-profile__organisation a {
    color: var(--hwspk-muted);
    text-decoration: none;
}

.hwspk-profile__organisation a:hover,
.hwspk-profile__organisation a:focus {
    color: var(--hwspk-cyan);
    text-decoration: underline;
}

.hwspk-profile__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.45rem;
    margin-top: 0;
}

.hwspk-profile__bio {
    max-width: 980px;
    margin: 1.35rem auto 0;
    padding: clamp(1.2rem, 3vw, 1.65rem);
    border: 1px solid var(--hwspk-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--hwspk-shadow);
}

.hwspk-profile__bio > h2 {
    margin: 0 0 0.85rem;
    color: var(--hwspk-navy);
    font-size: 1.35rem;
}

.hwspk-profile__bio-content {
    color: var(--hwspk-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.hwspk-profile__bio-content p:first-child {
    margin-top: 0;
}

@media (max-width: 980px) {
    .hwspk-grid--cols-3,
    .hwspk-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hwspk-grid--cols-2,
    .hwspk-grid--cols-3,
    .hwspk-grid--cols-4 {
        grid-template-columns: 1fr;
    }

    .hwspk-card {
        grid-template-columns: 1fr;
    }

    .hwspk-card__image,
    .hwspk-card__avatar,
    .hwspk-card__image-link {
        min-height: 230px;
    }

    .hwspk-profile__summary {
        grid-template-columns: 1fr;
        gap: 1.1rem;
        padding: 1rem 0;
    }

    .hwspk-profile__image,
    .hwspk-profile__avatar {
        width: min(78vw, 260px);
    }

    .hwspk-profile__intro,
    .hwspk-profile__identity {
        align-items: center;
        text-align: center;
    }

    .hwspk-profile__title,
    .hwspk-profile__name,
    .hwspk-profile__organisation {
        text-align: center;
    }

    .hwspk-profile__links {
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .hwspk-component {
        grid-template-columns: 60px 1fr;
    }

    .hwspk-component__image-link,
    .hwspk-component__image,
    .hwspk-component__avatar {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
}

@media (max-width: 520px) {
    .hwspk-profile__image,
    .hwspk-profile__avatar {
        width: min(78vw, 220px);
    }
}
