/* 5D Webinar — custom single detail and registration form */
.wd5dw-detail-page,
.wd5dw-detail-page *,
.wd5dw-modal,
.wd5dw-modal * {
    box-sizing: border-box;
}

.wd5dw-detail-page {
    --wd5dw-purple: #6544ad;
    --wd5dw-purple-dark: #3d286f;
    --wd5dw-purple-soft: #f4f0fc;
    --wd5dw-navy: #173864;
    --wd5dw-text: #647189;
    --wd5dw-border: #e3e9f1;
    --wd5dw-green: #138b66;
    width: 100%;
    overflow: hidden;
    color: var(--wd5dw-text);
    background: #fff;
    font-family: inherit;
}

.wd5dw-detail-container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}

.wd5dw-detail-hero {
    position: relative;
    padding: 74px 0 68px;
    overflow: hidden;
    background:
        radial-gradient(circle at 84% 12%, rgba(121, 91, 194, .16), transparent 33%),
        linear-gradient(135deg, #faf8ff 0%, #fff 55%, #f5f1ff 100%);
    border-bottom: 1px solid #eee9f8;
}

.wd5dw-detail-hero::before,
.wd5dw-detail-hero::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(100, 68, 173, .1);
    border-radius: 50%;
    pointer-events: none;
}

.wd5dw-detail-hero::before {
    top: -160px;
    right: -80px;
    width: 450px;
    height: 450px;
}

.wd5dw-detail-hero::after {
    right: 280px;
    bottom: -230px;
    width: 380px;
    height: 380px;
}

.wd5dw-detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr);
    gap: 72px;
    align-items: center;
}

.wd5dw-detail-badge,
.wd5dw-section-kicker,
.wd5dw-registration-card-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    color: var(--wd5dw-purple);
    background: #eee8fb;
    border: 1px solid #ddd2f5;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .8px;
}

.wd5dw-detail-hero-copy h1 {
    max-width: 790px;
    margin: 19px 0 18px !important;
    padding: 0 !important;
    color: var(--wd5dw-navy) !important;
    font-family: inherit !important;
    font-size: clamp(40px, 4.6vw, 68px) !important;
    font-weight: 820 !important;
    line-height: 1.06 !important;
    letter-spacing: -2px;
}

.wd5dw-detail-lead {
    max-width: 720px;
    margin: 0 0 27px !important;
    padding: 0 !important;
    color: #66748a !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
}

.wd5dw-detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.wd5dw-detail-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 9px 14px;
    color: #465775;
    background: rgba(255,255,255,.78);
    border: 1px solid #e6e0f2;
    border-radius: 10px;
    box-shadow: 0 5px 18px rgba(58, 37, 105, .04);
    font-size: 13px;
    font-weight: 700;
}

.wd5dw-detail-meta-row svg,
.wd5dw-detail-primary-button svg,
.wd5dw-registration-card li svg,
.wd5dw-form-submit svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wd5dw-detail-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.wd5dw-detail-primary-button,
.wd5dw-detail-secondary-button,
.wd5dw-detail-closed-button {
    min-height: 52px;
    padding: 13px 24px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 780;
    line-height: 1.2;
    text-decoration: none !important;
}

button.wd5dw-detail-primary-button,
a.wd5dw-detail-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    color: #fff !important;
    background: linear-gradient(135deg, #7755c6, var(--wd5dw-purple));
    border: 0;
    box-shadow: 0 12px 27px rgba(80, 50, 148, .22);
    cursor: pointer;
    appearance: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

button.wd5dw-detail-primary-button:hover,
a.wd5dw-detail-primary-button:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(80, 50, 148, .3);
}

.wd5dw-detail-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wd5dw-purple) !important;
    background: #fff;
    border: 1px solid #dcd2ef;
}

.wd5dw-detail-secondary-button:hover {
    color: var(--wd5dw-purple-dark) !important;
    border-color: #b9a7dc;
}

.wd5dw-detail-closed-button {
    display: inline-flex;
    align-items: center;
    color: #7a657b;
    background: #f6edf2;
    border: 1px solid #ead9e2;
}

.wd5dw-detail-hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 390px;
}

.wd5dw-detail-hero-image {
    display: block;
    width: 100%;
    max-width: 520px;
    max-height: 410px;
    object-fit: contain;
    filter: drop-shadow(0 24px 32px rgba(55, 35, 99, .15));
}

.wd5dw-detail-illustration {
    display: block;
    width: 100%;
    max-width: 540px;
    height: auto;
    filter: drop-shadow(0 24px 34px rgba(53, 34, 96, .15));
}

.wd5dw-detail-date-poster {
    position: absolute;
    z-index: 2;
    top: 22px;
    left: 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 126px;
    color: var(--wd5dw-purple-dark);
    background: #fff;
    border: 1px solid #e1d8f1;
    border-radius: 20px;
    box-shadow: 0 18px 35px rgba(70, 46, 124, .14);
    transform: rotate(-6deg);
}

.wd5dw-detail-date-poster span {
    font-size: 13px;
    font-weight: 800;
}

.wd5dw-detail-date-poster strong {
    margin: 5px 0;
    font-size: 44px;
    font-weight: 500;
    line-height: .95;
}

.wd5dw-detail-date-poster small {
    color: #85769e;
    font-size: 11px;
    font-weight: 700;
}

.wd5dw-detail-main {
    padding: 72px 0 85px;
    background: #fff;
}

.wd5dw-form-notice {
    margin: 0 0 30px;
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.wd5dw-form-notice--success {
    color: #176b51;
    background: #eaf8f3;
    border: 1px solid #c3ebdd;
}

.wd5dw-form-notice--error {
    color: #9b3d4d;
    background: #fff0f2;
    border: 1px solid #f2cbd2;
}

.wd5dw-detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 70px;
    align-items: start;
}

.wd5dw-detail-content {
    min-width: 0;
}

.wd5dw-detail-section {
    margin-bottom: 68px;
}

.wd5dw-detail-section:last-child {
    margin-bottom: 0;
}

.wd5dw-detail-section h2,
.wd5dw-related h2 {
    margin: 13px 0 22px !important;
    padding: 0 !important;
    color: var(--wd5dw-navy) !important;
    font-family: inherit !important;
    font-size: clamp(28px, 3vw, 40px) !important;
    font-weight: 800 !important;
    line-height: 1.16 !important;
    letter-spacing: -1px;
}

.wd5dw-rich-content,
.wd5dw-rich-content p,
.wd5dw-rich-content li {
    color: #617087;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.85;
}

.wd5dw-rich-content p:first-child {
    margin-top: 0;
}

.wd5dw-detail-section--soft {
    padding: 36px;
    background: linear-gradient(135deg, #faf8ff, #f6f2fc);
    border: 1px solid #ebe4f6;
    border-radius: 22px;
}

.wd5dw-check-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd5dw-check-list li {
    position: relative;
    min-height: 48px;
    padding: 13px 15px 13px 45px;
    color: #4f6078;
    background: #fff;
    border: 1px solid #e8e1f3;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.wd5dw-check-list li::before {
    content: '✓';
    position: absolute;
    top: 13px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    color: #fff;
    background: var(--wd5dw-green);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 900;
}

.wd5dw-audience-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.wd5dw-audience-grid > div {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 15px;
    color: #4f5e76;
    background: #fff;
    border: 1px solid var(--wd5dw-border);
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(35, 57, 88, .035);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.wd5dw-audience-grid svg {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 7px;
    fill: none;
    stroke: var(--wd5dw-purple);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    background: #f1ecfa;
    border-radius: 9px;
}

.wd5dw-agenda-list {
    position: relative;
    padding-left: 20px;
}

.wd5dw-agenda-list::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 80px;
    width: 1px;
    background: #ddd5ec;
}

.wd5dw-agenda-item {
    position: relative;
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 28px;
    padding: 0 0 28px;
}

.wd5dw-agenda-item:last-child {
    padding-bottom: 0;
}

.wd5dw-agenda-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 55px;
    width: 11px;
    height: 11px;
    background: var(--wd5dw-purple);
    border: 3px solid #eee9f8;
    border-radius: 50%;
    transform: translateX(20px);
}

.wd5dw-agenda-item time {
    color: var(--wd5dw-purple);
    font-size: 14px;
    font-weight: 800;
}

.wd5dw-agenda-item strong {
    display: block;
    margin: 0 0 5px;
    color: var(--wd5dw-navy);
    font-size: 16px;
    font-weight: 760;
}

.wd5dw-agenda-item p {
    margin: 0 !important;
    color: #708097 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.wd5dw-speaker-panel {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--wd5dw-border);
    border-radius: 20px;
    box-shadow: 0 13px 35px rgba(35, 55, 85, .06);
}

.wd5dw-speaker-panel-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #8768d0, #4b327e);
    border-radius: 20px;
    font-size: 45px;
    font-weight: 800;
}

.wd5dw-speaker-panel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wd5dw-speaker-panel h3 {
    margin: 0 0 5px !important;
    padding: 0 !important;
    color: var(--wd5dw-navy) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
}

.wd5dw-speaker-role {
    display: block;
    margin-bottom: 14px;
    color: var(--wd5dw-purple);
    font-size: 13px;
    font-weight: 750;
}

.wd5dw-speaker-panel p {
    margin: 0 !important;
    color: #6c7990 !important;
    font-size: 14px !important;
    line-height: 1.75 !important;
}

.wd5dw-info-band {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 30px;
    color: #fff;
    background: linear-gradient(135deg, #6646ad, #432c79);
    border-radius: 20px;
}

.wd5dw-info-band > svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .88;
}

.wd5dw-info-band h2 {
    margin: 0 0 8px !important;
    color: #fff !important;
    font-size: 23px !important;
}

.wd5dw-info-band p {
    margin: 0 !important;
    color: rgba(255,255,255,.85) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.wd5dw-faq-list details {
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--wd5dw-border);
    border-radius: 12px;
}

.wd5dw-faq-list summary {
    position: relative;
    padding: 17px 50px 17px 18px;
    color: var(--wd5dw-navy);
    font-size: 14px;
    font-weight: 750;
    cursor: pointer;
    list-style: none;
}

.wd5dw-faq-list summary::-webkit-details-marker {
    display: none;
}

.wd5dw-faq-list summary::after {
    content: '+';
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--wd5dw-purple);
    font-size: 23px;
    transform: translateY(-50%);
}

.wd5dw-faq-list details[open] summary::after {
    content: '−';
}

.wd5dw-faq-list p {
    margin: 0 !important;
    padding: 0 18px 18px !important;
    color: #6c7a91 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
}

.wd5dw-detail-sidebar {
    position: relative;
    min-width: 0;
}

.wd5dw-registration-card {
    position: sticky;
    top: 110px;
    padding: 27px;
    background: #fff;
    border: 1px solid #e2dced;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(47, 31, 83, .1);
}

.wd5dw-registration-card h3 {
    margin: 13px 0 20px !important;
    padding: 0 !important;
    color: var(--wd5dw-navy) !important;
    font-size: 25px !important;
    font-weight: 800 !important;
}

.wd5dw-registration-card ul {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.wd5dw-registration-card li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
}

.wd5dw-registration-card li:last-child {
    border-bottom: 0;
}

.wd5dw-registration-card li > svg {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 10px;
    color: var(--wd5dw-purple);
    background: #f2edf9;
    border-radius: 10px;
}

.wd5dw-registration-card li span,
.wd5dw-registration-card li small,
.wd5dw-registration-card li strong {
    display: block;
}

.wd5dw-registration-card li small {
    margin-bottom: 3px;
    color: #8a96a7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
}

.wd5dw-registration-card li strong {
    color: #40506b;
    font-size: 13px;
    font-weight: 750;
}

.wd5dw-registration-card .wd5dw-detail-primary-button,
.wd5dw-registration-card .wd5dw-detail-closed-button {
    width: 100%;
}

.wd5dw-capacity {
    margin: -3px 0 20px;
    padding: 14px;
    background: #faf8fd;
    border: 1px solid #ece6f5;
    border-radius: 11px;
}

.wd5dw-capacity > div:first-child {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: #65738a;
    font-size: 11px;
    font-weight: 750;
}

.wd5dw-capacity-bar {
    height: 6px;
    overflow: hidden;
    background: #e8e1f3;
    border-radius: 20px;
}

.wd5dw-capacity-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #8665cf, #5e3fa4);
    border-radius: inherit;
}

.wd5dw-registration-card-note {
    margin: 13px 0 0 !important;
    color: #8994a4 !important;
    font-size: 10.5px !important;
    line-height: 1.5 !important;
    text-align: center;
}

.wd5dw-related {
    padding: 70px 0 82px;
    background: #f8f6fc;
    border-top: 1px solid #eee9f6;
}

.wd5dw-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.wd5dw-related-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 24px;
    color: inherit !important;
    background: #fff;
    border: 1px solid #e3deec;
    border-radius: 17px;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(47, 43, 65, .035);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wd5dw-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(47, 43, 65, .09);
}

.wd5dw-related-card > span {
    color: var(--wd5dw-purple);
    font-size: 11px;
    font-weight: 800;
}

.wd5dw-related-card h3 {
    margin: 10px 0 9px !important;
    padding: 0 !important;
    color: var(--wd5dw-navy) !important;
    font-size: 17px !important;
    font-weight: 780 !important;
    line-height: 1.45 !important;
}

.wd5dw-related-card small {
    color: #7b889b;
    font-size: 11px;
}

.wd5dw-related-card b {
    margin-top: auto;
    padding-top: 16px;
    color: var(--wd5dw-purple);
    font-size: 12px;
}

/* Modal + form */
html.wd5dw-modal-open {
    overflow: hidden;
}

.wd5dw-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    font-family: inherit;
}

.wd5dw-modal.is-open {
    display: flex;
}

.wd5dw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 16, 42, .72);
    backdrop-filter: blur(7px);
}

.wd5dw-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(12, 7, 28, .35);
}

.wd5dw-modal-close {
    position: absolute;
    z-index: 3;
    top: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    color: #fff;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.wd5dw-modal-head {
    padding: 31px 64px 28px 30px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 0, rgba(255,255,255,.17), transparent 35%),
        linear-gradient(135deg, #7250bd, #432b78);
    border-radius: 22px 22px 0 0;
}

.wd5dw-modal-head > span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .9px;
}

.wd5dw-modal-head h2 {
    margin: 8px 0 7px !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: inherit !important;
    font-size: 25px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.wd5dw-modal-head p {
    margin: 0 !important;
    color: rgba(255,255,255,.8) !important;
    font-size: 12px !important;
}

.wd5dw-modal-body,
.wd5dw-embedded-form {
    padding: 28px 30px 30px;
}

.wd5dw-embedded-form {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e5dfee;
    border-radius: 18px;
}

.wd5dw-registration-form {
    margin: 0;
}

.wd5dw-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.wd5dw-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.wd5dw-form-grid label,
.wd5dw-form-grid label > span {
    display: block;
}

.wd5dw-form-grid label > span {
    margin-bottom: 6px;
    color: #46556f;
    font-size: 12px;
    font-weight: 720;
}

.wd5dw-form-grid b,
.wd5dw-form-consents b {
    color: #d94f66;
}

.wd5dw-form-grid input,
.wd5dw-form-grid textarea {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    color: #34435d;
    background: #fbfcfe;
    border: 1px solid #dfe5ed;
    border-radius: 9px;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
}

.wd5dw-form-grid textarea {
    min-height: 88px;
    resize: vertical;
}

.wd5dw-form-grid input:focus,
.wd5dw-form-grid textarea:focus {
    outline: 0;
    border-color: #8668ca;
    box-shadow: 0 0 0 3px rgba(105, 72, 177, .11);
}

.wd5dw-form-wide {
    grid-column: 1 / -1;
}

.wd5dw-form-consents {
    margin: 20px 0;
    padding: 15px;
    background: #f8f6fc;
    border: 1px solid #e9e4f2;
    border-radius: 10px;
}

.wd5dw-form-consents label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 11px;
    color: #5e6b7e;
    font-size: 10.5px;
    line-height: 1.55;
}

.wd5dw-form-consents label:last-child {
    margin-bottom: 0;
}

.wd5dw-form-consents input {
    flex: 0 0 auto;
    margin-top: 2px;
}

.wd5dw-form-consents a {
    color: var(--wd5dw-purple) !important;
    font-weight: 700;
}

.wd5dw-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 51px;
    margin: 0;
    padding: 12px 20px;
    color: #fff;
    background: linear-gradient(135deg, #7653c2, #593a9e);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(75, 47, 136, .2);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 780;
}

.wd5dw-form-footnote {
    margin: 11px 0 0 !important;
    color: #929baa !important;
    font-size: 9.5px !important;
    line-height: 1.5 !important;
    text-align: center;
}

.wd5dw-form-unavailable {
    padding: 18px;
    color: #7b5b67;
    background: #fff3f5;
    border: 1px solid #f0d4db;
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1180px) {
    .wd5dw-detail-hero-grid {
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: 40px;
    }

    .wd5dw-detail-content-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 40px;
    }

    .wd5dw-audience-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .wd5dw-detail-hero {
        padding: 55px 0 48px;
    }

    .wd5dw-detail-hero-grid,
    .wd5dw-detail-content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wd5dw-detail-hero-copy {
        text-align: center;
    }

    .wd5dw-detail-lead {
        margin-right: auto !important;
        margin-left: auto !important;
    }

    .wd5dw-detail-meta-row,
    .wd5dw-detail-hero-actions {
        justify-content: center;
    }

    .wd5dw-detail-hero-art {
        min-height: 310px;
    }

    .wd5dw-detail-illustration,
    .wd5dw-detail-hero-image {
        max-width: 460px;
    }

    .wd5dw-detail-content-grid {
        gap: 35px;
    }

    .wd5dw-detail-sidebar {
        order: -1;
    }

    .wd5dw-registration-card {
        position: static;
        max-width: 620px;
        margin: 0 auto 20px;
    }

    .wd5dw-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .wd5dw-detail-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .wd5dw-detail-hero-copy h1 {
        font-size: 37px !important;
        letter-spacing: -1.2px;
    }

    .wd5dw-detail-lead {
        font-size: 15px !important;
    }

    .wd5dw-detail-meta-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wd5dw-detail-meta-row span {
        justify-content: center;
        padding-right: 8px;
        padding-left: 8px;
        font-size: 11px;
    }

    .wd5dw-detail-meta-row span:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .wd5dw-detail-primary-button,
    .wd5dw-detail-secondary-button,
    .wd5dw-detail-closed-button {
        width: 100%;
    }

    .wd5dw-detail-hero-art {
        min-height: 250px;
    }

    .wd5dw-detail-date-poster {
        top: 0;
        left: 0;
        width: 88px;
        height: 100px;
    }

    .wd5dw-detail-date-poster strong {
        font-size: 34px;
    }

    .wd5dw-detail-main {
        padding: 46px 0 55px;
    }

    .wd5dw-detail-section {
        margin-bottom: 45px;
    }

    .wd5dw-detail-section--soft,
    .wd5dw-registration-card,
    .wd5dw-speaker-panel,
    .wd5dw-info-band {
        padding: 21px;
        border-radius: 16px;
    }

    .wd5dw-check-list,
    .wd5dw-audience-grid,
    .wd5dw-related-grid,
    .wd5dw-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wd5dw-speaker-panel {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }

    .wd5dw-speaker-panel-photo {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .wd5dw-info-band {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 15px;
    }

    .wd5dw-info-band > svg {
        width: 50px;
        height: 50px;
    }

    .wd5dw-agenda-list {
        padding-left: 0;
    }

    .wd5dw-agenda-list::before {
        left: 60px;
    }

    .wd5dw-agenda-item {
        grid-template-columns: 55px minmax(0, 1fr);
        gap: 25px;
    }

    .wd5dw-agenda-item::before {
        left: 35px;
    }

    .wd5dw-modal {
        padding: 8px;
    }

    .wd5dw-modal-dialog {
        max-height: calc(100vh - 16px);
        border-radius: 16px;
    }

    .wd5dw-modal-head {
        padding: 26px 50px 23px 20px;
        border-radius: 16px 16px 0 0;
    }

    .wd5dw-modal-head h2 {
        font-size: 20px !important;
    }

    .wd5dw-modal-body,
    .wd5dw-embedded-form {
        padding: 20px 16px 22px;
    }

    .wd5dw-form-wide {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wd5dw-detail-primary-button,
    .wd5dw-related-card {
        transition: none;
    }
}

/* Prevent Woodmart's generic post title spacing from leaking into the custom webinar template. */
body.single-wd5d_webinar .page-title:not(.wd5dw-detail-page .page-title),
body.single-wd5d_webinar .wd-breadcrumbs,
body.single-wd5d_webinar .single-post-social,
body.single-wd5d_webinar .post-single-page .meta-post-categories {
    display: none !important;
}

body.single-wd5d_webinar .main-page-wrapper {
    padding-top: 0 !important;
}
