/* Aphro Codex homepage — all selectors are namespaced so WooCommerce routes
 * and the existing aphro-theme remain untouched. */
.aphro-codex-home,
.aphro-codex-home body {
    --aphro-codex-ink: #24161e;
    --aphro-codex-rose: #c85d73;
    --aphro-codex-blush: #f8e9e8;
    --aphro-codex-cream: #fcfaf8;
    --aphro-codex-line: rgba(36, 22, 30, .12);
    overflow-x: hidden;
}

.aphro-codex-page {
    color: var(--aphro-codex-ink);
    background: var(--aphro-codex-cream);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

.aphro-codex-page *,
.aphro-codex-page *::before,
.aphro-codex-page *::after {
    box-sizing: border-box;
}

.aphro-codex-page img {
    display: block;
    max-width: 100%;
}

.aphro-codex-container {
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
}

.aphro-codex-kicker {
    margin: 0;
    color: var(--aphro-codex-rose);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.aphro-codex-mobile-break {
    display: none;
}

.aphro-codex-hero {
    position: relative;
    min-height: clamp(560px, 43vw, 690px);
    overflow: hidden;
    background: var(--aphro-codex-blush);
}

.aphro-codex-hero__media,
.aphro-codex-hero__media img,
.aphro-codex-hero__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.aphro-codex-hero__media img {
    object-fit: cover;
    object-position: center;
}

.aphro-codex-hero__veil {
    background: linear-gradient(90deg, rgba(252, 250, 248, .02) 35%, rgba(248, 233, 232, .22) 100%);
    pointer-events: none;
}

.aphro-codex-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: inherit;
    align-items: center;
    grid-template-columns: 1fr 1fr;
}

.aphro-codex-hero__copy {
    grid-column: 2;
    padding: 56px 0 56px clamp(20px, 5vw, 92px);
}

.aphro-codex-hero h1,
.aphro-codex-section h2,
.aphro-codex-guide h2,
.aphro-codex-privacy h2 {
    font-family: Cardo, Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -.045em;
}

.aphro-codex-hero h1 {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--aphro-codex-ink);
    font-size: clamp(58px, 6.1vw, 104px);
    line-height: .9;
}

.aphro-codex-hero__intro {
    max-width: 480px;
    margin: 28px 0 0;
    color: rgba(36, 22, 30, .74);
    font-size: 18px;
    line-height: 1.6;
}

.aphro-codex-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.aphro-codex-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.aphro-codex-button:hover,
.aphro-codex-button:focus-visible {
    transform: translateY(-2px);
}

.aphro-codex-button--primary {
    background: var(--aphro-codex-rose);
    color: #fff;
}

.aphro-codex-button--primary:hover,
.aphro-codex-button--primary:focus-visible {
    background: #a9475d;
    color: #fff;
}

.aphro-codex-button--secondary {
    border-color: rgba(36, 22, 30, .48);
    background: rgba(255, 255, 255, .62);
    color: var(--aphro-codex-ink);
    backdrop-filter: blur(8px);
}

.aphro-codex-button--secondary:hover,
.aphro-codex-button--secondary:focus-visible {
    border-color: var(--aphro-codex-ink);
    background: #fff;
    color: var(--aphro-codex-ink);
}

.aphro-codex-button--light {
    background: #fff;
    color: var(--aphro-codex-ink);
}

.aphro-codex-button--light:hover,
.aphro-codex-button--light:focus-visible {
    background: var(--aphro-codex-blush);
    color: var(--aphro-codex-ink);
}

.aphro-codex-trust {
    border-bottom: 1px solid var(--aphro-codex-line);
    background: #fff;
}

.aphro-codex-trust__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.aphro-codex-trust__grid > div {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-right: 1px solid var(--aphro-codex-line);
    padding: 18px 22px;
}

.aphro-codex-trust__grid > div:first-child {
    border-left: 1px solid var(--aphro-codex-line);
}

.aphro-codex-trust__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border: 1px solid rgba(189, 83, 107, .25);
    border-radius: 50%;
    color: #bd536b;
}

.aphro-codex-trust__icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
}

.aphro-codex-trust strong,
.aphro-codex-trust span:not(.aphro-codex-trust__icon) {
    display: block;
}

.aphro-codex-trust strong {
    font-size: 14px;
    line-height: 1.3;
}

.aphro-codex-trust span:not(.aphro-codex-trust__icon) {
    margin-top: 4px;
    color: #777078;
    font-size: 12px;
    line-height: 1.4;
}

.aphro-codex-section {
    padding: clamp(64px, 8vw, 120px) 0;
}

.aphro-codex-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 42px;
}

.aphro-codex-section-head h2 {
    margin: 12px 0 0;
    color: var(--aphro-codex-ink);
    font-size: clamp(42px, 5vw, 76px);
    line-height: .95;
}

.aphro-codex-section-head > p {
    max-width: 360px;
    margin: 0;
    color: #777078;
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}

.aphro-codex-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.aphro-codex-category {
    position: relative;
    display: block;
    aspect-ratio: .84;
    overflow: hidden;
    border-radius: 22px;
    background: #eadfdf;
    color: #fff;
}

.aphro-codex-category img,
.aphro-codex-category__veil {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.aphro-codex-category img {
    object-fit: cover;
    transition: transform .7s ease;
}

.aphro-codex-category__veil {
    background: linear-gradient(180deg, transparent 42%, rgba(24, 13, 18, .76) 100%);
}

.aphro-codex-category:hover img,
.aphro-codex-category:focus-visible img {
    transform: scale(1.05);
}

.aphro-codex-category__copy {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
}

.aphro-codex-category__copy small,
.aphro-codex-category__copy strong,
.aphro-codex-category__copy em {
    display: block;
}

.aphro-codex-category__copy small {
    color: rgba(255, 255, 255, .72);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.aphro-codex-category__copy strong {
    margin-top: 6px;
    font-family: Cardo, Georgia, serif;
    font-size: clamp(25px, 2.3vw, 42px);
    font-weight: 400;
    line-height: .98;
}

.aphro-codex-category__copy em {
    margin-top: 16px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .08em;
    opacity: 0;
    text-transform: uppercase;
    transition: opacity .25s ease;
}

.aphro-codex-category:hover .aphro-codex-category__copy em,
.aphro-codex-category:focus-visible .aphro-codex-category__copy em {
    opacity: 1;
}

.aphro-codex-popular {
    background: #f8f3f1;
}

.aphro-codex-section-head--popular {
    align-items: center;
}

.aphro-codex-section-head--popular > a {
    color: var(--aphro-codex-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(200, 93, 115, .45);
    text-underline-offset: 5px;
}

.aphro-codex-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.aphro-codex-product {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(36, 22, 30, .10);
    border-radius: 20px;
    background: #fff;
}

.aphro-codex-product__image {
    display: grid;
    min-height: 0;
    aspect-ratio: 1 / 1;
    place-items: center;
    background: #fff;
}

.aphro-codex-product__image img {
    width: 86%;
    height: 86%;
    object-fit: contain;
}

.aphro-codex-product__placeholder {
    width: 56%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--aphro-codex-blush);
}

.aphro-codex-product__body {
    display: flex;
    min-height: 188px;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.aphro-codex-product__eyebrow {
    margin: 0;
    color: var(--aphro-codex-rose);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.aphro-codex-product h3 {
    min-height: 2.55em;
    margin: 8px 0 0;
    font-size: 18px;
    line-height: 1.28;
}

.aphro-codex-product h3 a {
    color: var(--aphro-codex-ink);
}

.aphro-codex-product__description {
    min-height: 2.7em;
    margin: 6px 0 0;
    color: #7d757b;
    font-size: 13px;
    line-height: 1.4;
}

.aphro-codex-product__meta {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.aphro-codex-product__price {
    color: var(--aphro-codex-rose);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.1;
}

.aphro-codex-product__price del {
    display: block;
    margin-bottom: 3px;
    color: #9a9396;
    font-size: 12px;
    font-weight: 400;
}

.aphro-codex-product__price ins {
    text-decoration: none;
}

.aphro-codex-product__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--aphro-codex-ink);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.aphro-codex-guide {
    display: grid;
    width: min(1440px, calc(100% - 64px));
    margin: clamp(64px, 8vw, 120px) auto;
    overflow: hidden;
    border-radius: 28px;
    background: var(--aphro-codex-ink);
    color: #fff;
    grid-template-columns: 1fr 1fr;
}

.aphro-codex-guide__image {
    min-height: 520px;
}

.aphro-codex-guide__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aphro-codex-guide__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 80px);
}

.aphro-codex-guide__mark,
.aphro-codex-privacy__icon {
    color: var(--aphro-codex-rose);
    font-size: 30px;
}

.aphro-codex-privacy__icon {
    display: inline-grid;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    place-items: center;
    border: 1px solid rgba(189, 83, 107, .28);
    border-radius: 50%;
    font-size: 0;
}

.aphro-codex-privacy__icon svg {
    display: block;
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.55;
}

@media (max-width: 600px) {
    .aphro-codex-trust__grid > div { min-height: 84px; padding-inline: 18px; }
    .aphro-codex-privacy__icon { width: 56px; height: 56px; }
    .aphro-codex-privacy__icon svg { width: 27px; height: 27px; }
}

.aphro-codex-guide__copy .aphro-codex-kicker {
    margin-top: 28px;
    color: rgba(255, 255, 255, .56);
}

.aphro-codex-guide h2 {
    margin: 12px 0 0;
    font-size: clamp(48px, 5vw, 78px);
    line-height: .94;
}

.aphro-codex-guide__copy > p:not(.aphro-codex-kicker) {
    max-width: 480px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .70);
    font-size: 16px;
    line-height: 1.7;
}

.aphro-codex-guide .aphro-codex-button {
    align-self: flex-start;
    margin-top: 28px;
}

.aphro-codex-privacy {
    padding: clamp(64px, 9vw, 136px) 0;
    border-top: 1px solid var(--aphro-codex-line);
    background: var(--aphro-codex-blush);
    text-align: center;
}

.aphro-codex-privacy .aphro-codex-kicker {
    margin-top: 20px;
}

.aphro-codex-privacy h2 {
    margin: 14px 0 0;
    font-size: clamp(44px, 5.2vw, 80px);
    line-height: .98;
}

.aphro-codex-privacy .aphro-codex-container > p:last-child {
    max-width: 620px;
    margin: 28px auto 0;
    color: rgba(36, 22, 30, .66);
    font-size: 16px;
    line-height: 1.7;
}

.aphro-codex-empty {
    margin: 0;
    color: #777078;
}

@media (max-width: 1100px) {
    .aphro-codex-container,
    .aphro-codex-guide {
        width: min(100% - 40px, 900px);
    }

    .aphro-codex-hero__copy {
        padding-left: 20px;
    }

    .aphro-codex-category-grid,
    .aphro-codex-product-grid {
        gap: 14px;
    }

    .aphro-codex-product__body {
        padding-right: 14px;
        padding-left: 14px;
    }
}

@media (max-width: 820px) {
    .aphro-codex-container,
    .aphro-codex-guide {
        width: calc(100% - 32px);
    }

    .aphro-codex-hero {
        min-height: 610px;
    }

    .aphro-codex-hero__media img {
        object-position: 62% center;
    }

    .aphro-codex-hero__veil {
        background: linear-gradient(180deg, rgba(252, 250, 248, .04) 25%, rgba(248, 233, 232, .72) 100%);
    }

    .aphro-codex-hero__inner {
        display: flex;
        align-items: end;
    }

    .aphro-codex-hero__copy {
        width: 100%;
        padding: 40px 0 38px;
    }

    .aphro-codex-hero h1 {
        max-width: 100%;
        font-size: clamp(48px, 13vw, 70px);
        overflow-wrap: anywhere;
    }

    .aphro-codex-mobile-break {
        display: inline;
    }

    .aphro-codex-hero .aphro-codex-kicker {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: 10px;
        letter-spacing: .11em;
    }

    .aphro-codex-hero__intro {
        max-width: 390px;
        font-size: 16px;
    }

    .aphro-codex-trust__grid {
        grid-template-columns: 1fr;
    }

    .aphro-codex-trust__grid > div,
    .aphro-codex-trust__grid > div:first-child {
        justify-content: flex-start;
        border-right: 0;
        border-bottom: 1px solid var(--aphro-codex-line);
        border-left: 0;
    }

    .aphro-codex-trust__grid > div:last-child {
        border-bottom: 0;
    }

    .aphro-codex-section-head {
        display: block;
        margin-bottom: 28px;
    }

    .aphro-codex-section-head > p {
        max-width: 420px;
        margin-top: 18px;
        text-align: left;
    }

    .aphro-codex-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aphro-codex-category__copy em {
        opacity: 1;
    }

    .aphro-codex-section-head--popular {
        display: flex;
        align-items: end;
    }

    .aphro-codex-section-head--popular > a {
        flex: 0 0 auto;
        margin-bottom: 3px;
    }

    .aphro-codex-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aphro-codex-guide {
        grid-template-columns: 1fr;
    }

    .aphro-codex-guide__image {
        min-height: 300px;
        max-height: 390px;
    }

    .aphro-codex-guide__copy {
        padding: 38px 26px 44px;
    }

    /* CookieYes is injected outside the page markup. Constrain it explicitly
     * so the live consent controls cannot create horizontal overflow. */
    body.aphro-codex-home .cky-consent-container,
    body.aphro-codex-home .cky-consent-container.cky-box-bottom-left,
    body.aphro-codex-home .cky-consent-container.cky-box-bottom-right,
    body.aphro-codex-home .cky-box-bottom-left,
    body.aphro-codex-home .cky-box-bottom-right {
        position: fixed !important;
        right: 12px !important;
        bottom: 12px !important;
        left: 12px !important;
        width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 24px) !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        transform: none !important;
    }

    body.aphro-codex-home .cky-consent-bar,
    body.aphro-codex-home .cky-notice,
    body.aphro-codex-home .cky-notice-group,
    body.aphro-codex-home .cky-notice-des,
    body.aphro-codex-home .cky-notice-btn-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.aphro-codex-home .cky-consent-container .cky-consent-bar {
        padding: 16px 12px !important;
        overflow: hidden !important;
    }

    body.aphro-codex-home .cky-consent-container .cky-notice,
    body.aphro-codex-home .cky-consent-container .cky-notice-group,
    body.aphro-codex-home .cky-consent-container .cky-notice-des,
    body.aphro-codex-home .cky-consent-container .cky-notice-btn-wrapper {
        padding-right: 0 !important;
        padding-left: 0 !important;
    }

    body.aphro-codex-home .cky-notice-group {
        display: flex !important;
        flex-direction: column !important;
    }

    body.aphro-codex-home .cky-notice-des p {
        max-width: 100% !important;
        overflow-wrap: anywhere !important;
        word-break: normal !important;
        white-space: normal !important;
    }

    body.aphro-codex-home .cky-notice-btn-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    body.aphro-codex-home .cky-notice-btn-wrapper .cky-btn-customize {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    body.aphro-codex-home .cky-notice-btn-wrapper .cky-btn-reject {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    body.aphro-codex-home .cky-notice-btn-wrapper .cky-btn-accept {
        grid-column: 2 !important;
        grid-row: 2 !important;
    }

    body.aphro-codex-home .cky-consent-container .cky-btn {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 44px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
}

@media (max-width: 480px) {
    .aphro-codex-container,
    .aphro-codex-guide {
        width: calc(100% - 24px);
    }

    .aphro-codex-hero {
        min-height: 600px;
    }

    .aphro-codex-hero h1 {
        font-size: clamp(44px, 12.5vw, 58px);
    }

    .aphro-codex-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .aphro-codex-button {
        width: 100%;
    }

    .aphro-codex-section {
        padding: 64px 0;
    }

    .aphro-codex-section-head h2 {
        font-size: 45px;
    }

    .aphro-codex-section-head--popular {
        display: block;
    }

    .aphro-codex-section-head--popular > a {
        display: inline-block;
        margin-top: 16px;
    }

    .aphro-codex-category-grid,
    .aphro-codex-product-grid {
        gap: 10px;
    }

    .aphro-codex-category {
        border-radius: 16px;
    }

    .aphro-codex-category__copy {
        right: 12px;
        bottom: 14px;
        left: 12px;
    }

    .aphro-codex-category__copy strong {
        font-size: 26px;
    }

    .aphro-codex-product {
        border-radius: 14px;
    }

    .aphro-codex-product__body {
        min-height: 188px;
        padding: 13px 12px 14px;
    }

    .aphro-codex-product h3 {
        font-size: 15px;
    }

    .aphro-codex-product__description {
        font-size: 12px;
    }

    .aphro-codex-product__meta {
        display: block;
    }

    .aphro-codex-product__link {
        margin-top: 10px;
    }

    .aphro-codex-guide {
        border-radius: 20px;
    }

    .aphro-codex-guide h2 {
        font-size: 54px;
    }

    .aphro-codex-privacy h2 {
        font-size: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aphro-codex-button,
    .aphro-codex-category img,
    .aphro-codex-category__copy em {
        transition: none;
    }
}

@media screen {
/* Persistent homepage theme toggle. The class is applied to both html and
 * body so the saved preference is available before WordPress renders the
 * footer control and all of the page sections share one palette. */
html.aphro-dark body.aphro-codex-home,
body.aphro-codex-home.aphro-dark {
    --aphro-codex-ink: #f6edf0;
    --aphro-codex-rose: #ef8ea3;
    --aphro-codex-blush: #2b1c25;
    --aphro-codex-cream: #151016;
    --aphro-codex-line: rgba(246, 237, 240, .16);
    background: var(--aphro-codex-cream);
    color: var(--aphro-codex-ink);
}

html.aphro-dark .aphro-codex-page {
    background: var(--aphro-codex-cream);
}

html.aphro-dark .aphro-codex-hero {
    background: #2b1c25;
}

html.aphro-dark .aphro-codex-hero__veil {
    background: linear-gradient(90deg, rgba(21, 16, 22, .12) 30%, rgba(21, 16, 22, .72) 100%);
}

html.aphro-dark .aphro-codex-hero__intro,
html.aphro-dark .aphro-codex-section-head > p,
html.aphro-dark .aphro-codex-product__description,
html.aphro-dark .aphro-codex-privacy .aphro-codex-container > p:last-child {
    color: rgba(246, 237, 240, .70);
}

html.aphro-dark .aphro-codex-trust {
    background: #20161d;
}

html.aphro-dark .aphro-codex-trust__icon {
    border-color: rgba(238, 165, 184, .34);
    color: #eea5b8;
}

html.aphro-dark .aphro-codex-privacy__icon {
    border-color: rgba(246, 237, 240, .28);
    color: #f0a1b2;
}

html.aphro-dark .aphro-codex-trust span:not(.aphro-codex-trust__icon) {
    color: rgba(246, 237, 240, .58);
}

html.aphro-dark .aphro-codex-popular {
    background: #1c141b;
}

html.aphro-dark .aphro-codex-product {
    border-color: rgba(246, 237, 240, .14);
    background: #241922;
}

html.aphro-dark .aphro-codex-product__image {
    background: #2a2027;
}

html.aphro-dark .aphro-codex-product__link,
html.aphro-dark .aphro-codex-section-head--popular > a {
    color: var(--aphro-codex-ink);
}

html.aphro-dark .aphro-codex-guide {
    background: #0d080c;
}

html.aphro-dark .aphro-codex-button--secondary {
    border-color: rgba(246, 237, 240, .44);
    background: rgba(21, 16, 22, .66);
    color: var(--aphro-codex-ink);
}

html.aphro-dark .aphro-codex-button--secondary:hover,
html.aphro-dark .aphro-codex-button--secondary:focus-visible {
    border-color: var(--aphro-codex-ink);
    background: #2b1c25;
    color: var(--aphro-codex-ink);
}

html.aphro-dark .aphro-codex-button--light {
    background: #f6edf0;
    color: #24161e;
}

html.aphro-dark .aphro-codex-button--light:hover,
html.aphro-dark .aphro-codex-button--light:focus-visible {
    background: #fff;
    color: #24161e;
}

html.aphro-dark .aphro-codex-button--primary {
    background: #f6edf0;
    color: #24161e;
}

html.aphro-dark .aphro-codex-button--primary:hover,
html.aphro-dark .aphro-codex-button--primary:focus-visible {
    background: #fff;
    color: #24161e;
}

html.aphro-dark .aphro-codex-privacy {
    background: #2b1c25;
}

/* The existing WordPress theme owns the header and footer around this
 * homepage. Keep those surfaces readable when the homepage is dark. */
html.aphro-dark body.aphro-codex-home .site-header {
    border-bottom-color: rgba(246, 237, 240, .14);
    background: #151016;
}

/* The header uses a monochrome transparent logo on desktop and mobile. */
html.aphro-dark body.aphro-codex-home .site-header .site-logo img {
    filter: brightness(0) invert(1);
}

html.aphro-dark body.aphro-codex-home .site-header__nav {
    border-top-color: rgba(246, 237, 240, .12);
    background: #20161d;
}

html.aphro-dark body.aphro-codex-home .site-header a,
html.aphro-dark body.aphro-codex-home .site-header button {
    color: #f6edf0;
}

html.aphro-dark body.aphro-codex-home .site-header .mobile-menu-toggle span {
    background: #f6edf0;
}

html.aphro-dark body.aphro-codex-home .site-footer {
    background: #20161d;
    color: #f6edf0;
}

html.aphro-dark body.aphro-codex-home .site-footer a {
    color: #f6edf0;
}

html.aphro-dark body.aphro-codex-home .site-footer__bottom {
    background: #2b1c25;
}

@media (max-width: 900px) {
    html.aphro-dark .aphro-codex-hero__veil {
        background: linear-gradient(180deg, rgba(21, 16, 22, .08) 18%, rgba(21, 16, 22, .86) 100%);
    }
}

}


/* --- Aphro fixes (2026-09): hero kicker legibility on the pink photo, in light and dark mode --- */
.aphro-codex-hero .aphro-codex-kicker {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(36, 22, 30, .58);
    color: #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
