/* Editorial information: shared by the widget, shortcode and back numbers.
   Loaded sitewide so PJAX never depends on a destination-only stylesheet. */
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) {
    --vp-editorial-ink: #393039;
    --vp-editorial-muted: #7b6e76;
    --vp-editorial-accent: #94365f;
    --vp-editorial-line: #eee5e9;
    color: var(--vp-editorial-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
body.voicepa-product-ui .vp-editorial {
    width: 100%;
    min-width: 0;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid var(--vp-editorial-line);
    border-radius: 12px;
    background: #fffdfd;
    box-sizing: border-box;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) *,
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) *::before,
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) *::after {
    box-sizing: border-box;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__notice {
    margin: 0 0 4px;
    padding: 8px 10px;
    border-left: 2px solid #bd809b;
    border-radius: 0 6px 6px 0;
    background: #faf1f5;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__notice-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 8px;
    margin: 0 0 2px;
    font-size: 12px;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__notice-title { font-weight: 600; }
body.voicepa-product-ui .vp-editorial .vp-editorial__notice-meta .vp-editorial__date {
    margin: 0;
    color: var(--vp-editorial-muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__notice-text,
body.voicepa-product-ui #sidebars .vp-editorial .vp-editorial__notice-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__list {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__item {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 0;
    border-bottom: 1px solid var(--vp-editorial-line);
    background: none;
    box-shadow: none;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__row {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 12px;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    padding: 13px 0;
    color: var(--vp-editorial-ink);
    text-decoration: none;
    border-radius: 4px;
    background: transparent;
    transition: background-color .15s ease;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) a:hover {
    color: var(--vp-editorial-accent) !important;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__row:hover {
    background: #faf5f7;
    text-decoration: none;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) a:focus-visible {
    outline: 2px solid var(--vp-editorial-accent);
    outline-offset: 3px;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__thumb {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 7px;
    overflow: hidden;
    background: #f4eff1;
    color: #a18a96;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__thumb img {
    display: block;
    float: none;
    width: 100%;
    height: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
}
/* Match the ID specificity of the old sidebar thumbnail rule as well. */
body.voicepa-product-ui #sidebars .vp-editorial .vp-editorial__thumb img {
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__thumb svg {
    display: block;
    width: 22px;
    height: 22px;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__copy {
    display: block;
    min-width: 0;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__date {
    display: block;
    margin: 0 0 3px;
    color: var(--vp-editorial-muted);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__post-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.65;
    word-break: normal;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__arrow {
    display: block;
    width: 12px;
    height: 16px;
    color: #a38c98;
}
/* Give the compact widget's width to the image and the title, without an
   extra arrow column. Archive rows retain their own reading-list layout. */
body.voicepa-product-ui .vp-editorial .vp-editorial__row {
    grid-template-columns: clamp(72px, 30%, 88px) minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__thumb {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__row > .vp-editorial__arrow {
    display: none;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__copy > .vp-editorial__date {
    margin-bottom: 2px;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__post-title {
    line-height: 1.55;
}
/* A missing image should not reserve a large, empty thumbnail column. */
body.voicepa-product-ui .vp-editorial .vp-editorial__item--no-image .vp-editorial__row {
    grid-template-columns: minmax(0, 1fr);
}
body.voicepa-product-ui .vp-editorial .vp-editorial__item--no-image .vp-editorial__thumb {
    display: none;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 6px 0;
    color: var(--vp-editorial-accent);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__more svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
}
/* Compact advertising: each creative stays inside the existing content width.
   The small label identifies every ad without reserving a separate header band. */
body.voicepa-product-ui .vp-editorial .vp-editorial__ads {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 2px 0 0;
    padding: 0;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad {
    display: block;
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    color: var(--vp-editorial-ink);
    background: #faf1f5;
    box-shadow: none;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad-card {
    position: relative;
    display: grid;
    grid-template-columns: min(32%, 104px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
}
body.voicepa-product-ui .vp-editorial a.vp-editorial__ad-card:hover {
    background: #f4e7ee;
    text-decoration: none;
}
body.voicepa-product-ui .vp-editorial a.vp-editorial__ad-card:focus-visible {
    outline: 2px solid var(--vp-editorial-accent);
    outline-offset: 2px;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad-visual {
    display: block;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad-image {
    display: block;
    float: none;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad-copy {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 6px 8px 6px 0;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad-label {
    display: table;
    margin: 0 0 3px;
    padding: 0 4px;
    border: 1px solid #b18a9c;
    border-radius: 3px;
    color: #74435c;
    background: #fffdfd;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .04em;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad-title {
    display: block;
    color: var(--vp-editorial-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad-text {
    display: block;
    margin: 3px 0 0;
    color: #66505d;
    font-size: 12px;
    line-height: 1.6;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 3px 0 0;
    padding: 0;
    color: var(--vp-editorial-accent);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad-cta svg {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
}
/* Do not reserve an image column when only copy is supplied. */
body.voicepa-product-ui .vp-editorial .vp-editorial__ad--no-image .vp-editorial__ad-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad--no-image .vp-editorial__ad-copy {
    padding: 8px 10px;
}
/* Banner-only ads retain their full aspect ratio with no empty text column. */
body.voicepa-product-ui .vp-editorial .vp-editorial__ad--image-only .vp-editorial__ad-card {
    display: block;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad--image-only .vp-editorial__ad-copy {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 0;
    pointer-events: none;
}
body.voicepa-product-ui .vp-editorial .vp-editorial__ad--image-only .vp-editorial__ad-label {
    margin: 0;
}
body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__empty {
    margin: 0;
    padding: 18px 0;
    color: var(--vp-editorial-muted);
    font-size: 13px;
}

/* The native top layer keeps the popup above the player, menus and admin bar. */
html.vp-editorial-modal-open { overflow: hidden; overscroll-behavior: none; }
body.voicepa-product-ui dialog.vp-editorial-dialog {
    position: fixed;
    inset: 0;
    top: var(--vp-editorial-viewport-top, 0px);
    bottom: var(--vp-editorial-viewport-bottom, 0px);
    width: min(740px, calc(100% - 32px));
    height: min(760px, calc(100vh - 40px));
    height: min(760px, calc(100dvh - 40px));
    height: min(760px, calc(var(--vp-editorial-viewport-height, 100dvh) - 40px));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 1px solid #e5d6de;
    border-radius: 14px;
    background: #fffdfd;
    box-shadow: 0 24px 80px #21131f40;
    overflow: hidden;
}
body.voicepa-product-ui dialog.vp-editorial-dialog:not([open]) { display: none !important; }
body.voicepa-product-ui dialog.vp-editorial-dialog[open] { display: flex; flex-direction: column; }
body.voicepa-product-ui dialog.vp-editorial-dialog::backdrop { background: #20121bd1; }
body.voicepa-product-ui dialog.vp-editorial-dialog[aria-modal="true"] { z-index: 2147483001; box-shadow: 0 0 0 100vmax #20121bd1; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 12px 14px 4px 18px;
}
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__title {
    display: block;
    margin: 0;
    padding: 0;
    color: var(--vp-editorial-ink);
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
}
body.voicepa-product-ui .vp-editorial-dialog :is(button, input) {
    float: none;
    margin: 0;
    border: 1px solid #e5d6de;
    border-radius: 7px;
    box-shadow: none;
    color: var(--vp-editorial-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
}
body.voicepa-product-ui .vp-editorial-dialog button { cursor: pointer; }
body.voicepa-product-ui .vp-editorial-dialog button[hidden] { display: none !important; }
body.voicepa-product-ui .vp-editorial-dialog button:disabled { opacity: .6; cursor: default; }
body.voicepa-product-ui .vp-editorial-dialog :is(button, input):focus-visible { outline: 2px solid var(--vp-editorial-accent); outline-offset: 2px; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__close:hover { background: #f7ebf1; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__close svg { width: 20px; height: 20px; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__search {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
    margin: 0;
    padding: 4px 18px 12px;
    border: 0;
    border-bottom: 1px solid var(--vp-editorial-line);
}
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__search input {
    display: block;
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    background: #fff;
    font-size: 16px;
}
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__search input::placeholder { color: var(--vp-editorial-muted); opacity: 1; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__search button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 15px;
    background: #94365f;
    color: #fff;
    font-weight: 600;
}
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__scroll {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    padding: 0 18px 16px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__count {
    margin: 10px 0 0;
    color: var(--vp-editorial-muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__count:empty { display: none; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__row { grid-template-columns: 80px minmax(0, 1fr) 12px; gap: 14px; padding: 12px 0; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__thumb { width: 80px; height: 80px; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__post-title { font-size: 15px; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 4px 0 0;
    color: var(--vp-editorial-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.7;
}
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__item--no-image .vp-editorial__row { grid-template-columns: minmax(0, 1fr) 12px; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__item--no-image .vp-editorial__thumb { display: none; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__end { padding: 14px 0 0; text-align: center; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__status { margin: 0; color: var(--vp-editorial-muted); font-size: 13px; line-height: 1.7; }
body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__more { min-height: 44px; margin: 8px 0 0; padding: 8px 18px; background: #faf0f5; color: var(--vp-editorial-accent); }
@media (max-width: 600px) {
    body.voicepa-product-ui dialog.vp-editorial-dialog {
        top: calc(var(--vp-editorial-viewport-top, 0px) + max(12px, env(safe-area-inset-top)));
        bottom: calc(var(--vp-editorial-viewport-bottom, 0px) + max(12px, env(safe-area-inset-bottom)));
        left: 8px;
        right: 8px;
        width: auto;
        height: calc(100vh - 24px);
        height: calc(100dvh - 24px);
        height: calc(var(--vp-editorial-viewport-height, 100dvh) - max(12px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
        margin: 0;
        border-radius: 12px;
    }
    body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__head { padding: 8px 8px 4px 12px; gap: 6px; }
    body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__title { font-size: 16px; }
    body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__search { padding-inline: 12px; }
    body.voicepa-product-ui .vp-editorial-dialog .vp-editorial-dialog__scroll { padding: 0 12px max(12px, env(safe-area-inset-bottom)); }
    body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__row { grid-template-columns: 68px minmax(0, 1fr) 12px; gap: 10px; }
    body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__thumb { width: 68px; height: 68px; }
    body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__post-title { font-size: 14px; }
    body.voicepa-product-ui .vp-editorial-dialog .vp-editorial__excerpt { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    body.voicepa-product-ui :is(.vp-editorial, .vp-editorial-dialog) .vp-editorial__row { transition: none; }
}
