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

.hwagp *,
.hwagp-detail * {
    box-sizing: border-box;
}

.hwagp {
    margin: 1.5rem 0 2.25rem;
}

.hwagp__main-title {
    margin: 0 0 1rem;
    color: var(--hwagp-navy);
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    line-height: 1.12;
}

.hwagp-day {
    margin: 0 0 1rem;
    border: 1px solid var(--hwagp-line);
    border-radius: 18px;
    background: var(--hwagp-surface);
    box-shadow: var(--hwagp-shadow);
    overflow: hidden;
}

.hwagp-day > summary::-webkit-details-marker {
    display: none;
}

.hwagp-day__summary {
    display: grid;
    grid-template-columns: minmax(84px, auto) 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 1.15rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--hwagp-navy) 0%, #174b6d 55%, var(--hwagp-cyan) 100%);
    cursor: pointer;
    list-style: none;
    transition: filter 180ms ease, transform 180ms ease;
}

.hwagp-day__summary:hover {
    filter: brightness(1.05);
}

.hwagp-day__meta {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.hwagp-day__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.36rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.hwagp-day__eyebrow::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #5eead4;
    box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.18);
}

.hwagp-day__date {
    color: #ffffff;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.2;
}

.hwagp-day__toggle {
    position: relative;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    flex: 0 0 auto;
}

.hwagp-day__toggle::before,
.hwagp-day__toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.82rem;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transform: translate(-50%, -50%);
    transition: transform 180ms ease, opacity 180ms ease;
}

.hwagp-day__toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.hwagp-day[open] .hwagp-day__toggle::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

.hwagp-day__body {
    background: linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
}

.hwagp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    background: transparent;
}

.hwagp-table th {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--hwagp-line);
    background: #f6fbfd;
    color: var(--hwagp-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    text-align: left;
    text-transform: uppercase;
}

.hwagp-table__time {
    width: 132px;
}

.hwagp-table__speaker {
    width: min(38%, 390px);
}

.hwagp-table__session {
    width: auto;
}

.hwagp-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--hwagp-line);
    vertical-align: middle;
    text-align: left;
}

.hwagp-table tbody tr:last-child td {
    border-bottom: 0;
}

.hwagp-row--session:hover {
    background: rgba(236, 253, 245, 0.48);
}

.hwagp-row--informative {
    background: linear-gradient(90deg, rgba(21, 90, 166, 0.06), rgba(22, 163, 74, 0.06));
}

.hwagp-row__time {
    color: var(--hwagp-navy);
    font-weight: 800;
}

.hwagp-row__time-value {
    display: inline-block;
    padding: 0.38rem 0.56rem;
    border-radius: 999px;
    background: var(--hwagp-ice);
    color: var(--hwagp-navy);
    font-size: 0.88rem;
    white-space: nowrap;
}

.hwagp-row__speaker {
    min-width: 0;
}

.hwagp-row__session {
    color: var(--hwagp-navy);
}

.hwagp-row__title {
    display: block;
    margin: 0 0 0.35rem;
    color: var(--hwagp-navy);
    font-size: 1rem;
    line-height: 1.28;
}

.hwagp-row__title-link {
    color: var(--hwagp-navy);
    text-decoration: none;
    box-shadow: none;
}

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

.hwagp-row__room {
    display: inline-flex;
    align-items: center;
    margin: 0.08rem 0 0.4rem;
    color: var(--hwagp-muted);
    font-size: 0.87rem;
    font-weight: 700;
}

.hwagp-row__description {
    margin-top: 0.3rem;
    color: var(--hwagp-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.hwagp-row__description p {
    margin: 0.25rem 0 0;
}

.hwagp-row__info-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.hwagp-row__info-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.4rem;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.11);
    color: var(--hwagp-cyan);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hwagp-speaker-component.hwspk-component {
    min-height: 84px;
}

.hwagp-speaker-placeholder {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 0.85rem;
    align-items: center;
    min-width: 0;
}

.hwagp-speaker-placeholder__image,
.hwagp-speaker-placeholder__avatar {
    width: 78px;
    height: 78px;
    border-radius: 18px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hwagp-navy), var(--hwagp-cyan));
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 8px 22px rgba(14, 42, 67, 0.16);
}

.hwagp-speaker-placeholder__text {
    min-width: 0;
}

.hwagp-speaker-placeholder__title {
    margin-bottom: 0.16rem;
    color: var(--hwagp-cyan);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hwagp-speaker-placeholder__name {
    display: block;
    color: var(--hwagp-navy);
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
}

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

.hwagp-speaker-placeholder__organisation {
    display: block;
    margin-top: 0.2rem;
    color: var(--hwagp-muted);
    font-size: 0.86rem;
    line-height: 1.3;
    text-decoration: none;
}

.hwagp-speaker-placeholder__organisation--link:hover,
.hwagp-speaker-placeholder__organisation--link:focus {
    color: var(--hwagp-cyan);
    text-decoration: underline;
}


.hwagp-detail {
    max-width: 980px;
    margin: 1.25rem auto 2.25rem;
    position: static !important;
}

.hwagp-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(--hwagp-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--hwagp-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);
}

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

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

.hwagp-detail__hero,
.hwagp-detail__time-card,
.hwagp-detail__intro,
.hwagp-detail__speaker-section,
.hwagp-detail__title,
.hwagp-detail__description {
    position: static !important;
    top: auto !important;
}

.hwagp-detail__hero {
    display: grid;
    grid-template-columns: minmax(220px, 0.42fr) 1fr;
    gap: 0;
    align-items: stretch;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--hwagp-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--hwagp-shadow);
}

.hwagp-detail__time-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.42rem;
    min-height: 100%;
    padding: 1.2rem;
    background: linear-gradient(145deg, var(--hwagp-navy), var(--hwagp-cyan));
    color: #ffffff;
}

.hwagp-detail__label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.08rem;
    padding: 0.32rem 0.52rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.hwagp-detail__date,
.hwagp-detail__time,
.hwagp-detail__room {
    display: block;
    line-height: 1.24;
}

.hwagp-detail__date {
    font-size: 0.96rem;
    font-weight: 800;
}

.hwagp-detail__time {
    font-size: clamp(1.25rem, 2.5vw, 1.72rem);
    font-weight: 950;
}

.hwagp-detail__room {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}

.hwagp-detail__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 1.25rem 1.45rem;
    background: #ffffff;
}

.hwagp-detail__event-link {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 0.55rem;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    background: var(--hwagp-mint);
    color: var(--hwagp-cyan);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
}

.hwagp-detail__event-link:hover,
.hwagp-detail__event-link:focus {
    background: rgba(15, 118, 110, 0.14);
    color: var(--hwagp-navy);
    text-decoration: none;
}

.hwagp-detail__event-link--static {
    pointer-events: none;
}

.hwagp-detail__title {
    margin: 0 0 0.55rem !important;
    padding: 0 !important;
    color: var(--hwagp-navy);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.14;
}

.hwagp-detail__description {
    margin: 0;
    color: var(--hwagp-muted);
    font-size: 0.98rem;
    line-height: 1.62;
}

.hwagp-detail__description p {
    margin: 0.45rem 0 0;
}

.hwagp-detail__description p:first-child {
    margin-top: 0;
}

.hwagp-detail__speaker-section {
    display: block;
    padding: 1.1rem;
    border: 1px solid var(--hwagp-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(14, 42, 67, 0.08);
}

.hwagp-detail__speaker-section > h2 {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 0.9rem !important;
    padding: 0.34rem 0.58rem !important;
    border-radius: 999px;
    background: var(--hwagp-mint);
    color: var(--hwagp-cyan);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.10em;
    line-height: 1;
    text-transform: uppercase;
}

.hwagp-detail__speaker-section .hwagp-detail-speaker-component.hwspk-component,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder {
    display: grid !important;
    grid-template-columns: 108px minmax(0, 1fr) !important;
    gap: 1rem !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 1rem !important;
    border: 1px solid rgba(14, 42, 67, 0.10);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(243, 251, 255, 0.90), rgba(236, 253, 245, 0.70));
    box-shadow: none;
}

.hwagp-detail__speaker-section .hwspk-component__image-link,
.hwagp-detail__speaker-section .hwspk-component__image,
.hwagp-detail__speaker-section .hwspk-component__avatar,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__image-link,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__image,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__avatar {
    width: 108px !important;
    height: 108px !important;
    border-radius: 999px !important;
}

.hwagp-detail__speaker-section .hwspk-component__image-link,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__image-link,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__avatar {
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(14, 42, 67, 0.14) !important;
}

.hwagp-detail__speaker-section .hwspk-component__text,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__text {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
}

.hwagp-detail__speaker-section .hwspk-component__title,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__title {
    margin: 0 0 0.22rem !important;
    color: var(--hwagp-cyan) !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

.hwagp-detail__speaker-section .hwspk-component__name,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__name {
    display: block !important;
    margin: 0 !important;
    color: var(--hwagp-navy) !important;
    font-size: clamp(1.08rem, 2vw, 1.32rem) !important;
    font-weight: 950 !important;
    line-height: 1.16 !important;
    text-decoration: none !important;
}

.hwagp-detail__speaker-section .hwspk-component__name:hover,
.hwagp-detail__speaker-section .hwspk-component__name:focus,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__name:hover,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__name:focus {
    color: var(--hwagp-cyan) !important;
    text-decoration: underline !important;
    text-underline-offset: 0.18em;
}

.hwagp-detail__speaker-section .hwspk-component__organisation,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__organisation {
    display: inline-flex !important;
    width: fit-content !important;
    margin-top: 0.38rem !important;
    color: var(--hwagp-muted) !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
}

.hwagp-detail__speaker-section .hwspk-component__organisation--link:hover,
.hwagp-detail__speaker-section .hwspk-component__organisation--link:focus,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__organisation--link:hover,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__organisation--link:focus {
    color: var(--hwagp-cyan) !important;
    text-decoration: underline !important;
}


/* v1.4.3: force true circular speaker media in the single agenda detail view. */
.hwagp-detail__speaker-section .hwspk-component__image-link,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__image-link,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__avatar {
    display: block !important;
    flex: 0 0 108px !important;
    width: 108px !important;
    height: 108px !important;
    max-width: 108px !important;
    max-height: 108px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    line-height: 0 !important;
    background: transparent !important;
    clip-path: circle(50% at 50% 50%) !important;
}

.hwagp-detail__speaker-section img.hwspk-component__image,
.hwagp-detail__speaker-section img.hwagp-speaker-placeholder__image,
.hwagp-detail__speaker-section .hwspk-component__avatar,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__avatar {
    display: block !important;
    width: 108px !important;
    height: 108px !important;
    min-width: 108px !important;
    min-height: 108px !important;
    max-width: 108px !important;
    max-height: 108px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    object-position: center center !important;
    overflow: hidden !important;
    vertical-align: top !important;
    line-height: 1 !important;
    background: transparent !important;
    clip-path: circle(50% at 50% 50%) !important;
}

.hwagp-detail__speaker-section .hwspk-component__avatar,
.hwagp-detail__speaker-section .hwagp-speaker-placeholder__avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--hwagp-cyan) !important;
}

@media (max-width: 820px) {
    .hwagp-day__summary {
        grid-template-columns: 1fr auto;
    }

    .hwagp-day__meta {
        grid-column: 1 / 2;
    }

    .hwagp-day__date {
        grid-column: 1 / 2;
    }

    .hwagp-day__toggle {
        grid-column: 2 / 3;
        grid-row: 1 / span 2;
    }

    .hwagp-table,
    .hwagp-table thead,
    .hwagp-table tbody,
    .hwagp-table tr,
    .hwagp-table th,
    .hwagp-table td {
        display: block;
        width: 100%;
    }

    .hwagp-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .hwagp-table td {
        padding: 0.9rem 1rem;
        border-bottom: 0;
    }

    .hwagp-row {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--hwagp-line);
    }

    .hwagp-table tbody tr:last-child {
        border-bottom: 0;
    }

    .hwagp-row__time::before,
    .hwagp-row__speaker::before,
    .hwagp-row__session::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.35rem;
        color: var(--hwagp-muted);
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .hwagp-row__session--merged {
        padding-top: 0.2rem;
    }

    .hwagp-detail__hero {
        grid-template-columns: 1fr;
    }

    .hwagp-detail__time-card {
        min-height: auto;
    }

    .hwagp-detail__speaker-section {
        padding: 0.9rem;
    }

    .hwagp-detail__speaker-section .hwagp-detail-speaker-component.hwspk-component,
    .hwagp-detail__speaker-section .hwagp-speaker-placeholder {
        grid-template-columns: 82px minmax(0, 1fr) !important;
        gap: 0.85rem !important;
        padding: 0.85rem !important;
    }

    .hwagp-detail__speaker-section .hwspk-component__image-link,
    .hwagp-detail__speaker-section .hwspk-component__image,
    .hwagp-detail__speaker-section .hwspk-component__avatar,
    .hwagp-detail__speaker-section .hwagp-speaker-placeholder__image-link,
    .hwagp-detail__speaker-section .hwagp-speaker-placeholder__image,
    .hwagp-detail__speaker-section .hwagp-speaker-placeholder__avatar {
        width: 82px !important;
        height: 82px !important;
    }

    .hwagp-detail__speaker-section .hwspk-component__image-link,
    .hwagp-detail__speaker-section .hwagp-speaker-placeholder__image-link,
    .hwagp-detail__speaker-section img.hwspk-component__image,
    .hwagp-detail__speaker-section img.hwagp-speaker-placeholder__image,
    .hwagp-detail__speaker-section .hwspk-component__avatar,
    .hwagp-detail__speaker-section .hwagp-speaker-placeholder__avatar {
        flex-basis: 82px !important;
        width: 82px !important;
        height: 82px !important;
        min-width: 82px !important;
        min-height: 82px !important;
        max-width: 82px !important;
        max-height: 82px !important;
        border-radius: 50% !important;
        clip-path: circle(50% at 50% 50%) !important;
    }
}


@media (max-width: 560px) {
    .hwagp-day {
        border-radius: 14px;
    }

    .hwagp-speaker-placeholder {
        grid-template-columns: 60px 1fr;
    }

    .hwagp-speaker-placeholder__image,
    .hwagp-speaker-placeholder__avatar {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }
}


@media (max-width: 440px) {
    .hwagp-detail__speaker-section .hwagp-detail-speaker-component.hwspk-component,
    .hwagp-detail__speaker-section .hwagp-speaker-placeholder {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        text-align: center;
    }

    .hwagp-detail__speaker-section .hwspk-component__text,
    .hwagp-detail__speaker-section .hwagp-speaker-placeholder__text {
        align-items: center !important;
    }
}
