/*
 * Theme Name:  Ollie Child
 * Template:    ollie
 * Description: Child theme for Ollie — applies brand colors and typography.
 * Version:     1.0.27
 */

/*
 * Brand fonts (Amarante, Source Sans 3, Dancing Script) are self-hosted
 * and declared via fontFace in theme.json, which WordPress enqueues
 * globally for both frontend and editor — no @font-face needed here.
 * Files live in assets/fonts/ (previously loaded from fonts.googleapis.com;
 * self-hosting avoids the pre-consent third-party request Complianz flags).
 */

/*
 * When the header template part is rendered via block_template_part() from a
 * PHP wrapper (e.g. the ebook archive page, lil-ebooks/ebook-templates/archive-ebook.php),
 * WordPress does not always generate the per-block inline CSS for the flex
 * container inside the header. This rule reinstates what the block system
 * produces on normal pages so the header layout is consistent everywhere.
 */

.wp-site-blocks > .wp-block-group.alignfull:first-child > div,
.wp-site-blocks > header > .wp-block-group.alignfull > div {
    display: flex;
    flex-wrap: nowrap;
    /* justify-content: space-between; */
    align-items: center;
    max-width: var(--wp--style--global--wide-size, 1260px);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Cover block — image + overlay positioning */
.wp-block-cover {
    position: relative !important;
    overflow: hidden;
}

.wp-block-cover__image-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.wp-block-cover__background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1;
}

.wp-block-cover__inner-container {
    position: relative !important;
    z-index: 2;
    width: 100%;
}

/* Header stacking context — must be above hero inner-container (z-index 2) and
   the floating auth button (z-index 9999). Without this, the nav overlay lives
   inside .alignwide's stacking context (z-index 1 in root), which loses to the
   hero's .wp-block-cover__inner-container (z-index 2 in root). */
header.site-header {
    position: relative;
    z-index: 10000;
    margin-bottom: 1rem;
}

/* Mobile navigation overlay — reinforce fixed positioning within the header
   stacking context so it covers the full viewport on mobile. */
header.site-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 99999 !important;
    overflow: auto !important;
}

/* Navigation — tablet/mobile (< 1024px): hide links, show hamburger.
   Overrides WordPress core nav CSS which shows the full link row above ~600px.
   Without this, the nav items are visible and clipped on portrait tablets. */
@media (max-width: 1023px) {
    header.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: none !important;
        visibility: hidden !important;
    }

    header.site-header .wp-block-navigation__responsive-container-open {
        display: flex !important;
        align-items: center;
    }
}

/* Navigation — desktop (≥ 1024px): show links, hide hamburger.
   1024px keeps portrait tablets (≈820px) on the hamburger and
   landscape tablets (≈1200px) and wider on the full link row. */
@media (min-width: 1024px) {
    header.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
        display: block !important;
        visibility: visible !important;
        position: static !important;
        background: transparent !important;
        padding: 0 !important;
    }

    header.site-header .wp-block-navigation__responsive-container-open {
        display: none !important;
    }

    header.site-header .wp-block-navigation__responsive-container-close {
        display: none !important;
    }
}

/* Navigation block — nav list flex layout */
header.site-header .wp-block-navigation__container {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--wp--preset--spacing--small, 0.75em);
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

header.site-header .wp-block-navigation__container li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================================================
   Section eyebrow — small Amarante label above headings
   ========================================================================== */
.lil-eyebrow {
    font-family: var(--wp--preset--font-family--secondary) !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.18em !important;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary) !important;
    margin-bottom: 0.35rem !important;
    margin-top: 0 !important;
    opacity: 1;
}

.lil-eyebrow::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: currentColor;
    margin-bottom: 0.45rem;
}

.lil-eyebrow.has-text-align-center::before {
    margin-left: auto;
    margin-right: auto;
}

.community-section .lil-eyebrow,
.archive-hero .lil-eyebrow,
.account-hero .lil-eyebrow,
.story-hero .lil-eyebrow {
    color: var(--wp--preset--color--base) !important;
}

/* ==========================================================================
   Single story — hero + reading area
   ========================================================================== */
.story-hero {
    overflow: hidden;
}

/* No featured image — make overlay fully opaque so the velvet reads as solid */
.story-hero:not(:has(.wp-block-cover__image-background)) .wp-block-cover__background {
    opacity: 1 !important;
}

/* ==========================================================================
   Single feature (editorial) — hero
   ========================================================================== */
.editorial-hero {
    overflow: hidden;
}

/* No featured image — same behaviour as story-hero: solid velvet, no dim */
.editorial-hero:not(:has(.wp-block-cover__image-background)) .wp-block-cover__background {
    opacity: 1 !important;
}

.editorial-hero .wp-block-post-terms a {
    color: var(--wp--preset--color--base) !important;
    text-decoration: none !important;
}

.editorial-hero .wp-block-post-terms,
.editorial-hero .wp-block-group {
    background: transparent !important;
}

.story-hero .wp-block-post-terms.lil-eyebrow a {
    color: inherit !important;
    text-decoration: none !important;
}

/* All post-terms links in the hero default to base (white) — prevents velvet link color on dark background */
.story-hero .wp-block-post-terms a {
    color: var(--wp--preset--color--base) !important;
    text-decoration: none !important;
}

/* Strip any default block background so nothing creates a light box inside the dark hero */
.story-hero .wp-block-post-terms,
.story-hero .wp-block-group {
    background: transparent !important;
}

.story-reading {
    font-size: 1.05rem;
    line-height: 1.8;
}

.story-reading p {
    margin-bottom: 1.25em;
}

/* ==========================================================================
   Heat level terms — five chilli slots followed by the term name
   The row always shows all five slots so a level reads as "3 of 5" without
   counting, and every card meta row keeps the same width.

   One SVG silhouette is masked across a fixed-width ::before five times; the
   gradient underneath decides how many slots are solid and how many sit faded.
   Colour is therefore two custom properties, not five image files — the story
   hero re-tints the whole row to satin by overriding them.
   ========================================================================== */
:root {
    --lil-chilli: url('/wp-content/themes/ollie-child/assets/elements/chilli.svg');

    /* Five 10×18 chillies on a 13px pitch — 62px wide in total. */
    --lil-chilli-row:
        var(--lil-chilli) 0    center / 10px 18px no-repeat,
        var(--lil-chilli) 13px center / 10px 18px no-repeat,
        var(--lil-chilli) 26px center / 10px 18px no-repeat,
        var(--lil-chilli) 39px center / 10px 18px no-repeat,
        var(--lil-chilli) 52px center / 10px 18px no-repeat;

    --lil-heat-on: var(--wp--preset--color--primary);
    --lil-heat-off: color-mix(in srgb, var(--wp--preset--color--primary) 22%, transparent);
}

.story-heat-terms a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    color: inherit;
}

/* Hover re-tints the chillies rather than filling the link, which would sit
   behind them and hide the whole rating. */
.story-heat-terms a:hover,
.story-heat-terms a:focus {
    --lil-heat-on: var(--wp--preset--color--primary-alt);
    --lil-heat-off: color-mix(in srgb, var(--wp--preset--color--primary-alt) 30%, transparent);
    background: transparent;
    color: var(--wp--preset--color--primary-alt);
}

.story-heat-terms a::before {
    content: '';
    display: block;
    width: 62px;
    height: 18px;
    flex-shrink: 0;
    -webkit-mask: var(--lil-chilli-row);
            mask: var(--lil-chilli-row);
    /* Fallback for an unrecognised level — every slot faded. */
    background-image: linear-gradient(90deg, var(--lil-heat-off) 0 100%);
}

/* Each stop falls in the gap after the nth chilli, so the split never cuts
   through a shape. Gaps sit at 10–13, 23–26, 36–39 and 49–52px. */
.story-heat-terms a[href*="heat-1"]::before {
    background-image: linear-gradient(90deg, var(--lil-heat-on) 0 11.5px, var(--lil-heat-off) 11.5px);
}

.story-heat-terms a[href*="heat-2"]::before {
    background-image: linear-gradient(90deg, var(--lil-heat-on) 0 24.5px, var(--lil-heat-off) 24.5px);
}

.story-heat-terms a[href*="heat-3"]::before {
    background-image: linear-gradient(90deg, var(--lil-heat-on) 0 37.5px, var(--lil-heat-off) 37.5px);
}

.story-heat-terms a[href*="heat-4"]::before {
    background-image: linear-gradient(90deg, var(--lil-heat-on) 0 50.5px, var(--lil-heat-off) 50.5px);
}

.story-heat-terms a[href*="heat-5"]::before {
    background-image: linear-gradient(90deg, var(--lil-heat-on) 0 100%);
}

/* Story hero: the row sits on a dark featured image behind a #4a0f1a overlay,
   where velvet disappears — so both slot colours become satin cream. Base,
   hover, and focus are locked identical — no visual change on interaction. */
.story-hero .story-heat-terms a,
.story-hero .story-heat-terms a:hover,
.story-hero .story-heat-terms a:focus {
    --lil-heat-on: var(--wp--preset--color--base);
    --lil-heat-off: color-mix(in srgb, var(--wp--preset--color--base) 30%, transparent);
    color: var(--wp--preset--color--base) !important;
    background: transparent !important;
    opacity: 1 !important;
    text-decoration: none !important;
    transition: none !important;
}

.story-hero .story-heat-terms a::before,
.story-hero .story-heat-terms a:hover::before,
.story-hero .story-heat-terms a:focus::before {
    opacity: 1 !important;
    transition: none !important;
}

/* ==========================================================================
   Welcome page — membership benefits list
   ========================================================================== */
.homepage-benefits {
    padding-left: 0 !important;
    list-style: none !important;
}

.homepage-benefits li {
    padding-left: 1.75rem;
    position: relative;
    list-style: none;
    margin-bottom: 0.35rem;
}

.homepage-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.38em;
    width: 16px;
    height: 16px;
    background: url('/wp-content/themes/ollie-child/assets/elements/babyoil-circle.png') center / contain no-repeat;
}

/* ==========================================================================
   Welcome page — CTA section graphic overlay
   ========================================================================== */
.welcome-cta {
    overflow: hidden;
}

.welcome-cta::after {
    content: '';
    position: absolute;
    right: -2%;
    bottom: -8%;
    width: 440px;
    height: 380px;
    background: url('/wp-content/themes/ollie-child/assets/elements/slapped-spice.png') center / contain no-repeat;
    opacity: 0.09;
    pointer-events: none;
    z-index: 1;
}

.welcome-cta > .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Story card meta row — gap between date, genre, and heat level
   ========================================================================== */
.wp-block-query .wp-block-post .wp-block-group.is-layout-flex {
    gap: 0.5rem !important;
    flex-wrap: wrap;
}

/* ==========================================================================
   Member homepage — hero graphic overlay
   ========================================================================== */
.front-hero {
    overflow: hidden;
}

.front-hero::after {
    content: '';
    position: absolute;
    right: -2%;
    bottom: -5%;
    width: 420px;
    height: 560px;
    background: url('/wp-content/themes/ollie-child/assets/elements/lace-merge.png') right bottom / contain no-repeat;
    opacity: 0.10;
    pointer-events: none;
    z-index: 1;
}

.front-hero > .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Member homepage — community section graphic overlay
   ========================================================================== */
.community-section {
    overflow: hidden;
}

.community-section::after {
    content: '';
    position: absolute;
    left: -3%;
    bottom: -10%;
    width: 380px;
    height: 380px;
    background: url('/wp-content/themes/ollie-child/assets/elements/satin-circle.png') left bottom / contain no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.community-section > .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Floating login / logout button — fixed bottom-right on every page
   ========================================================================== */
.lil-auth-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base) !important;
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    box-shadow: 0 4px 16px rgba(74, 15, 26, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.lil-auth-btn:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* Logged-in variant — inverted colours, links to account dashboard */
.lil-auth-btn--member {
    background: var(--wp--preset--color--base);
    color: var(--wp--preset--color--primary) !important;
    box-shadow: 0 4px 16px rgba(74, 15, 26, 0.2);
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   Header — velvet border, graphic element, nav link hover & active states
   ========================================================================== */

/* Replace thin grey border with 2px velvet accent line */
header.site-header .wp-block-group.alignfull {
    border-bottom-color: var(--wp--preset--color--primary) !important;
    border-bottom-width: 2px !important;
    overflow: hidden;
    position: relative;
}

/* Velvet graphic element — behind nav, right side */
header.site-header .wp-block-group.alignfull::after {
    content: '';
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    background: url('/wp-content/themes/ollie-child/assets/elements/velvet-spice.png') center / contain no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

/* Keep nav content above the graphic */
header.site-header .wp-block-group.alignwide {
    position: relative;
    z-index: 1;
}

/* Nav link — uppercase Amarante caps, pill active state */
header.site-header .wp-block-navigation-item__content {
    font-family: var(--wp--preset--font-family--secondary) !important;
    font-size: 0.875rem !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    padding: 5px 12px !important;
    border-radius: 20px;
    transition: color 0.2s ease, background 0.2s ease;
    text-decoration: none !important;
}

header.site-header .wp-block-navigation-item__content:hover {
    color: var(--wp--preset--color--primary) !important;
}

/* Active / current page — Velvet pill with Satin text */
header.site-header .current-menu-item .wp-block-navigation-item__content,
header.site-header .current_page_item .wp-block-navigation-item__content,
header.site-header .wp-block-navigation-item__content[aria-current="page"],
header.site-header .wp-block-navigation-item.is-active .wp-block-navigation-item__content {
    background: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--base) !important;
    font-weight: 600;
}

/* ==========================================================================
   Account dashboard — hero graphic overlay (same pattern as .front-hero)
   ========================================================================== */
.account-hero {
    overflow: hidden;
}

.account-hero::after {
    content: '';
    position: absolute;
    right: -2%;
    bottom: -5%;
    width: 420px;
    height: 560px;
    background: url('/wp-content/themes/ollie-child/assets/elements/lace-merge.png') right bottom / contain no-repeat;
    opacity: 0.10;
    pointer-events: none;
    z-index: 1;
}

.account-hero > .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* Avatar inside the hero */
.account-hero .lil-member-avatar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.account-hero .lil-member-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--wp--preset--color--secondary);
    object-fit: cover;
}

/* ==========================================================================
   Account dashboard — "Picked for you" content cards
   ========================================================================== */
.lil-picked-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.lil-picked-list__item {
    list-style: none;
}

.lil-picked-list__link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: #fff;
}

.lil-picked-list__link:hover {
    box-shadow: 0 8px 24px rgba(74, 15, 26, 0.15);
    transform: translateY(-3px);
}

.lil-picked-list__thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.lil-picked-list__meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem;
}

.lil-picked-list__genre {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
}

.lil-picked-list__title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--wp--preset--color--foreground, #1a1a1a);
}

/* ==========================================================================
   Account dashboard — "Continue reading" series cards
   ========================================================================== */
.lil-continue-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.lil-continue-list__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
    background: #fff;
    list-style: none;
    transition: box-shadow 0.2s ease;
}

.lil-continue-list__item:hover {
    box-shadow: 0 4px 16px rgba(74, 15, 26, 0.12);
}

.lil-continue-list__cover {
    width: 52px;
    height: 70px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.lil-continue-list__info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.lil-continue-list__series {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lil-continue-list__cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    text-decoration: none;
}

.lil-continue-list__cta:hover {
    color: var(--wp--preset--color--primary);
}

/* ==========================================================================
   Account dashboard — forum activity list
   ========================================================================== */
.lil-forum-activity {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lil-forum-activity__item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
    list-style: none;
}

.lil-forum-activity__item:last-child {
    border-bottom: none;
}

.lil-forum-activity__type {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    background: var(--wp--preset--color--secondary, #F3E5DB);
    color: var(--wp--preset--color--primary);
}

.lil-forum-activity__item--topic .lil-forum-activity__type {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base, #fff);
}

.lil-forum-activity__link {
    font-size: 0.9rem;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lil-forum-activity__link:hover {
    color: var(--wp--preset--color--primary);
}

.lil-forum-activity__date {
    font-size: 0.78rem;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    opacity: 0.55;
    white-space: nowrap;
}

.lil-forum-activity__empty {
    font-size: 0.9rem;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    opacity: 0.7;
    margin: 0;
}

/* ==========================================================================
   Forum section on account page — [lil_my_forum_section]
   ========================================================================== */
.lil-fs {
    max-width: 720px;
}

.lil-fs__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--wp--preset--color--border-light, #ddc9bc);
    padding-bottom: 0.75rem;
}

.lil-fs__tab {
    background: none;
    border: 1px solid var(--wp--preset--color--border-light, #ddc9bc);
    border-radius: 40px;
    padding: 0.35rem 1rem;
    font-family: var(--wp--preset--font-family--primary, 'Source Sans 3', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    color: #444;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.lil-fs__tab:hover {
    border-color: var(--wp--preset--color--primary, #721628);
    color: var(--wp--preset--color--primary, #721628);
}

.lil-fs__tab.is-active {
    background: var(--wp--preset--color--primary, #721628);
    border-color: var(--wp--preset--color--primary, #721628);
    color: #fff;
}

.lil-fs__count {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
}

.lil-fs__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.lil-fs__item {
    display: block;
}

.lil-fs__row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--wp--preset--color--border-light, #ddc9bc);
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lil-fs__row:hover {
    box-shadow: 0 4px 12px rgba(74, 15, 26, 0.1);
    transform: translateY(-1px);
}

.lil-fs__title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
}

.lil-fs__title:hover {
    color: var(--wp--preset--color--primary, #721628);
}

.lil-fs__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.7rem;
    font-size: 0.75rem;
    color: #777;
}

.lil-fs__forum {
    color: var(--wp--preset--color--primary, #721628);
    font-weight: 500;
}

.lil-fs__forum-badge {
    display: inline-block;
    font-family: var(--wp--preset--font-family--secondary, 'Amarante', serif);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1px 8px;
    border-radius: 20px;
    background: var(--wp--preset--color--primary, #721628);
    color: #fff;
}

.lil-fs__empty {
    padding: 1.5rem 0;
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

.lil-fs__empty a {
    color: var(--wp--preset--color--primary, #721628);
    text-decoration: none;
}

.lil-fs__empty a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Account page sidebar navigation — [lil_account_nav]
   ========================================================================== */
.lil-account-nav {
    position: sticky;
    top: 2rem;
}

.lil-account-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lil-account-nav__item a {
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.lil-account-nav__item a:hover {
    background: var(--wp--preset--color--primary-accent, #F3E5DB);
    color: var(--wp--preset--color--primary, #721628);
}

.lil-account-nav__item.is-active > a {
    background: var(--wp--preset--color--primary, #721628);
    color: #fff;
    font-weight: 600;
}

.lil-account-nav__divider {
    height: 1px;
    background: var(--wp--preset--color--border-light, #ddc9bc);
    margin: 0.75rem 0.5rem;
}

.lil-account-nav__item--logout a {
    color: #888;
    font-size: 0.85rem;
}

.lil-account-nav__item--logout a:hover {
    background: none;
    color: #555;
    text-decoration: underline;
}

/* Mobile: collapse to a wrapping pill row above content */
@media (max-width: 599px) {
    .lil-account-nav {
        position: static;
    }

    .lil-account-nav__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
        margin-bottom: 1.25rem;
    }

    .lil-account-nav__divider {
        display: none;
    }

    .lil-account-nav__item a {
        padding: 0.3rem 0.85rem;
        border: 1px solid var(--wp--preset--color--border-light, #ddc9bc);
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .lil-account-nav__item.is-active > a {
        border-color: var(--wp--preset--color--primary, #721628);
    }
}

/* ==========================================================================
   Member directory — filters, grid, member cards
   ========================================================================== */
.lil-directory {
    container-type: inline-size;
}

.lil-directory__search-form {
    margin-bottom: 1.25rem;
}

.lil-directory__search-row {
    display: flex;
    gap: 0.5rem;
}

.lil-directory__search-input {
    flex: 1;
    padding: 0.55rem 1rem;
    border: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fff;
}

.lil-directory__search-input:focus {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 1px;
}

.lil-directory__search-btn {
    padding: 0.55rem 1.25rem;
    background: var(--wp--preset--color--primary);
    color: #fff;
    border: none;
    border-radius: 40px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.lil-directory__search-btn:hover {
    opacity: 0.85;
}

.lil-directory__type-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lil-directory__type-btn {
    padding: 0.4rem 1rem;
    border-radius: 40px;
    border: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    background: #fff;
    transition: background 0.15s ease, color 0.15s ease;
}

.lil-directory__type-btn:hover,
.lil-directory__type-btn.is-active {
    background: var(--wp--preset--color--primary);
    color: #fff;
    border-color: var(--wp--preset--color--primary);
}

.lil-directory__genre-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
}

.lil-directory__genre-pill {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 40px;
    border: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    background: #fff;
    transition: background 0.15s ease, color 0.15s ease;
}

.lil-directory__genre-pill:hover,
.lil-directory__genre-pill.is-active {
    background: var(--wp--preset--color--secondary, #F3E5DB);
    color: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
}

.lil-directory__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.lil-directory__card {
    list-style: none;
}

.lil-directory__card-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
    text-decoration: none;
    color: inherit;
    background: #fff;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lil-directory__card-link:hover {
    box-shadow: 0 8px 24px rgba(74, 15, 26, 0.12);
    transform: translateY(-3px);
}

.lil-directory__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--wp--preset--color--secondary, #F3E5DB);
}

.lil-directory__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wp--preset--color--foreground, #1a1a1a);
}

.lil-directory__type-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lil-directory__bio {
    font-size: 0.82rem;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    opacity: 0.75;
    margin: 0;
    line-height: 1.5;
}

.lil-directory__genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center;
}

.lil-directory__genre-tag {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.65rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--wp--preset--color--secondary, #F3E5DB);
    color: var(--wp--preset--color--primary);
}

.lil-directory__empty {
    text-align: center;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    opacity: 0.6;
    padding: 3rem 0;
}

/* ==========================================================================
   Member profile page
   ========================================================================== */
.lil-profile {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.lil-profile__header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.lil-profile__avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--wp--preset--color--secondary, #F3E5DB);
    flex-shrink: 0;
}

.lil-profile__identity {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.lil-profile__name {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.lil-profile__type-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    align-self: flex-start;
}

.lil-profile__genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.lil-profile__genre-tag {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--wp--preset--color--secondary, #F3E5DB);
    color: var(--wp--preset--color--primary);
}

.lil-profile__edit-link {
    font-size: 0.82rem;
    color: var(--wp--preset--color--primary);
    text-decoration: underline;
    align-self: flex-start;
}

.lil-profile__bio {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    border-left: 3px solid var(--wp--preset--color--secondary, #F3E5DB);
    padding-left: 1.25rem;
    margin-bottom: 2.5rem;
}

.lil-profile__section-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
}

.lil-profile__post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.lil-profile__post-item {
    list-style: none;
}

.lil-profile__post-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
    transition: box-shadow 0.2s ease;
}

.lil-profile__post-link span {
    padding: 0.5rem 0.75rem;
}

.lil-profile__post-link:hover {
    box-shadow: 0 4px 16px rgba(74, 15, 26, 0.12);
    color: var(--wp--preset--color--primary);
}

.lil-profile__post-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.lil-profile__unlisted {
    text-align: center;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    opacity: 0.6;
    padding: 3rem 0;
}

/* ==========================================================================
   Profile edit form
   ========================================================================== */
.lil-profile-notice--success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.lil-profile-form {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.lil-profile-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.lil-profile-form__label {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
    font-weight: 600;
}

.lil-profile-form__input,
.lil-profile-form__textarea {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--wp--preset--color--tertiary, #ddc9bc);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.lil-profile-form__input:focus,
.lil-profile-form__textarea:focus {
    outline: 2px solid var(--wp--preset--color--primary);
    outline-offset: 1px;
}

.lil-profile-form__radios,
.lil-profile-form__checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.lil-profile-form__radio-label,
.lil-profile-form__check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.lil-profile-form__hint {
    font-size: 0.8rem;
    color: var(--wp--preset--color--foreground, #1a1a1a);
    opacity: 0.6;
    margin: 0.2rem 0 0;
}

.lil-profile-form__submit {
    align-self: flex-start;
}

/* ==========================================================================
   Responsive adjustments — profile header stacks on small screens
   ========================================================================== */
@media (max-width: 600px) {
    .lil-profile__header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .lil-profile__type-badge,
    .lil-profile__edit-link {
        align-self: center;
    }

    .lil-profile__genre-tags {
        justify-content: center;
    }

    .lil-directory__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* ==========================================================================
   Account dashboard card — [lil_account_dashboard]
   ========================================================================== */

.lil-dash {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding: var(--wp--preset--spacing--medium, 2rem);
    background: #fff;
    border: 1px solid #ddc9bc;
    border-radius: 12px;
    max-width: 480px;
}

.lil-dash__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid var(--wp--preset--color--primary, #721628);
}

.lil-dash__welcome {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary, #721628);
    margin: 0;
}

.lil-dash__name {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.lil-dash__meta {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.25rem;
    font-size: 0.875rem;
    margin: 0;
}

.lil-dash__meta dt {
    font-weight: 600;
    color: #4a0f1a;
    white-space: nowrap;
}

.lil-dash__meta dd {
    margin: 0;
    color: #555;
    word-break: break-all;
}

/* ==========================================================================
   Private profile form extras — avatar upload + divider
   ========================================================================== */

.lil-avatar-upload__row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.4rem;
}

.lil-avatar-upload__current {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddc9bc;
}

.lil-avatar-upload__btn {
    position: relative;
    display: inline-block;
    padding: 0.45rem 1.1rem;
    background: var(--wp--preset--color--primary, #721628);
    color: #fff;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.lil-avatar-upload__btn:hover {
    background: #4a0f1a;
}

.lil-avatar-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lil-profile-form__divider {
    border: none;
    border-top: 1px solid #ddc9bc;
    margin: 1.5rem 0 1rem;
    width: 100%;
}

.lil-profile-form__section-title {
    font-weight: 600;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.lil-profile-notice {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.lil-profile-notice--success {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
}

.lil-profile-notice--error {
    background: #fce4ec;
    border: 1px solid #f48fb1;
    color: #b71c1c;
}

/* ==========================================================================
   FAQ accordion — [lil_faq]
   ========================================================================== */

.lil-faq {
    max-width: 760px;
    margin: 0 auto;
}

.lil-faq__category {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary, #721628);
    margin: 2.5rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #ddc9bc;
}

.lil-faq__list {
    margin: 0;
    padding: 0;
}

.lil-faq__item {
    border-bottom: 1px solid #ddc9bc;
    padding: 0;
}

.lil-faq__item:first-child {
    border-top: 1px solid #ddc9bc;
}

.lil-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0.25rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.lil-faq__question::-webkit-details-marker {
    display: none;
}

.lil-faq__question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--wp--preset--color--primary, #721628);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.lil-faq__item[open] > .lil-faq__question::after {
    transform: rotate(45deg);
}

.lil-faq__answer {
    padding: 0 0.25rem 1.25rem;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.7;
}

.lil-faq__answer p:first-child { margin-top: 0; }
.lil-faq__answer p:last-child  { margin-bottom: 0; }

/* ==========================================================================
   Poll widget — [lil_poll] / [lil_story_poll]
   ========================================================================== */

.lil-poll {
    background: #fff;
    border: 1px solid #ddc9bc;
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 560px;
}

.lil-poll__question {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

.lil-poll__form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.lil-poll__option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #ddc9bc;
    transition: background 0.1s;
}

.lil-poll__option:hover {
    background: #faf4f0;
}

.lil-poll__option input[type="radio"] {
    accent-color: var(--wp--preset--color--primary, #721628);
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.lil-poll__submit {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.lil-poll__results {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lil-poll__result-row {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.2rem 0.75rem;
    font-size: 0.9rem;
}

.lil-poll__result-label {
    grid-column: 1;
    font-weight: 500;
}

.lil-poll__result-row.is-voted .lil-poll__result-label {
    color: var(--wp--preset--color--primary, #721628);
    font-weight: 700;
}

.lil-poll__voted-mark {
    font-size: 0.8rem;
}

.lil-poll__bar-wrap {
    grid-column: 1;
    height: 8px;
    background: #f3e5db;
    border-radius: 4px;
    overflow: hidden;
}

.lil-poll__bar {
    height: 100%;
    background: var(--wp--preset--color--primary, #721628);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.lil-poll__result-row.is-voted .lil-poll__bar {
    background: #4a0f1a;
}

.lil-poll__pct {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.lil-poll__total {
    font-size: 0.8rem;
    color: #888;
    margin: 0.25rem 0 0;
}

.lil-poll--locked p {
    color: #888;
    font-style: italic;
}

/* ==========================================================================
   Preset avatar picker — [lil_private_profile]
   ========================================================================== */

.lil-avatar-presets-group {
    margin-top: 0.25rem;
}

.lil-avatar-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.lil-avatar-presets__item {
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid #ddc9bc;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: none;
    transition: border-color 0.15s, transform 0.1s;
}

.lil-avatar-presets__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lil-avatar-presets__item:hover {
    border-color: var(--wp--preset--color--primary, #721628);
    transform: scale(1.07);
}

.lil-avatar-presets__item.is-selected {
    border-color: var(--wp--preset--color--primary, #721628);
    box-shadow: 0 0 0 3px rgba(114, 22, 40, 0.25);
}

/* ==========================================================================
   Favorite button — [lil_favorite_btn]
   ========================================================================== */

.lil-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border: 1.5px solid #ddc9bc;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lil-favorite-btn:hover {
    border-color: var(--wp--preset--color--primary, #721628);
    color: var(--wp--preset--color--primary, #721628);
}

.lil-favorite-btn.is-saved {
    border-color: var(--wp--preset--color--primary, #721628);
    background: var(--wp--preset--color--primary, #721628);
    color: #fff;
}

.lil-favorite-btn__icon {
    font-size: 1rem;
    line-height: 1;
}

/* ==========================================================================
   Favorites grid — [lil_my_favorites]
   ========================================================================== */

.lil-favorites__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.lil-favorites__item {
    position: relative;
}

.lil-favorites__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #ddc9bc;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.lil-favorites__link:hover {
    box-shadow: 0 4px 12px rgba(74, 15, 26, 0.12);
}

.lil-favorites__thumb {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    background: #f3e5db;
}

.lil-favorites__type {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary, #721628);
    padding: 0.5rem 0.6rem 0.1rem;
}

.lil-favorites__title {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 0 0.6rem 0.75rem;
}

.lil-favorites__remove {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(74,15,26,0.75);
    color: #fff;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
}

.lil-favorites__item:hover .lil-favorites__remove {
    opacity: 1;
}

.lil-favorites__empty {
    color: #888;
    font-style: italic;
}

/* ==========================================================================
   Nextend Social Login — brand-styled buttons on /login/ and /membership-checkout/
   ========================================================================== */
.nsl-container {
    margin-top: 1.25rem;
}

.nsl-container-block .nsl-container-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.nsl-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100% !important;
    max-width: 320px;
    padding: 0.65rem 1.25rem !important;
    border-radius: 6px !important;
    font-family: var(--wp--preset--font-family--primary), sans-serif !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    border: 1.5px solid #ddc9bc !important;
    background: #fff !important;
    color: #333 !important;
    transition: background 0.15s ease, border-color 0.15s ease !important;
    text-decoration: none !important;
}

.nsl-button:hover,
.nsl-button:focus {
    background: var(--wp--preset--color--secondary, #F3E5DB) !important;
    border-color: var(--wp--preset--color--primary, #721628) !important;
    color: var(--wp--preset--color--primary, #721628) !important;
}

.nsl-button svg,
.nsl-button img {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

/* Checkout page — social section below user fields */
.lil-checkout-social {
    margin: 1.5rem 0;
    text-align: center;
}

.lil-checkout-social__label {
    font-size: 0.8rem;
    color: #999;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

/* ==========================================================================
   Footer — black background, centered single-column layout
   ========================================================================== */

/* Link hover: Slapped (rose) on dark background */
.site-footer a:hover {
    color: var(--wp--preset--color--primary-alt) !important;
    text-decoration: none;
}

/* Separator — very subtle line on black */
.site-footer .lil-footer-sep {
    border-color: rgba(197, 176, 168, 0.15) !important; /* warm-grey at 15% */
    color: rgba(197, 176, 168, 0.15) !important;
}

/* Phase 0 — front-page dual-state */
body:not(.logged-in) .lil-member-view { display: none !important; }
body.logged-in .lil-guest-view { display: none !important; }

/* Admin preview: force the guest (non-member) front page while still logged
   in — visit any page with ?lil_preview=guest (see functions.php). */
body.logged-in.lil-preview-guest .lil-guest-view { display: block !important; }
body.logged-in.lil-preview-guest .lil-member-view { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   SILK & INK REDESIGN — 2026-05-19
   All new classes follow this section. Old classes above are
   preserved for backward compatibility during the transition.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Custom properties (supplement theme.json vars) ─────────────── */
:root {
    --si-body-text: #2a1015;
    --si-muted: #7a5060;
    --si-soft-satin: #faf4f0;
    --si-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --si-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Section eyebrow ─────────────────────────────────────────────── */
.si-eyebrow {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.7rem;
    margin-bottom: 0.75rem;
    text-align: left !important;
}
.si-eyebrow::before {
    content: '';
    display: block !important;
    width: 1.8rem !important;
    height: 1px;
    background: var(--wp--preset--color--primary);
    flex-shrink: 0;
    /*override .lil-eyebrow.has-text-align-center::before which sets margin:auto*/
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}
.si-eyebrow span,
.si-eyebrow {
    font-size: 0.62rem;
    text-align: center !important;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    /*color: var(--wp--preset--color--primary);*/
    font-family: var(--wp--preset--font-family--primary);
    font-weight: 400;
}
.si-eyebrow--light {
    color: var(--wp--preset--color--secondary);
}
.si-eyebrow--light::before {
    background: var(--wp--preset--color--secondary);
    opacity: 0.7;
}

/* ── Silk & Ink cards ────────────────────────────────────────────── */
.si-card {
    border-top: 2px solid var(--wp--preset--color--primary);
    background: var(--si-soft-satin);
    border-radius: 0;
    transition: transform 0.4s var(--si-spring), box-shadow 0.35s var(--si-ease);
    cursor: pointer;
}
.si-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 32px rgba(114, 22, 40, 0.13);
}
.si-card__category {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary-alt);
    margin-bottom: 0.6rem;
    font-family: var(--wp--preset--font-family--primary);
}
.si-card__title {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 1.1rem;
    color: var(--wp--preset--color--primary);
    line-height: 1.3;
    margin-bottom: 0.6rem;
}
.si-card__desc {
    font-size: 0.82rem;
    color: var(--si-muted);
    line-height: 1.62;
    font-weight: 300;
}
.si-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s var(--si-ease);
    font-family: var(--wp--preset--font-family--primary);
}
.si-card__link::after {
    content: '→';
    transition: transform 0.35s var(--si-spring);
}
.si-card:hover .si-card__link::after { transform: translateX(3px); }
.si-card:hover .si-card__link { border-color: var(--wp--preset--color--primary); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.si-btn {
    display: inline-block;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: background 0.2s var(--si-ease), color 0.2s var(--si-ease);
}
.si-btn--primary-light { background: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); }
.si-btn--primary-dark  { background: var(--wp--preset--color--base);    color: var(--wp--preset--color--primary); }
.si-btn--outline-light { background: transparent; color: var(--wp--preset--color--primary); border: 1px solid var(--wp--preset--color--primary); }
.si-btn--outline-dark  { background: transparent; color: rgba(243,229,219,0.85); border: 1px solid rgba(243,229,219,0.35); }

/* ── Scroll reveal ───────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--si-ease), transform 0.65s var(--si-ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }
.reveal--delay-3 { transition-delay: 0.36s; }

/* ── Hero B — full-bleed overlay ────────────────────────────────── */
.hero-b .wp-block-cover__background,
.hero-b > .has-background-dim {
    background: linear-gradient(
        180deg,
        rgba(114, 22, 40, 0.08) 0%,
        rgba(114, 22, 40, 0.25) 35%,
        rgba(40,  8, 18, 0.72) 75%,
        rgba(20,  4, 10, 0.88) 100%
    ) !important;
    opacity: 1 !important;
}

.hero-b { min-height: 300px; }
.hero-b--lg { min-height: 420px; }
.hero-b--md { min-height: 340px; }
.hero-b--sm { min-height: 260px; }

.hero-b .wp-block-cover__inner-container { align-self: flex-end; padding-bottom: 3.5rem; }
.hero-b .wp-block-heading { color: var(--wp--preset--color--base) !important; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-b p.has-base-color,
.hero-b .hero-sub { color: rgba(243, 229, 219, 0.75) !important; }

.hero-b .si-eyebrow,
.hero-b .lil-eyebrow {
    color: var(--wp--preset--color--secondary) !important;
}
.hero-b .si-eyebrow::before,
.hero-b .lil-eyebrow::before {
    background: var(--wp--preset--color--secondary) !important;
    opacity: 0.7;
}

.hero-b .wp-block-button__link {
    border-radius: 0 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.7rem !important;
}

/* Hero-video buttons — plain HTML anchors to avoid WP button block style conflicts */
.hero-a-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: var(--wp--preset--spacing--large);
}
.hero-a-btn {
    display: inline-block;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.8rem 1.8rem;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s var(--si-ease), color 0.2s var(--si-ease);
}
.hero-a-btn--primary {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    border: 1px solid var(--wp--preset--color--primary);
}
.hero-a-btn--primary:hover {
    background: var(--wp--preset--color--primary-alt-accent);
    border-color: var(--wp--preset--color--primary-alt-accent);
    color: var(--wp--preset--color--base);
    text-decoration: none;
}
.hero-a-btn--outline {
    background: transparent;
    color: var(--wp--preset--color--primary);
    border: 1px solid var(--wp--preset--color--primary);
}
.hero-a-btn--outline:hover {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    text-decoration: none;
}



/* ── Masthead header ─────────────────────────────────────────────── */
.site-header {
    background: var(--wp--preset--color--base);
    border-top: 4px solid var(--wp--preset--color--primary) !important;
}

.header-announce {
    background: var(--si-soft-satin);
    border-bottom: 1px solid var(--wp--preset--color--border-light);
    text-align: center;
    padding: 0.42rem 2rem;
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--si-muted);
    font-family: var(--wp--preset--font-family--primary);
}
.header-announce a { color: var(--wp--preset--color--primary); text-decoration: none; font-weight: 600; }

.header-masthead {
    text-align: center;
    padding: 1.8rem 2.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.masthead-rule {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
}
.masthead-rule:last-of-type { margin-bottom: 0; margin-top: 1rem; }
.masthead-rule::before,
.masthead-rule::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--wp--preset--color--border-light), var(--wp--preset--color--primary), var(--wp--preset--color--border-light), transparent);
}
.masthead-rule span {
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--wp--preset--color--primary);
    opacity: 0.6;
    white-space: nowrap;
    font-family: var(--wp--preset--font-family--primary);
}
.masthead-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    margin: 0.5rem 0 0.2rem;
}
.masthead-logo-img { height: 44px; width: auto; display: block; margin: 0; }
.masthead-name {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 3rem;
    color: var(--wp--preset--color--primary);
    letter-spacing: 0.08em;
    line-height: 1;
    margin: 0 !important;
    text-decoration: none;
    display: block;
}
a.masthead-name:hover { text-decoration: none; color: var(--wp--preset--color--primary); }
.masthead-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--si-muted);
    font-family: var(--wp--preset--font-family--primary);
    margin-bottom: 0.2rem;
}

.header-utility {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 0.5rem 2.5rem;
    border-bottom: 1px solid var(--wp--preset--color--border-light);
}
.util-link {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--si-muted);
    text-decoration: none;
    font-family: var(--wp--preset--font-family--primary);
}
.util-btn {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.42rem 1.1rem;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    border: none;
    cursor: pointer;
    font-family: var(--wp--preset--font-family--primary);
    text-decoration: none;
    border-radius: 0;
    display: inline-block;
}
.util-btn:hover { background: var(--wp--preset--color--primary-alt); color: var(--wp--preset--color--base); text-decoration: none; }
.nav-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.site-header .wp-block-navigation {
    border-bottom: none;
    justify-content: center;
    padding: 0 1.5rem;
    gap: 0;
    width: 100%;
}
.site-header .wp-block-navigation .wp-block-navigation-item__content {
    font-size: 0.67rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--si-muted) !important;
    padding: 0.8rem 1.1rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s var(--si-ease);
}
.site-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary) !important; }
.site-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
    color: var(--wp--preset--color--primary) !important;
    border-bottom-color: var(--wp--preset--color--primary);
    font-weight: 600;
}

.header-utility .lil-language-switcher a,
.header-utility .lil-i18n-switcher a {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--si-muted);
    text-decoration: none;
    font-family: var(--wp--preset--font-family--primary);
}
.header-utility .lil-language-switcher a.active,
.header-utility .lil-i18n-switcher a.active { color: var(--wp--preset--color--primary); font-weight: 600; }

@media (max-width: 1024px) {
    .masthead-name { font-size: 2rem; }
    .header-masthead { padding: 1.2rem 1.5rem 0; }
    .header-utility { padding: 0.5rem 1.5rem; }
}

/* ── Footer (shared styles) ──────────────────────────────────────── */
.site-footer {
    background: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
}
.footer-brand-name {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 1.4rem;
    color: var(--wp--preset--color--base);
    margin-bottom: 0.4rem;
}
.footer-brand-desc {
    font-size: 0.78rem;
    opacity: 0.6;
    line-height: 1.6;
    font-weight: 300;
    max-width: 220px;
    color: var(--wp--preset--color--base);
}
.footer-col-title {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--wp--preset--color--secondary);
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--wp--preset--font-family--primary);
}
.site-footer .wp-block-navigation a,
.site-footer a {
    font-size: 0.78rem;
    opacity: 0.65;
    color: var(--wp--preset--color--base) !important;
    text-decoration: none;
    transition: opacity 0.2s;
}
.site-footer .wp-block-navigation a:hover,
.site-footer a:hover { opacity: 1; }

/* Footer nav — mobile hamburger overlay.
   The core Navigation block defaults its mobile overlay to a white background
   with black text (`.wp-block-navigation:not(.has-background) ...is-menu-open`
   in wp-includes/blocks/navigation/style.min.css) unless the block itself has
   an explicit background/text colour. Our footer links force a cream/white
   colour (above) with !important, which wins over that default text colour —
   so on mobile the overlay opened white text on a white overlay background.
   Give the open overlay the same velvet footer background so the forced
   cream text stays legible, matching the header's hamburger menu contrast. */
.site-footer .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--primary) !important;
	color: var(--wp--preset--color--base) !important;
}
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.65rem;
    opacity: 0.45;
    letter-spacing: 0.06em;
    color: var(--wp--preset--color--base);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.2rem;
    margin-top: 2rem;
}
.footer-social { display: flex; gap: 1rem; align-items: center; margin-top: 1rem; }
.social-icon {
    color: var(--wp--preset--color--base);
    opacity: 0.65;
    transition: opacity 0.2s;
    display: inline-flex;
}
.social-icon:hover { opacity: 1; }

/* Footer A — two-column (public/non-member pages) */
.footer-public .footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 3rem 3rem 0;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-public .footer-bottom-row { padding: 0 3rem 2rem; max-width: 1100px; margin: 0 auto; }

/* Footer B — four-column (member pages) */
.footer-member .footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding: 3rem 3rem 0;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-member .footer-bottom-row { padding: 0 3rem 2rem; max-width: 1100px; margin: 0 auto; }

@media (max-width: 768px) {
    .footer-public .footer-inner { grid-template-columns: 1fr; padding: 2rem 1.5rem 0; }
    .footer-member .footer-inner { grid-template-columns: 1fr 1fr; padding: 2rem 1.5rem 0; }
    .footer-public .footer-bottom-row,
    .footer-member .footer-bottom-row { padding: 0 1.5rem 2rem; }
}

/* ── Post-hero spacing — gap between Hero B and first content section ── */
.wp-block-cover.hero-b + .wp-block-group,
.wp-block-cover.hero-b + .wp-block-query,
.wp-block-cover.hero-b + main,
.wp-block-cover.hero-b + .wp-block-post-content {
    padding-top: var(--wp--preset--spacing--xx-large) !important;
}

/* ── Language switcher in header utility row ────────────────────────── */
.header-utility .lil-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-right: 0.5rem;
}
.header-utility .lil-lang-btn {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--si-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.3rem;
    font-family: var(--wp--preset--font-family--primary);
    line-height: 1;
}
.header-utility .lil-lang-btn.lil-lang-btn--active {
    color: var(--wp--preset--color--primary);
    font-weight: 600;
}
.header-utility .lil-lang-btn:hover { color: var(--wp--preset--color--primary); }


/* ==========================================================================
   GSAP ANIMATIONS — added 2026-05-30
   All rules are either:
     a) utility classes needed by animations.js  (.lil-word-*)
     b) scoped to body.home:not(.logged-in)  — guest homepage only
========================================================================== */

/* ── Word-split utility ─────────────────────────────────────────────────── */
.lil-word-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
    line-height: 1.15;
}
.lil-word {
    display: inline-block;
}

/* ── Guest homepage: scroll snap removed — sections flow naturally ──────── */
/*
 * scroll-snap-type was removed in favour of free scrolling.
 * The .js-snap-section class is kept on elements so GSAP entrance
 * animations (animations.js) continue to target them on scroll.
 */

/* ═══════════════════════════════════════════════════════════════════════════
   HANDWRITTEN QUOTES SECTION (.lil-quotes)
   ═══════════════════════════════════════════════════════════════════════════ */

.lil-quotes {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 65%, rgba(114, 22, 40, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(61, 10, 18, 0.4) 0%, transparent 50%),
        #0e0305;
    text-align: center;
}

.lil-quotes__glyph {
    position: absolute;
    top: 1.8rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--wp--preset--font-family--script);
    font-size: clamp(9rem, 22vw, 18rem);
    line-height: 1;
    color: rgba(224, 163, 130, 0.07);
    pointer-events: none;
    user-select: none;
}

.lil-quotes__glow {
    position: absolute;
    inset: -10% 0 auto;
    height: 60%;
    pointer-events: none;
    background: radial-gradient(60% 70% at 50% 40%, rgba(122, 18, 32, 0.5), transparent 70%);
    animation: lil-quotes-breathe 9s ease-in-out infinite;
}

@keyframes lil-quotes-breathe {
    0%, 100% { opacity: 0.5; transform: translateY(0) scale(1); }
    50%       { opacity: 0.85; transform: translateY(-12px) scale(1.06); }
}

.lil-quotes__eyebrow {
    position: relative;
    font-family: var(--wp--preset--font-family--primary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(224, 163, 130, 0.55);
    /* initial state — animated in by JS */
    opacity: 0;
}

.lil-quotes__stage {
    position: relative;
    height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lil-quote-item {
    display: none;
    position: absolute;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lil-quote-item--active {
    display: flex;
}

.lil-quote__text {
    position: relative;
    display: inline-block;
    font-family: var(--wp--preset--font-family--script);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--wp--preset--color--base);
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

/* Word spans injected by JS — the "self-writing" reveal */
.lil-quote__text .lil-quote__word {
    display: inline-block;
    transform-origin: left bottom;
}

.lil-quote-item--writing .lil-quote__word {
    animation: lil-quote-write 0.5s cubic-bezier(.22,.61,.36,1) both;
    animation-delay: calc(var(--i) * 0.14s);
}

@keyframes lil-quote-write {
    from { clip-path: inset(0 100% -16% 0); filter: blur(7px); opacity: 0; transform: translateY(.22em) rotate(-1.6deg); }
    55%  { filter: blur(.6px); }
    to   { clip-path: inset(0 -6% -16% 0); filter: blur(0); opacity: 1; transform: none; }
}

.lil-quote__nib {
    position: absolute;
    left: 0;
    bottom: 0.18em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wp--preset--color--secondary);
    box-shadow: 0 0 16px 4px rgba(224, 163, 130, 0.9);
    opacity: 0;
    pointer-events: none;
}

.lil-quote-item--writing .lil-quote__nib {
    animation: lil-quote-nib var(--lil-quote-write-duration, 1.5s) cubic-bezier(.33,.05,.5,.95) both,
               lil-quote-nib-bleed 0.9s ease-in-out infinite;
}

@keyframes lil-quote-nib {
    0%   { opacity: 0; left: 0; }
    7%   { opacity: 1; }
    88%  { opacity: 1; left: 100%; }
    100% { opacity: 0; left: 100%; }
}

@keyframes lil-quote-nib-bleed {
    0%, 100% { box-shadow: 0 0 14px 3px rgba(224, 163, 130, 0.85); }
    50%       { box-shadow: 0 0 22px 7px rgba(224, 163, 130, 0.95); }
}

.lil-quote__cursor {
    display: inline-block;
    width: 2px;
    height: 0.8em;
    background: var(--wp--preset--color--secondary);
    margin-left: 4px;
    vertical-align: text-bottom;
    opacity: 0;
}

.lil-quote__cursor.lil-quote__cursor--blinking {
    animation: lil-quote-blink 0.9s step-end infinite;
}

@keyframes lil-quote-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.lil-quote__rule {
    width: 36px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--wp--preset--color--secondary),
        transparent
    );
    margin: 0 auto 18px;
    /* initial state — animated in by JS */
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
}

.lil-quote__attr {
    font-family: var(--wp--preset--font-family--primary);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(224, 163, 130, 0.55);
    /* initial state — animated in by JS */
    opacity: 0;
    transform: translateY(6px);
}

.lil-quotes__ticks {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.4rem;
}

.lil-quotes__tick {
    width: 34px;
    height: 2px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: rgba(224, 163, 130, 0.22);
    overflow: hidden;
    cursor: pointer;
}

.lil-quotes__tick i {
    display: block;
    height: 100%;
    width: 0;
    background: var(--wp--preset--color--secondary);
    transition: width 0.4s ease;
}

.lil-quotes__tick--active i {
    width: 100%;
}

@media (max-width: 600px) {
    .lil-quotes__stage {
        height: 260px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BENEFIT CARDS — Editorial Split (.lil-benefits-split)
   ═══════════════════════════════════════════════════════════════════════════ */

.lil-benefits-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.lil-benefit-feature {
    background: var(--wp--preset--color--primary);
    padding: 2.2rem 1.8rem;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    /* initial state — animated in by JS */
    opacity: 0;
    transform: translateY(40px);
}

.lil-benefit-feature::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: url('/wp-content/themes/ollie-child/assets/elements/lace-merge.png') center / contain no-repeat;
    opacity: 0.07;
    pointer-events: none;
}

.lil-benefit-feature__title {
    font-family: var(--wp--preset--font-family--secondary) !important;
    font-size: 1.3rem !important;
    color: var(--wp--preset--color--base) !important;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.lil-benefit-feature__body {
    font-size: 0.95rem !important;
    font-weight: 300;
    color: rgba(243, 229, 219, 0.78) !important;
    line-height: 1.65;
    margin: 0;
}

.lil-benefit-sm-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lil-benefit-sm {
    background: #ffffff;
    border-left: 3px solid var(--wp--preset--color--primary);
    padding: 1.3rem 1.4rem;
    flex: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* initial state — animated in by JS */
    opacity: 0;
    transform: translateY(30px);
}

.lil-benefit-feature,
.lil-benefit-sm {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Resting state after the GSAP scroll-reveal completes (see animations.js) */
.lil-benefit-feature.lil-revealed,
.lil-benefit-sm.lil-revealed {
    opacity: 1;
    transform: none;
}

.lil-benefit-feature:hover,
.lil-benefit-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(74, 15, 26, 0.18);
}

.lil-benefit-feature:hover::before {
    transform: scale(1.06) rotate(4deg);
}

.lil-benefit-feature::before {
    transition: transform 0.4s ease;
}

.lil-benefit-sm:hover .lil-benefit-sm__icon {
    transform: translateY(-2px);
}

.lil-benefit-sm__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.6rem;
    transition: transform 0.3s ease;
}

.lil-benefit-sm__title {
    font-family: var(--wp--preset--font-family--secondary) !important;
    font-size: 1.05rem !important;
    font-weight: 600;
    color: var(--wp--preset--color--primary) !important;
    margin-bottom: 0.4rem;
}

.lil-benefit-sm__body {
    font-size: 0.92rem !important;
    font-weight: 300;
    color: var(--si-muted) !important;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .lil-benefits-split {
        grid-template-columns: 1fr;
    }
    .lil-benefit-feature {
        min-height: 200px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   GENRE LIST — typographic list with velvet-circle markers (.lil-genre-list)
   ═══════════════════════════════════════════════════════════════════════════ */

.lil-genre-list {
    display: flex;
    flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
}

.lil-genre-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(114, 22, 40, 0.1);
    transition: background 0.35s ease, padding-left 0.35s cubic-bezier(.22,.61,.36,1);
    /* initial state — animated in by JS */
    opacity: 0;
    transform: translateY(16px);
}

.lil-genre-row:last-child {
    border-bottom: none;
}

.lil-genre-row.lil-revealed {
    opacity: 1;
    transform: none;
}

.lil-genre-row:hover {
    background: rgba(114, 22, 40, 0.045);
    padding-left: 0.7rem;
}

.lil-genre-row:hover .lil-genre-row__icon {
    transform: scale(1.18) rotate(8deg);
}

.lil-genre-row:hover .lil-genre-row__name {
    color: var(--wp--preset--color--primary-alt, #D25E5E);
}

.lil-genre-row__icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(.34,1.56,.64,1);
}

.lil-genre-row__content {
    display: flex;
    align-items: baseline;
    column-gap: 0.6rem;
    flex-wrap: wrap;
}

.lil-genre-row__name {
    flex: 0 0 100%;
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    transition: color 0.3s ease;
}

.lil-genre-row__dash {
    display: none;
}

.lil-genre-row__desc {
    flex: 1 1 100%;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    color: var(--si-muted);
    line-height: 1.55;
}

.lil-genre-row__desc::before {
    content: "— ";
    color: rgba(114, 22, 40, 0.3);
    font-style: normal;
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMMUNITY BLOCK (.lil-community-block) — inside welcome-cta dark section
   ═══════════════════════════════════════════════════════════════════════════ */

.lil-community-block {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 3.5rem 2rem 3rem;
}

.lil-community-block__eyebrow {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(224, 163, 130, 0.75);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.lil-community-block__eyebrow::before,
.lil-community-block__eyebrow::after {
    content: '';
    display: block;
    width: 1.5rem;
    height: 1px;
    background: rgba(224, 163, 130, 0.3);
}

.lil-community-block__heading {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--wp--preset--color--base);
    line-height: 1.15;
    margin-bottom: 0.75rem;
    /* initial state — animated in by JS */
    opacity: 0;
    transform: translateY(24px);
}

.lil-community-block__sub {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(243, 229, 219, 0.68);
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    /* initial state — animated in by JS */
    opacity: 0;
    transform: translateY(18px);
}

.lil-community-block__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.lil-community-pillar {
    border-top: 1px solid rgba(224, 163, 130, 0.2);
    padding-top: 1rem;
    /* initial state — animated in by JS */
    opacity: 0;
    transform: translateY(20px);
}

.lil-community-pillar.lil-revealed {
    opacity: 1;
    transform: none;
}

.lil-community-pillar__icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.lil-community-pillar__title {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 1rem;
    color: var(--wp--preset--color--secondary);
    margin-bottom: 0.4rem;
}

.lil-community-pillar__body {
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(243, 229, 219, 0.65);
    line-height: 1.6;
    margin: 0;
}

.lil-community-block__safety {
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(224, 163, 130, 0.75);
    margin: 0;
}

.lil-community-divider {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

.lil-community-divider::before,
.lil-community-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(224, 163, 130, 0.15);
}

.lil-community-divider__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(224, 163, 130, 0.3);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .lil-community-block__pillars {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .lil-community-block {
        padding: 2.5rem 1.5rem 2rem;
    }
}

/* ── prefers-reduced-motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lil-word,
    .hero-a__image,
    .hero-a__pullquote,
    .hero-a-btn,
    .stat-item,
    .lil-benefit-feature,
    .lil-benefit-sm {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
        animation: none !important;
    }

    .lil-quote-item--active,
    .lil-quote__word,
    .lil-quote__cursor,
    .lil-quote__rule,
    .lil-quote__attr,
    .lil-quotes__eyebrow {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        filter: none !important;
        animation: none !important;
    }

    .lil-quote__nib,
    .lil-quotes__glow {
        display: none !important;
    }

    .lil-quotes__tick i {
        transition: none !important;
    }

    .lil-genre-row {
        opacity: 1 !important;
        transform: none !important;
    }

    .lil-community-block__heading,
    .lil-community-block__sub,
    .lil-community-pillar {
        opacity: 1 !important;
        transform: none !important;
    }

    .lil-benefit-feature,
    .lil-benefit-sm,
    .lil-benefit-feature::before,
    .lil-benefit-sm__icon,
    .lil-genre-row,
    .lil-genre-row__icon,
    .lil-genre-row__name {
        transition: none !important;
    }

    .lil-benefit-feature:hover,
    .lil-benefit-sm:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    html {
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
}

/* ── Author link in post hero (wp:post-author-name) ─────────────────────────── */
/* WordPress global styles set all links via a:where(:not(.wp-element-button)),
   so we need !important to reliably override it here. */
.lil-author-link {
    color: var(--wp--preset--color--secondary) !important; /* Babyoil */
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-underline-offset: 2px;
}

.lil-author-link:hover {
    color: var(--wp--preset--color--base) !important; /* Satin on hover */
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GUEST HOMEPAGE — hide site header, full-bleed hero takes its place
   ═══════════════════════════════════════════════════════════════════════════ */
body.home:not(.logged-in) header.site-header {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VIDEO HERO (.hero-video)
   ═══════════════════════════════════════════════════════════════════════════ */

.hero-video {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hero-video__inner {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100dvh - 80px);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-video__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('/wp-content/uploads/portrait/lost-in-lust001.jpg') center / cover no-repeat;
}

.hero-video__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-video__overlay {
    position: absolute;
    inset: 0;
    /* Two-layer overlay:
       1. Velvet-red colour cast to pull burgundy video towards brand #721628
       2. Dark gradient top-to-bottom for text legibility */
    background:
        linear-gradient(
            180deg,
            rgba(114, 22, 40, 0.25) 0%,
            rgba(114, 22, 40, 0.30) 40%,
            rgba(50,  8, 18, 0.68) 80%,
            rgba(20,  2,  8, 0.82) 100%
        );
    mix-blend-mode: multiply;
}

/* Second overlay layer for brightness control — sits on top */
.hero-video__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.08) 0%,
        rgba(0, 0, 0, 0.18) 60%,
        rgba(0, 0, 0, 0.42) 100%
    );
    mix-blend-mode: normal;
}

.hero-video__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    width: 100%;
}

.hero-video__eyebrow {
    justify-content: center !important;
    color: var(--wp--preset--color--secondary) !important;
    margin-bottom: 1rem !important;
}

.hero-video__heading {
    font-family: var(--wp--preset--font-family--secondary) !important;
    font-size: clamp(2.4rem, 5vw, 4.2rem) !important;
    font-weight: 600;
    color: var(--wp--preset--color--base) !important;
    line-height: 1.08;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
    margin-bottom: 1.25rem;
}

.hero-video__sub {
    font-size: 1.05rem;
    line-height: 1.72;
    font-weight: 300;
    color: rgba(243, 229, 219, 0.72);
    max-width: 560px;
    margin: 0 auto;
}

.hero-video__buttons {
    justify-content: center;
    margin-top: var(--wp--preset--spacing--large);
}

/* Ghost button — for dark/video backgrounds */
.hero-a-btn--ghost {
    background: transparent;
    color: var(--wp--preset--color--base);
    border: 1px solid rgba(243, 229, 219, 0.45);
}
.hero-a-btn--ghost:hover {
    background: rgba(243, 229, 219, 0.12);
    border-color: rgba(243, 229, 219, 0.7);
    color: var(--wp--preset--color--base);
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero-video__video {
        display: none;
    }
    .hero-video__inner {
        min-height: calc(100dvh - 60px);
        padding: 3rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-video__video {
        display: none;
    }
    .hero-video__heading,
    .hero-video__eyebrow,
    .hero-video__sub,
    .hero-video__buttons {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ── Hero topbar: logo + lang switcher + login link
   Positioned absolute within .hero-video (the section, position:relative).
   z-index: 10 ensures it renders above .hero-video__overlay (z-index via stacking context). ── */
.hero-video__topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 2.5rem;
}

.hero-video__topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* wpautop injects <p> tags inside shortcode output — neutralise them in the topbar */
.hero-video__topbar > p,
.hero-video__topbar-right > p {
    display: contents !important;
    margin: 0;
}

/* Language buttons on dark video background — override lil-i18n plugin defaults */
.hero-video__topbar .lil-lang-btn {
    color: rgba(243, 229, 219, 0.6);
    border-color: rgba(243, 229, 219, 0.3);
    font-size: 0.65rem;
    padding: 3px 7px;
}

.hero-video__topbar .lil-lang-btn--active,
.hero-video__topbar .lil-lang-btn:hover {
    color: rgba(243, 229, 219, 0.9);
    border-color: rgba(243, 229, 219, 0.6);
    background: rgba(243, 229, 219, 0.1);
    opacity: 1;
}

.hero-video__logo-link {
    display: flex;
    align-items: center;
    align-self: stretch;
    margin: -1.6rem 0;
}

.hero-video__logo-img {
    height: 100%;
    width: auto;
    max-width: none;
    aspect-ratio: 53 / 38;
    display: block;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.hero-video__logo-link:hover .hero-video__logo-img {
    opacity: 1;
}

.hero-video__login-link {
    font-family: var(--wp--preset--font-family--primary);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(243, 229, 219, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-video__login-link:hover {
    color: var(--wp--preset--color--base);
    text-decoration: none;
}

@media (max-width: 600px) {
    .hero-video__topbar {
        padding: 1.2rem 1.5rem;
    }
    .hero-video__logo-link {
        margin: -1.2rem 0;
    }
}

/* ── Footer public — bigger logo, more brand presence ──────────────────── */
.footer-public .footer-inner {
    align-items: start;
}

.footer-public .wp-block-image img {
    display: block;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   GUEST HOMEPAGE — section unification
   Ties the cinematic video hero to the rest of the landing page sections.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Cream sections: subtle warm radial vignette for depth ──────────────── */
.lil-guest-view .js-snap-section.has-base-background-color {
    background:
        radial-gradient(ellipse at 10% 60%, rgba(114, 22, 40, 0.035) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 40%, rgba(224, 163, 130, 0.05) 0%, transparent 55%),
        var(--wp--preset--color--base) !important;
}

/* ── Section headings: scale up across the guest view ───────────────────── */
.lil-guest-view .js-snap-section:not(.hero-video) h2.wp-block-heading {
    font-size: clamp(2rem, 3.5vw, 2.8rem) !important;
    letter-spacing: -0.01em;
}

/* ── Section eyebrows: slightly more breathing room ─────────────────────── */
.lil-guest-view .js-snap-section:not(.hero-video) .lil-eyebrow {
    margin-bottom: 0.75rem !important;
}

/* ── Stage 1 mode ─────────────────────────────────────────────────────────── */

/* Hide elements that only belong in Stage 2 */
.lil-mode-stage1 .lil-stage2-only {
	display: none !important;
}

/* Stage1: benefits column is hidden, so center the waitlist form in the row */
.lil-mode-stage1 .lil-welcome-cta-row {
	justify-content: center;
}

/* Hide elements that only belong in Stage 1 */
.lil-mode-stage2 .lil-stage1-only {
	display: none !important;
}

/* Stage2: header nav links (Tarinat, Sarjat, E-kirjat, etc.) are for members
   only — same guest experience as stage1, just scoped to logged-out visitors
   instead of the whole stage. Members and admins still see the nav normally. */
.lil-mode-stage2:not(.logged-in) .site-header .wp-block-navigation {
	display: none !important;
}

/* ── Waitlist subscribe section ───────────────────────────────────────────── */

.lil-waitlist {
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	text-align: center;
}

.lil-waitlist__inner {
	max-width: 640px;
	margin-inline: auto;
}

.lil-waitlist__eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	margin-bottom: var(--wp--preset--spacing--20);
}

.lil-waitlist__heading {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	margin-bottom: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--base);
}

.lil-waitlist__desc {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--wp--preset--color--base);
	opacity: 0.85;
	margin-bottom: var(--wp--preset--spacing--40);
}

.lil-waitlist__row {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.lil-waitlist__input {
	flex: 1 1 220px;
	max-width: 320px;
	padding: 12px 16px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.1);
	color: var(--wp--preset--color--base);
	font-size: 1rem;
}

.lil-waitlist__input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.lil-waitlist__input:focus {
	outline: 2px solid var(--wp--preset--color--secondary);
	outline-offset: 2px;
}

.lil-waitlist__btn {
	padding: 12px 28px;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary);
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
	white-space: nowrap;
}

.lil-waitlist__btn:hover {
	opacity: 0.9;
}

.lil-waitlist__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.lil-waitlist__status {
	margin-top: 12px;
	font-size: 0.9rem;
	min-height: 1.4em;
}

.lil-waitlist__success {
	font-size: 1rem;
	color: var(--wp--preset--color--base);
	padding: var(--wp--preset--spacing--30);
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	margin-top: var(--wp--preset--spacing--30);
}

/* ── Embedded waitlist form (inside existing velvet section) ──────────────── */

.lil-waitlist--embed {
	text-align: center;
	background-color: transparent;
	padding: 0;
}

.lil-waitlist__embed-heading {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--wp--preset--color--secondary);
	margin-bottom: 0.5rem;
}

.lil-waitlist__embed-desc {
	font-size: 0.9rem;
	color: var(--wp--preset--color--base);
	opacity: 0.85;
	margin-bottom: 1.25rem;
	line-height: 1.5;
}

/* ── Contact form ─────────────────────────────────────────────────────────── */

.lil-contact-form__hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.lil-contact-form {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--small, 1rem);
}

.lil-contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lil-contact-form__field label {
	font-weight: 600;
	font-size: 0.9rem;
}

.lil-contact-form__field input[type="text"],
.lil-contact-form__field input[type="email"],
.lil-contact-form__field select,
.lil-contact-form__field textarea {
	padding: 12px 16px;
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 4px;
	background: var(--wp--preset--color--tertiary);
	color: var(--wp--preset--color--main);
	font-size: 1rem;
	font-family: inherit;
}

.lil-contact-form__field input:focus,
.lil-contact-form__field select:focus,
.lil-contact-form__field textarea:focus {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

.lil-contact-form__field textarea {
	resize: vertical;
}

.lil-contact-form__check-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.9rem;
}

.lil-contact-form__btn {
	align-self: flex-start;
	padding: 12px 28px;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s;
}

.lil-contact-form__btn:hover {
	opacity: 0.9;
}

.lil-contact-form__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.lil-contact-form__status {
	font-size: 0.9rem;
	min-height: 1.4em;
	color: var(--wp--preset--color--main);
}

.lil-contact-form__success {
	font-size: 1rem;
	color: var(--wp--preset--color--main);
	padding: var(--wp--preset--spacing--small, 1rem);
	background: var(--wp--preset--color--tertiary);
	border: 1px solid var(--wp--preset--color--border-light);
	border-radius: 4px;
}

/* ==========================================================================
   Member front page — hero, section header row, audio library, explore/search
   ========================================================================== */

.lil-member-hero .lil-eyebrow,
.lil-member-hero .lil-eyebrow span {
	color: var(--wp--preset--color--secondary, #E0A382);
}

.lil-section-header-row {
	display: flex;
	flex-wrap: wrap;
	/* Centred to match every other front-page section header. This row used to
	   push the title left and a link right, which left the title neither
	   centred nor aligned with the grid beneath it. */
	justify-content: center;
	align-items: center;
	gap: 1rem;
	margin-bottom: var(--wp--preset--spacing--large, 1.5rem);
}

.lil-section-header-row h2 {
	margin: 0;
}

/* wpautop leaves an empty paragraph in this row, which as a flex item adds a
   gap and pushes the centred heading off-centre by a few pixels. */
.lil-section-header-row > p:empty {
	display: none;
}

/*
 * Standard picture-card width across the front page — matches the New
 * Releases grid (4 fixed columns, 2rem gap) so story-style cards read as
 * one consistent size everywhere. Audio Library intentionally stays its
 * own (smaller) size since those cards have no cover image.
 */
.lil-section-active-series .lil-picked-list,
.lil-section-favorites .lil-favorites__grid {
	grid-template-columns: repeat(4, 1fr);
	gap: var(--wp--preset--spacing--large, 2rem);
}

/*
 * Shortcode output rendered directly inside a "constrained" layout group
 * (our alignwide section wrappers) is capped by WordPress's own
 * `.is-layout-constrained > *` rule to the theme's --content-size (~740px)
 * because it has no align* class of its own. Reset it to fill the wide
 * (~1260px) wrapper so these bands read as full-width rows like the
 * query-loop sections (New Releases) do.
 */
.lil-section-audio-library .lil-audio-grid,
.lil-section-browse-genre .lil-explore-panel,
.lil-section-browse-genre .lil-genre-explore-grid,
.lil-section-active-series .lil-picked-list,
.lil-section-favorites .lil-favorites__grid,
.lil-section-spotlight .lil-editorial-choice-list {
	max-width: none;
	width: 100%;
}

/* Consistent hover lift for every card grid on the member front page,
   matching the story-card hover already used elsewhere on the site. */
.lil-member-view .wp-block-post-template > li,
.lil-audio-card,
.lil-picked-list__link,
.lil-favorites__item,
.lil-genre-explore-card {
	transition: transform 0.2s cubic-bezier(0.4,0,0.2,1), box-shadow 0.2s cubic-bezier(0.4,0,0.2,1);
}

.lil-member-view .wp-block-post-template > li:hover,
.lil-genre-explore-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(74, 15, 26, 0.15);
}

/* Audio Library band */
.lil-audio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
}

.lil-audio-card {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.9rem;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-light, #ddc9bc);
	border-radius: 6px;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lil-audio-card:hover {
	box-shadow: 0 8px 24px rgba(74, 15, 26, 0.15);
	transform: translateY(-3px);
}

.lil-audio-card__play {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 4px;
	background: linear-gradient(160deg, var(--wp--preset--color--primary, #721628), var(--wp--preset--color--primary-alt-accent, #4a0f1a));
	color: var(--wp--preset--color--base, #F3E5DB);
	font-size: 0.9rem;
}

.lil-audio-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.lil-audio-card__title {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.98rem;
	color: var(--wp--preset--color--primary, #721628);
}

.lil-audio-card__meta {
	font-size: 0.74rem;
	color: var(--wp--preset--color--main-accent, #7A5060);
}

/* Explore & Search band */
.lil-explore-panel {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-light, #ddc9bc);
	border-radius: 6px;
	padding: 2rem 2.2rem;
	display: flex;
	flex-direction: column;
	gap: 1.6rem;
}

.lil-explore-panel__search {
	width: 100%;
	box-sizing: border-box;
	padding: 0.9rem 1.5rem;
	border-radius: 999px;
	border: 1px solid var(--wp--preset--color--border-light, #ddc9bc);
	font-family: var(--wp--preset--font-family--primary);
	font-size: 1rem;
	color: var(--wp--preset--color--primary, #721628);
	background: var(--wp--preset--color--tertiary, #faf4f0);
}

.lil-explore-panel__search::placeholder {
	color: var(--wp--preset--color--main-accent, #7A5060);
	opacity: 0.8;
}

.lil-explore-panel__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5rem;
	padding-top: 0.4rem;
	border-top: 1px solid var(--wp--preset--color--tertiary, #faf4f0);
}

.lil-filter-row {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.lil-filter-row__label {
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--wp--preset--color--main-accent, #7A5060);
}

.lil-filter-row__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.lil-tag {
	display: inline-flex;
	align-items: center;
	font-family: var(--wp--preset--font-family--primary);
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
	padding: 0.45rem 1rem;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lil-tag--outline {
	border: 1px solid var(--wp--preset--color--border-light, #ddc9bc);
	color: var(--wp--preset--color--primary, #721628);
	background: var(--wp--preset--color--tertiary, #faf4f0);
}

.lil-tag--pill {
	border: 1px solid var(--wp--preset--color--primary, #721628);
	color: var(--wp--preset--color--base, #F3E5DB);
	background: var(--wp--preset--color--primary, #721628);
}

/* The chips are now links, not inert spans — .lil-explore-panel gives the
   band its own white surface, so the section's cream background-colour
   class never reaches them, but they still need their own hover/focus
   feedback since a plain <a> gives none by default. Specificity is bumped
   with the parent class rather than relying on source order, since these
   rules sit right after the base .lil-tag* declarations they override. */
.lil-explore-panel__filters .lil-tag--outline:hover,
.lil-explore-panel__filters .lil-tag--outline:focus-visible {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--primary);
}

.lil-explore-panel__filters .lil-tag--pill:hover,
.lil-explore-panel__filters .lil-tag--pill:focus-visible {
	background: var(--wp--preset--color--primary-alt);
	border-color: var(--wp--preset--color--primary-alt);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(74, 15, 26, 0.18);
}

.lil-explore-panel__filters .lil-tag:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-alt);
	outline-offset: 2px;
}

.lil-explore-panel__form {
	display: flex;
	gap: 0.75rem;
	width: 100%;
}

.lil-explore-panel__form .lil-explore-panel__search {
	flex: 1 1 auto;
}

.lil-explore-panel__submit {
	flex: 0 0 auto;
	border: none;
	border-radius: 999px;
	padding: 0.9rem 1.8rem;
	font-family: var(--wp--preset--font-family--primary);
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--wp--preset--color--base);
	background: var(--wp--preset--color--primary);
	cursor: pointer;
	transition: background 0.15s ease, transform 0.15s ease;
}

.lil-explore-panel__submit:hover,
.lil-explore-panel__submit:focus-visible {
	background: var(--wp--preset--color--primary-alt);
	transform: translateY(-1px);
}

.lil-explore-panel__submit:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary-alt);
	outline-offset: 2px;
}

.lil-genre-explore-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem;
	margin-top: var(--wp--preset--spacing--large, 2rem);
}

.lil-genre-explore-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex: 1 1 220px;
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-light, #ddc9bc);
	border-left: 3px solid var(--wp--preset--color--primary, #721628);
	border-radius: 4px;
	padding: 0.9rem 1.1rem;
	text-decoration: none;
}

.lil-genre-explore-card__name {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 1.05rem;
	color: var(--wp--preset--color--primary, #721628);
}

.lil-genre-explore-card__count {
	font-size: 0.7rem;
	color: var(--wp--preset--color--main-accent, #7A5060);
}


/* New Releases — white card background to match the rest of the front page */
.lil-section-latest-stories .wp-block-post-template > li {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border-light, #ddc9bc);
	border-radius: 6px;
	overflow: hidden;
	padding-bottom: 1rem;
}

.lil-section-latest-stories .wp-block-post-template > li > * {
	margin-left: 0.9rem;
	margin-right: 0.9rem;
}

.lil-section-latest-stories .wp-block-post-template > li > .wp-block-post-featured-image {
	margin: 0 0 0.6rem;
}

/*
 * Responsive card grids — New Releases, For You and My Favorites share the
 * same 4-column standard size (see the rule above that unifies their
 * grid-template-columns); Editorial Choice stays its own 3-column size but
 * shares the same responsive step-down. Without explicit breakpoints each
 * card just shrinks in place as the viewport narrows; New Releases's own
 * WordPress-generated grid CSS only collapses to 1 column at 600px, which
 * still leaves an uncomfortably squeezed layout on tablet widths. Give
 * all four the same step-down instead of letting them shrink to fit.
 */
@media (max-width: 960px) {
	.lil-section-latest-stories .wp-block-post-template,
	.lil-section-active-series .lil-picked-list,
	.lil-section-favorites .lil-favorites__grid,
	.lil-section-spotlight .lil-editorial-choice-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.lil-section-latest-stories .wp-block-post-template,
	.lil-section-active-series .lil-picked-list,
	.lil-section-favorites .lil-favorites__grid,
	.lil-section-spotlight .lil-editorial-choice-list {
		grid-template-columns: 1fr;
	}
}



/* ── Front page: Explore band ───────────────────────────────────────────────
   One form so language, spice level and free text combine into a single
   search. The genre grid below it is a separate thing entirely - direct links
   to genre archives, carrying no search state - and is spaced apart so it does
   not read as another filter. --------------------------------------------- */

.lil-explore {
    max-width: 860px;
    margin: 0 auto;
}

.lil-explore__query {
    display: flex;
    gap: 0.6rem;
    margin-bottom: var(--wp--preset--spacing--medium);
}

.lil-explore__input {
    flex: 1 1 auto;
    padding: 0.85em 1.1em;
    font-size: 1rem;
    color: var(--wp--preset--color--primary);
    background: var(--wp--preset--color--tertiary);
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: 8px;
}

.lil-explore__submit {
    padding: 0.85em 1.8em;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--wp--preset--color--base);
    background: var(--wp--preset--color--primary);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.lil-explore__submit:hover,
.lil-explore__submit:focus-visible {
    background: var(--wp--preset--color--primary-alt);
}

.lil-explore__filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--large);
    align-items: flex-start;
}

.lil-explore__group {
    margin: 0;
    padding: 0;
    border: 0;
}

.lil-explore__legend {
    padding: 0 0 0.5em;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--wp--preset--color--primary);
}

.lil-explore__options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* The checkbox itself is hidden rather than removed, so the control stays
   keyboard-reachable and the label keeps toggling it; :focus-visible on it
   drives the ring below. */
.lil-explore__option input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.lil-explore__option {
    /* width:auto overrides this stylesheet's own global `label { width:100% }`,
       which otherwise makes every chip fill its line and stack vertically.
       (display:inline-flex is blockified to flex here because the parent is a
       flex container - that part is expected and harmless.) */
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.45em 0.9em;
    font-size: 0.9rem;
    color: var(--wp--preset--color--primary);
    background: var(--wp--preset--color--tertiary);
    border: 1px solid var(--wp--preset--color--border-light);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.lil-explore__option:hover {
    border-color: var(--wp--preset--color--primary);
}

.lil-explore__option:has(input:checked) {
    color: var(--wp--preset--color--base);
    background: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
}

.lil-explore__option:has(input:focus-visible) {
    outline: 2px solid var(--wp--preset--color--primary-alt);
    outline-offset: 2px;
}

/* Same chilli row the result cards and the search page use, so heat reads
   identically everywhere. */
.lil-explore__chillies {
    display: inline-block;
    width: 62px;
    height: 18px;
    -webkit-mask: var(--lil-chilli-row);
            mask: var(--lil-chilli-row);
    background-image: linear-gradient(90deg, var(--lil-heat-off) 0 100%);
}

.lil-explore__chillies--1 { background-image: linear-gradient(90deg, var(--lil-heat-on) 0 11.5px, var(--lil-heat-off) 11.5px); }
.lil-explore__chillies--2 { background-image: linear-gradient(90deg, var(--lil-heat-on) 0 24.5px, var(--lil-heat-off) 24.5px); }
.lil-explore__chillies--3 { background-image: linear-gradient(90deg, var(--lil-heat-on) 0 37.5px, var(--lil-heat-off) 37.5px); }
.lil-explore__chillies--4 { background-image: linear-gradient(90deg, var(--lil-heat-on) 0 50.5px, var(--lil-heat-off) 50.5px); }
.lil-explore__chillies--5 { background-image: linear-gradient(90deg, var(--lil-heat-on) 0 100%); }

/* Checked: re-tint rather than fill behind the mask, which would hide the
   chillies entirely. */
.lil-explore__option--heat:has(input:checked) .lil-explore__chillies {
    --lil-heat-on: var(--wp--preset--color--base);
    --lil-heat-off: color-mix(in srgb, var(--wp--preset--color--base) 35%, transparent);
}

.lil-explore__advanced {
    margin: var(--wp--preset--spacing--medium) 0 0;
    font-size: 0.9rem;
}

.lil-genre-explore {
    margin-top: var(--wp--preset--spacing--x-large);
    padding-top: var(--wp--preset--spacing--large);
    border-top: 1px solid var(--wp--preset--color--border-light);
}

.lil-genre-explore__title {
    margin: 0 0 var(--wp--preset--spacing--medium);
    font-family: var(--wp--preset--font-family--secondary);
    font-size: 1.15rem;
    font-weight: 400;
    text-align: center;
    color: var(--wp--preset--color--primary);
}

@media (max-width: 600px) {
    .lil-explore__query {
        flex-direction: column;
    }

    .lil-explore__filters {
        gap: var(--wp--preset--spacing--medium);
    }
}
