/* Shared Single presentation. Every content rule requires an explicit template hook. */
.vp-single-page {
    --vp-single-ink: #293443;
    --vp-single-muted: #637185;
    --vp-single-line: #e8dfe5;
    --vp-single-accent: #ad3d70;
    --vp-single-surface: #fff;
    --vp-single-radius: 12px;
    min-width: 0;
}
/* Keep the plugin control attached to its thumbnail on every entry path.
   These sitewide rules also cover the interval before the plugin assets load. */
.vp-single-page .custom-thumbnail-container {
    position: relative !important;
}
.vp-single-page .custom-thumbnail-container > .vpp-stem-mixer-trigger {
    position: absolute !important;
    inset: 9px 9px auto auto !important;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    margin: 0 !important;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: rgba(19, 24, 35, .76);
    transform: none !important;
    cursor: pointer;
}
.vp-single-page .custom-thumbnail-container > .vpp-stem-mixer-trigger .vpp-stem-mixer-trigger__icon {
    display: block;
    flex: none;
    width: 21px;
    height: 21px;
}
.vp-single-page .custom-thumbnail-container > .vpp-stem-mixer-trigger:focus-visible {
    outline: 3px solid #fff;
    outline-offset: -3px;
}
.vp-single-page .vp-single-heading { margin: 0 0 12px; min-width: 0; }
.vp-single-page .vp-single-kicker {
    margin: 0 0 5px;
    color: var(--vp-single-accent);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .04em;
}
.vp-single-page .vp-single-title {
    margin: 0;
    color: var(--vp-single-ink);
    font-family: inherit;
    font-size: clamp(20px, 2.2vw, 27px);
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}
.vp-single-page .vp-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 7px 0 0;
    color: var(--vp-single-muted);
    font-size: 12px;
    line-height: 1.6;
}
.vp-single-page .vp-single-meta a { color: inherit; text-underline-offset: 3px; }
.vp-single-page .vp-single-section-title {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--vp-single-ink);
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.vp-single-page .vp-single-prose {
    min-width: 0;
    color: var(--vp-single-ink);
    font-size: 15px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}
/* Direct editorial children only: embeds and their internal layout keep their own styles. */
.vp-single-page .vp-single-prose > :where(p, ul, ol, blockquote) { margin-block: 0 12px; }
.vp-single-page .vp-single-prose > :where(h2, h3, h4) { margin-block: 18px 8px; line-height: 1.55; }
.vp-single-page .vp-single-prose > :where(p, li) a { text-underline-offset: 3px; }
.vp-single-page .vp-single-prose > :where(pre) { max-width: 100%; overflow-x: auto; }
.vp-single-page .vp-single-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed var(--vp-single-line);
    border-radius: 10px;
    background: #fffafc;
    color: var(--vp-single-muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}
.vp-single-page .vp-single-section { min-width: 0; margin-block: 10px; }
.vp-single-page .vp-single-section:last-child { margin-bottom: 0; }

/* Lower live sections have their own content ID, unlike the separate playback stage. */
@media (min-width: 901px) {
    body.voicepa-product-ui #page.vp-single-page > .article {
        flex: 1 1 0;
        float: none;
        width: auto !important;
        max-width: none;
        min-width: 0;
        margin: 0;
    }
}
@media (max-width: 900px) {
    body.voicepa-product-ui #page.vp-single-page > .article {
        float: none;
        width: 100% !important;
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }
}

.vp-single-page [data-vp-single-tabs] {
    display: flex;
    gap: 0;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}
.vp-single-page [data-vp-single-tabs] > .tab-timeline-comments {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin: 0;
    padding: 9px 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
}
.vp-single-page [data-vp-single-tabs] > .tab-timeline-comments[aria-selected="true"] {
    border-bottom-color: #fff;
    background: #ffffff21;
    font-weight: 700;
}
.vp-single-page [data-vp-single-tabs] > .tab-timeline-comments:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}
.vp-single-page .sozai-share { cursor: pointer; }

/* A single material dialog is refreshed with the current post's server-rendered eligibility. */
#popup-overlay8 .vp-material-dialog {
    width: min(440px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    box-sizing: border-box;
    overflow: auto;
    padding: 16px;
    border: 1px solid #e8dfe5;
    border-radius: 14px;
    background: #fff;
    color: #293443;
    box-shadow: 0 12px 42px #21102140;
}
#popup-overlay8 .vp-material-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
#popup-overlay8 .vp-material-dialog__title { margin: 0; padding: 0; font-family: inherit; font-size: 18px; font-weight: 700; line-height: 1.5; }
#popup-overlay8 [data-vp-material-close] {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #e8dfe5;
    border-radius: 8px;
    background: #fff8fb;
    color: #7d3658;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
#popup-overlay8 .vp-material-dialog__lead { margin: 0 0 10px; color: #637185; font-size: 13px; line-height: 1.7; }
#popup-overlay8 .vp-material-source { margin: 0 0 10px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
#popup-overlay8 .vp-material-eligibility .background2 { margin: 0; padding: 12px; border-radius: 9px; font-size: 13px; line-height: 1.75; }
@media (prefers-reduced-motion: reduce) {
    .vp-single-page [data-vp-single-tabs]::after { animation: none; }
}
