.detail-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    margin: 18px auto 24px;
}

.content-body img {
    max-width: 100%;
    height: auto;
}

.content-body a {
    color: #ff625f;
    text-decoration: underline;
}

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

.post-content-with-image {
    display: flow-root;
}

.content-inline-image {
    float: left;
    width: min(42%, 360px);
    height: auto;
    margin: 0 24px 16px 0;
    border-radius: 16px;
    object-fit: contain;
    background: var(--vezcu-black);
}

/* Vezcu purple and black palette, based on the supplied reference. */
:root {
    --vezcu-purple: #6236c9;
    --vezcu-purple-dark: #351775;
    --vezcu-purple-soft: #7b55dd;
    --vezcu-black: #070509;
    --vezcu-panel: #110c18;
    --vezcu-panel-light: #191126;
    --vezcu-border: #34234a;
    --vezcu-muted: #adb2c7;
}

body,
.admin-body {
    background: var(--vezcu-black);
}

.top {
    background: linear-gradient(90deg, rgba(7, 5, 9, .98), rgba(53, 23, 117, .96), rgba(7, 5, 9, .98));
    border-bottom-color: var(--vezcu-border);
}

.brand,
.stats b,
.reactions span,
.status-tabs a.active,
.row-actions a,
.admin-eyebrow,
.admin-stats b,
.admin-section-head > a,
.detail .post-category,
.wp-list-table th a:hover,
.table-arrow:hover {
    color: var(--vezcu-purple-soft);
}

.hero {
    background: radial-gradient(circle at top left, rgba(98, 54, 201, .48), rgba(53, 23, 117, .28) 48%, #0c0811 100%);
    border: 1px solid var(--vezcu-border);
}

.btn,
button,
.file-btn,
.menu-toggle,
.menu-close,
.admin-quick-add,
.pagination a.page:hover,
.pagination .current,
.quick-copy-button:hover,
.upload-progress.is-processing .upload-progress-bar span,
.post-upload-progress .upload-progress-bar span {
    background: var(--vezcu-purple) !important;
    border-color: var(--vezcu-purple) !important;
    color: #fff !important;
}

.card,
.static,
.login,
.form,
.stats div,
.gallery-tile,
.gallery-item,
.media-upload,
.media-card,
.pagination .page,
.admin-sidebar,
.admin-stats a,
.admin-section-card,
.admin-content .post-editor-main,
.admin-content .post-editor-side {
    background: var(--vezcu-panel);
    border-color: var(--vezcu-border);
}

.card:hover,
.reaction-btn:hover,
.admin-sidebar-toggle:hover,
.admin-stats a:hover,
.table-arrow:hover,
.admin-content .post-editor-main input[name=title]:focus {
    border-color: var(--vezcu-purple-soft);
}

.reaction-btn.is-selected {
    border-color: var(--vezcu-purple-soft) !important;
    background: var(--vezcu-purple-dark) !important;
    box-shadow: 0 0 0 3px rgba(123, 85, 221, .22);
    transform: translateY(-2px);
}

.chips a,
.reaction-btn,
.top input,
input,
select,
textarea,
.admin-logo > span:first-child,
.admin-sidebar-toggle,
.admin-topbar,
.admin-nav a:hover,
.admin-nav a.active,
.admin-sidebar-foot a:hover,
.admin-logout:hover,
.admin-content .post-editor-main textarea[name=content],
.admin-content .post-editor-side > label:has(input[type=checkbox]) {
    background: var(--vezcu-panel-light);
    border-color: var(--vezcu-border);
}

.card:hover,
.gallery-tile:has(input:checked),
.notice,
.status-published {
    border-color: var(--vezcu-purple);
}

.gallery-tile:has(input:checked) {
    box-shadow: 0 0 0 2px rgba(98, 54, 201, .4);
}

.notice,
.upload-progress.is-processing strong,
.admin-nav a.active > span {
    color: var(--vezcu-purple-soft);
}

.admin-nav a.active {
    box-shadow: inset 3px 0 var(--vezcu-purple);
}

.detail .punchline,
.quick-edit-panel {
    border-color: var(--vezcu-purple);
}

.content-body a,
.link-button {
    color: var(--vezcu-purple-soft) !important;
}

.share {
    justify-content: center;
    width: 100%;
}

.share a,
.share a:nth-child(2),
.share a:nth-child(3) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--vezcu-purple-dark);
    border: 1px solid var(--vezcu-purple-soft);
    color: #fff;
}

.share-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: currentColor;
}

.random-page {
    width: min(900px, 100%);
    margin: 20px auto 40px;
    text-align: center;
}

.random-card {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 7vw, 72px) clamp(20px, 6vw, 64px);
    border: 1px solid var(--vezcu-purple);
    border-radius: 28px;
    background: radial-gradient(circle at top, rgba(98, 54, 201, .34), transparent 48%), var(--vezcu-panel);
    box-shadow: 0 22px 70px rgba(0, 0, 0, .28);
}

.random-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--vezcu-purple-soft);
    border-radius: 999px;
    background: rgba(98, 54, 201, .18);
    color: var(--vezcu-purple-soft);
    font-size: 14px;
    font-weight: 800;
}

.random-emoji {
    margin: 24px 0 10px;
    font-size: clamp(64px, 12vw, 104px);
    line-height: 1;
}

.random-card h1 {
    margin: 12px 0 14px;
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1.08;
}

.random-card > p {
    max-width: 660px;
    margin: 0 auto 26px;
    color: var(--vezcu-muted);
    font-size: clamp(16px, 2.5vw, 19px);
    line-height: 1.7;
}

.random-button {
    gap: 9px;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    background: var(--vezcu-purple) !important;
    font-size: 17px;
    line-height: 50px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.random-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(98, 54, 201, .42);
}

.random-card .random-hint {
    margin: 18px auto 0;
    font-size: 14px;
}

.random-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.random-benefits div {
    display: grid;
    gap: 7px;
    padding: 22px 16px;
    border: 1px solid var(--vezcu-border);
    border-radius: 18px;
    background: var(--vezcu-panel);
}

.random-benefits div > span {
    font-size: 28px;
}

.random-benefits strong {
    color: #fff;
    font-size: 17px;
}

.random-benefits small {
    color: var(--vezcu-muted);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .random-page {
        margin-top: 4px;
    }

    .random-card {
        border-radius: 20px;
    }

    .random-benefits {
        grid-template-columns: 1fr;
    }
}

.mobile-menu {
    background: var(--vezcu-black);
}

/* Archive cards must show the complete original artwork without cropping. */
.card img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    background: var(--vezcu-black);
}

.card {
    height: auto;
    align-self: start;
}

.card > a {
    display: block;
}

/* Shared logo/sidebar column and homepage category navigation. */
:root {
    --vezcu-sidebar-width: 280px;
}

.top {
    display: grid;
    grid-template-columns: var(--vezcu-sidebar-width) minmax(0, 1fr);
    gap: 24px;
    min-height: 88px;
    padding: 10px max(24px, calc((100vw - 1500px) / 2));
    background:
        radial-gradient(circle at 50% -120%, rgba(123, 85, 221, .34), transparent 48%),
        rgba(7, 5, 9, .94);
    border-bottom: 1px solid rgba(123, 85, 221, .28);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
    backdrop-filter: blur(16px);
}

.brand-column {
    width: var(--vezcu-sidebar-width);
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.brand {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.brand img {
    display: block;
    width: 238px;
    max-width: 100%;
    height: auto;
    max-height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 5px 14px rgba(0, 0, 0, .28));
}

.top > .mobile-menu {
    min-width: 0;
    justify-content: space-between;
    gap: 18px;
    min-height: 58px;
    padding: 7px 9px 7px 14px;
    background: rgba(17, 12, 24, .72);
    border: 1px solid rgba(123, 85, 221, .24);
    border-radius: 18px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}

.mobile-menu-overlay {
    display: none;
}

.header-nav {
    align-items: center;
    gap: 4px !important;
}

.header-nav a {
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    color: #ddd6e9;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav a.is-active {
    background: rgba(98, 54, 201, .24);
    color: #fff;
    outline: none;
}

.header-nav a.is-active::after {
    position: absolute;
    right: 12px;
    bottom: 4px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--vezcu-purple-soft);
    content: '';
}

.header-search {
    position: relative;
    flex: 0 1 260px;
    min-width: 175px;
}

.header-search span {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #9b91aa;
    font-size: 20px;
    transform: translateY(-52%);
    pointer-events: none;
}

.top .header-search input {
    width: 100%;
    height: 42px;
    padding: 0 16px 0 42px;
    background: rgba(7, 5, 9, .74);
    border: 1px solid var(--vezcu-border);
    border-radius: 13px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.top .header-search input:focus {
    background: var(--vezcu-black);
    border-color: var(--vezcu-purple-soft);
    box-shadow: 0 0 0 3px rgba(123, 85, 221, .16);
    outline: none;
}

.page-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
}

.page-shell.has-sidebar {
    display: grid;
    grid-template-columns: var(--vezcu-sidebar-width) minmax(0, 1fr);
    gap: 24px;
    padding: 30px 24px;
}

.page-shell > main {
    min-width: 0;
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: 30px;
}

.page-shell.has-sidebar > main {
    max-width: none;
    margin: 0;
    padding: 0;
}

.category-sidebar {
    position: static;
    align-self: start;
    width: var(--vezcu-sidebar-width);
    max-height: none;
    overflow: visible;
    padding: 16px 12px;
    background: var(--vezcu-panel);
    border: 1px solid var(--vezcu-border);
    border-radius: 16px;
}

.category-sidebar h2 {
    margin: 0 8px 10px;
    color: #fff;
    font-size: 18px;
}

.category-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-drawer-toggle,
.category-drawer-close,
.category-drawer-overlay {
    display: none;
}

.category-sidebar-list {
    display: grid;
    gap: 2px;
    max-height: none;
    overflow: visible;
}

.category-sidebar-list a {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 7px;
    align-items: center;
    min-height: 30px;
    padding: 5px 7px;
    border-radius: 7px;
    color: #ddd6e9;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.category-sidebar-list a:hover,
.category-sidebar-list a:focus-visible {
    background: var(--vezcu-purple-dark);
    color: #fff;
    outline: none;
}

.category-emoji {
    font-size: 17px;
    text-align: center;
}

@media (max-width: 900px) {
    .top {
        display: flex;
        min-height: 74px;
        padding: 9px 18px;
        backdrop-filter: none;
    }

    .brand-column {
        width: 180px;
    }

    .brand img {
        width: 170px;
        max-height: 56px;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
        min-height: 40px;
        padding: 0 16px;
        border-radius: 11px;
        gap: 7px;
    }

    .top > .mobile-menu {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 1101;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 24px;
        width: min(390px, 92vw);
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: 24px;
        border: 0;
        border-left: 1px solid var(--vezcu-border);
        border-radius: 18px 0 0 18px;
        background: rgba(7, 5, 9, .98);
        box-shadow: -18px 0 50px rgba(0, 0, 0, .48);
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s ease;
    }

    .top > .mobile-menu.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1100;
        background: rgba(0, 0, 0, .7);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease, visibility .25s ease;
    }

    .menu-open .mobile-menu-overlay {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        align-self: flex-end;
        width: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 11px;
    }

    .mobile-menu .header-nav {
        align-items: stretch;
    }

    .mobile-menu .header-nav a {
        padding: 16px 4px;
        border-radius: 0;
        font-size: 18px;
        line-height: 1.25;
    }

    .header-nav a.is-active::after {
        right: auto;
        bottom: 8px;
        left: 4px;
        width: 44px;
    }

    .header-search {
        flex: none;
        min-width: 0;
    }

    .content-inline-image {
        float: none;
        display: block;
        width: 100%;
        max-width: none;
        margin: 0 0 20px;
        border-radius: 14px;
    }

    .page-shell.has-sidebar {
        display: block;
        padding: 18px;
    }

    .category-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1001;
        width: min(340px, 88vw);
        max-height: none;
        overflow-y: auto;
        padding: 18px 14px;
        border-width: 0 1px 0 0;
        border-radius: 0 18px 18px 0;
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .25s ease, visibility .25s ease;
    }

    .category-sidebar-list {
        max-height: none;
        overflow: visible;
    }

    .category-sidebar h2 {
        margin-bottom: 14px;
        font-size: 20px;
    }

    .category-drawer-toggle {
        position: fixed;
        left: 0;
        top: 42%;
        z-index: 950;
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 11px 12px 11px 9px;
        border: 1px solid var(--vezcu-border);
        border-left: 0;
        border-radius: 0 12px 12px 0;
        background: var(--vezcu-purple);
        color: #fff;
        box-shadow: 0 5px 22px rgba(0, 0, 0, .38);
        font-size: 13px;
        font-weight: 800;
        cursor: pointer;
        writing-mode: vertical-rl;
    }

    .category-drawer-close {
        display: grid;
        place-items: center;
        width: 38px;
        height: 38px;
        padding: 0;
        border: 1px solid var(--vezcu-border);
        border-radius: 10px;
        background: var(--vezcu-black);
        color: #fff;
        font-size: 27px;
        line-height: 1;
        cursor: pointer;
    }

    .category-drawer-overlay {
        position: fixed;
        inset: 0;
        z-index: 1000;
        background: rgba(0, 0, 0, .72);
        backdrop-filter: blur(2px);
    }

    .category-drawer-open {
        overflow: hidden;
    }

    .category-drawer-open .category-sidebar {
        transform: translateX(0);
        visibility: visible;
    }

    .category-drawer-open .category-drawer-overlay {
        display: block;
    }

    .page-shell > main,
    .page-shell.has-sidebar > main {
        padding: 0;
    }
}
