/*
 * ============================================
 * Fanatically - Jerilicious theme
 * Tokens and aesthetic matched to the Jeri Ryan
 * fanlisting (mint / lavender / gold / wine / teal)
 * Self-contained: does not depend on Reverie's
 * style.css tokens, so this file drops in cleanly
 * on its own.
 * ============================================
 */

:root
{
    --text-dark: #3a2c33;
    --text-mid: #5f5772;
    --text-light: #9c8aa8;
    --white-soft: rgba(253, 252, 249, 0.78);
    --white-glass: rgba(253, 252, 249, 0.45);
    --border: rgba(182, 147, 94, 0.28);
    --shadow: rgba(36, 31, 43, 0.12);
    --g3: #b6935e;
    --wine: #8a5a70;
    --gold: #b6935e;
    --teal: #5fa992;
}

/* -----------------------------------------
   Forms
----------------------------------------- */
.fan-form .join-field
{
    margin-bottom: 1.1em;
}

.fan-form label
{
    color: var(--text-light);
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.fan-form input[type=text],
.fan-form input[type=email],
.fan-form input[type=url],
.fan-form input[type=file],
.fan-form input[type=password],
.fan-form select,
.fan-form textarea
{
    backdrop-filter: blur(8px);
    background: var(--white-glass);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
    box-sizing: border-box;
    color: var(--text-dark);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    padding: 9px 14px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.fan-form input[type=text]:focus,
.fan-form input[type=email]:focus,
.fan-form input[type=url]:focus,
.fan-form input[type=password]:focus,
.fan-form select:focus,
.fan-form textarea:focus
{
    background: var(--white-soft);
    border-color: var(--gold-light, #e3cd9f);
    box-shadow: 0 4px 14px var(--shadow);
    outline: none;
}

.fan-form input[type=file]
{
    color: var(--text-mid);
    cursor: pointer;
    font-size: 0.85rem;
}

.fan-form select
{
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b6935e' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    cursor: pointer;
    padding-right: 36px;
}

.fan-form textarea
{
    line-height: 1.7;
    min-height: 100px;
    resize: vertical;
}

.fan-form button[type=submit]
{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: var(--white-soft);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: 0 4px 14px var(--shadow);
    color: var(--text-mid);
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding: 0.55rem 1.6rem;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.fan-form button[type=submit]:hover
{
    background: linear-gradient(120deg, #cdf6e6 0%, #efeaf9 100%);
    border-color: var(--gold);
    box-shadow: 0 6px 20px var(--shadow);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.fan-form .fan-form-actions
{
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.4rem;
}

.fan-form .fan-form-secondary-link
{
    color: var(--text-light);
    font-size: 0.78em;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.fan-form .fan-form-secondary-link:hover
{
    color: var(--text-mid);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.fan-form .fan-label-hint
{
    color: var(--text-light);
    font-size: 0.8em;
    font-weight: 400;
}

.fan-form .fan-field-hint
{
    color: var(--text-light);
    display: block;
    font-size: 0.75em;
    letter-spacing: 0.04em;
    margin-top: 5px;
}

.fan-form .fan-checkbox-label
{
    align-items: baseline;
    color: var(--text-mid);
    cursor: pointer;
    display: flex;
    font-size: 0.82em;
    font-weight: 400;
    gap: 0.45rem;
}

.fan-form input[type=checkbox]
{
    accent-color: var(--g3);
    backdrop-filter: none;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    padding: 0;
    width: auto;
}

.fan-form .fan-btn-danger
{
    background: rgba(180, 80, 80, 0.2);
    border-color: rgba(200, 100, 100, 0.4);
    color: #8a3030;
}

.fan-form .fan-btn-danger:hover
{
    background: rgba(200, 80, 80, 0.3);
    border-color: rgba(220, 110, 110, 0.55);
    color: #6a1f1f;
}


/* -----------------------------------------
   Feedback boxes
----------------------------------------- */
.fan-success
{
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(205, 246, 230, 0.5);
    border: 1px solid rgba(159, 217, 190, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(95, 169, 146, 0.12);
    color: #2e5e3a;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    padding: 12px 16px;
}

.fan-errors
{
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(240, 200, 200, 0.5);
    border: 1px solid rgba(210, 160, 160, 0.6);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(160, 100, 100, 0.1);
    color: #6a2828;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    padding: 12px 16px;
}

.fan-errors ul
{
    margin: 0;
    padding-left: 1.2em;
}

.fan-errors ul li,
.fan-success ul li
{
    color: inherit;
    font-size: inherit;
    line-height: 1.7;
    margin-bottom: 0.3rem;
}


/* -----------------------------------------
   Donate / apply toggle
----------------------------------------- */
.fan-donate-toggle
{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: var(--white-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: 0 2px 8px var(--shadow);
    color: var(--text-mid);
    cursor: pointer;
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    margin: 1.5em 0 0;
    padding: 0.55rem 1.6rem;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.25s ease;
    width: 100%;
}

.fan-donate-toggle:hover
{
    background: linear-gradient(120deg, #cdf6e6 0%, #efeaf9 100%);
    border-color: var(--gold);
    color: var(--text-dark);
    transform: translateY(-2px);
}


/* -----------------------------------------
   Pagination
----------------------------------------- */
.fan-pagination
{
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin: 1.5em 0;
}

.fan-pagination a,
.fan-pagination span
{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    background: var(--white-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: 0 2px 6px var(--shadow);
    color: var(--text-mid);
    display: inline-flex;
    font-family: 'Jost', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    justify-content: center;
    letter-spacing: 0.1em;
    min-width: 32px;
    padding: 0.35rem 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.fan-pagination a:hover
{
    background: linear-gradient(120deg, #cdf6e6 0%, #efeaf9 100%);
    border-color: var(--gold);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.fan-pagination a:visited
{
    color: var(--text-mid);
}

/* current page */
.fan-pagination span
{
    background: var(--white-soft);
    border-color: var(--gold);
    color: var(--text-dark);
    font-weight: 600;
}


/* -----------------------------------------
   Shared category / size nav
   (joined, owned, size - all one style)
   NOTE: .content-card prefix is intentional -
   it boosts specificity above Fanatically's
   own inline \3c style> block in the page HTML.
   NOTE: these are real <nav> elements, so they
   also inherit style.css's bare `nav` selector
   (glass pill background, border, box-shadow,
   backdrop-filter, border-radius:999px, fixed
   padding, width:fit-content) meant for the
   header site nav. That container chrome is
   reset to nothing below - the design here is
   individual pill links (styled explicitly
   further down) floating directly on the page,
   not a second glass pill wrapping around them.
   Without the reset, a `nav` that wraps onto
   several rows (e.g. six codes stacked on a
   narrow mobile card) turns into an oval, since
   border-radius:999px rounds all four corners
   of a box that's now taller than it is wide.
----------------------------------------- */
.fan-joined-category-nav,
.fan-owned-category-nav,
.fan-size-nav
{
    align-items: center;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.3rem;
    line-height: 1;
    margin-bottom: 1.4em;
    margin-top: 1.4em;
    padding: 0;
    width: auto;
}

.content-card .fan-joined-category-nav a,
.content-card .fan-owned-category-nav a,
.content-card .fan-size-nav a,
.fan-joined-page .fan-joined-category-nav a,
.fan-joined-page .fan-owned-category-nav a,
.fan-joined-page .fan-size-nav a,
.fan-owned-page .fan-owned-category-nav a,
.fan-owned-page .fan-joined-category-nav a,
.fan-owned-listings-page .fan-owned-category-nav a,
.fan-owned-listings-page .fan-joined-category-nav a,
.fan-codes-page .fan-size-nav a,
.fan-size-nav a
{
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background: var(--white-glass) !important;
    border: 1px solid var(--border) !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 6px var(--shadow) !important;
    color: var(--text-mid) !important;
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1;
    padding: 0.42rem 1rem !important;
    text-decoration: none !important;
    text-shadow: none !important;
    text-transform: uppercase;
    transition: all 0.22s ease;
}

.content-card .fan-joined-category-nav a:visited,
.content-card .fan-owned-category-nav a:visited,
.fan-joined-page .fan-joined-category-nav a:visited,
.fan-owned-page .fan-owned-category-nav a:visited,
.fan-owned-listings-page .fan-owned-category-nav a:visited,
.fan-codes-page .fan-size-nav a:visited,
.fan-size-nav a:visited
{
    color: var(--text-mid) !important;
}

/* hashtag prefix */
.content-card .fan-joined-category-nav a::before,
.content-card .fan-owned-category-nav a::before,
.content-card .fan-size-nav a::before,
.fan-joined-page .fan-joined-category-nav a::before,
.fan-joined-page .fan-owned-category-nav a::before,
.fan-owned-page .fan-owned-category-nav a::before,
.fan-owned-listings-page .fan-owned-category-nav a::before,
.fan-codes-page .fan-size-nav a::before,
.fan-size-nav a::before
{
    color: var(--gold);
    content: "#" !important;
    margin-right: 3px !important;
    opacity: 0.85 !important;
}

/* hover */
.content-card .fan-joined-category-nav a:hover,
.content-card .fan-owned-category-nav a:hover,
.content-card .fan-size-nav a:hover,
.fan-joined-page .fan-joined-category-nav a:hover,
.fan-joined-page .fan-owned-category-nav a:hover,
.fan-owned-page .fan-owned-category-nav a:hover,
.fan-owned-listings-page .fan-owned-category-nav a:hover,
.fan-codes-page .fan-size-nav a:hover,
.fan-size-nav a:hover
{
    background: linear-gradient(120deg, #cdf6e6 0%, #efeaf9 100%) !important;
    border-color: var(--gold) !important;
    color: var(--text-dark) !important;
    transform: translateY(-2px);
}

/* active / current */
.content-card .fan-joined-category-nav .fan-cat-active,
.content-card .fan-owned-category-nav .fan-cat-active,
.fan-joined-page .fan-joined-category-nav .fan-cat-active,
.fan-joined-page .fan-owned-category-nav .fan-cat-active,
.fan-owned-page .fan-owned-category-nav .fan-cat-active,
.fan-owned-listings-page .fan-owned-category-nav .fan-cat-active,
.fan-codes-page .fan-size-nav .fan-cat-active,
.fan-size-nav .fan-cat-active
{
    background: var(--white-soft) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 4px 14px var(--shadow) !important;
    color: var(--text-dark) !important;
    font-weight: 600;
    text-shadow: none !important;
}

.content-card .fan-joined-category-nav .fan-cat-active::before,
.content-card .fan-owned-category-nav .fan-cat-active::before,
.fan-joined-page .fan-joined-category-nav .fan-cat-active::before,
.fan-owned-page .fan-owned-category-nav .fan-cat-active::before,
.fan-owned-listings-page .fan-owned-category-nav .fan-cat-active::before,
.fan-codes-page .fan-size-nav .fan-cat-active::before,
.fan-size-nav .fan-cat-active::before
{
    opacity: 1 !important;
}

.content-card .fan-joined-category-nav .fan-cat-active:hover,
.content-card .fan-owned-category-nav .fan-cat-active:hover,
.fan-joined-page .fan-joined-category-nav .fan-cat-active:hover,
.fan-owned-page .fan-owned-category-nav .fan-cat-active:hover,
.fan-owned-listings-page .fan-owned-category-nav .fan-cat-active:hover,
.fan-codes-page .fan-size-nav .fan-cat-active:hover,
.fan-size-nav .fan-cat-active:hover
{
    background: linear-gradient(120deg, #cdf6e6 0%, #efeaf9 100%) !important;
    border-color: var(--gold) !important;
    color: var(--text-dark) !important;
    transform: none;
}


/* -----------------------------------------
   Page content wrapper
   Wraps all Fanatically page output in a
   matching card, same aesthetic as the
   homepage <main> card (gold hairline top,
   warm paper glass, soft ink shadow).
   NOTE: fan-owned-listings-page is the actual
   class Fanatically uses on the owned page.
   fan-join-page (Join form) is distinct from
   fan-joined-page ("fanlistings I've joined"
   listing) - both are covered here since they
   are easy to mix up. fan-member-list-wrap is
   the actual wrapper Fanatically uses on the
   Members page (there is no fan-member-page).
----------------------------------------- */
.fan-joined-page,
.fan-owned-page,
.fan-owned-listings-page,
.fan-member-page,
.fan-member-list-wrap,
.fan-codes-page,
.fan-wishlist-page,
.fan-form-page,
.fan-join-page,
.fan-update-page,
.fan-delete-page,
.fan-lostpass-page,
.fan-adopt-page,
.fan-kim-page
{
    animation: fadeUp 1s 0.2s ease both;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: var(--white-glass);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px var(--shadow);
    margin-top: 2rem;
    padding: 2.4rem 2.8rem;
    position: relative;
}

.fan-joined-page::before,
.fan-owned-page::before,
.fan-owned-listings-page::before,
.fan-member-page::before,
.fan-member-list-wrap::before,
.fan-codes-page::before,
.fan-wishlist-page::before,
.fan-form-page::before,
.fan-join-page::before,
.fan-update-page::before,
.fan-delete-page::before,
.fan-lostpass-page::before,
.fan-adopt-page::before,
.fan-kim-page::before
{
    background: linear-gradient(
        90deg,
        transparent,
        var(--wine) 15%,
        var(--gold) 50%,
        var(--teal) 85%,
        transparent
    );
    border-radius: 1.5rem 1.5rem 0 0;
    content: '';
    height: 2px;
    left: 8%;
    opacity: 0.6;
    position: absolute;
    right: 8%;
    top: 0;
}

/* Page h2 title */
.fan-joined-page h2,
.fan-owned-page h2,
.fan-owned-listings-page h2,
.fan-member-page h2,
.fan-member-list-wrap h2,
.fan-codes-page h2,
.fan-wishlist-page h2,
.fan-form-page h2,
.fan-join-page h2,
.fan-update-page h2,
.fan-delete-page h2,
.fan-lostpass-page h2,
.fan-adopt-page h2,
.fan-kim-page h2
{
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 1.8rem;
    text-align: center;
}

.fan-joined-page h2 em,
.fan-owned-page h2 em,
.fan-owned-listings-page h2 em,
.fan-member-page h2 em,
.fan-member-list-wrap h2 em,
.fan-codes-page h2 em,
.fan-wishlist-page h2 em,
.fan-form-page h2 em,
.fan-join-page h2 em,
.fan-update-page h2 em,
.fan-delete-page h2 em,
.fan-lostpass-page h2 em,
.fan-adopt-page h2 em,
.fan-kim-page h2 em
{
    color: var(--wine);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
}

/* empty-state text (e.g. "No fanlistings found.") */
.fan-joined-page > p,
.fan-owned-page > p,
.fan-owned-listings-page > p
{
    color: var(--text-light);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
    letter-spacing: 0.02em;
    margin-bottom: 1.2rem;
    text-align: center;
}

/* Codes page intro paragraph ("You can use these codes...") - real
   descriptive prose like the homepage intro, so it gets the full body-copy
   scale (1.18rem) rather than the smaller 1.05rem used for the form
   control/success messages below. */
.fan-codes-page > p
{
    color: var(--text-mid);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.18rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
}

/* Baseline copy inside the newly-covered wrappers (join/update/delete/
   lostpass/adopt/kim success & error text, plus the Members page's
   "Members from X - Back" control line). Left-aligned, normal weight -
   these are page controls/messages, not de-emphasized empty states, so
   they use the site's regular body typography rather than the italic
   empty-state treatment above. */
.fan-join-page > p,
.fan-update-page > p,
.fan-delete-page > p,
.fan-lostpass-page > p,
.fan-adopt-page > p,
.fan-kim-page > p,
.fan-member-list-wrap > p
{
    color: var(--text-mid);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.fan-join-page .fan-success p,
.fan-update-page .fan-success p,
.fan-delete-page .fan-success p,
.fan-lostpass-page .fan-success p,
.fan-adopt-page .fan-success p
{
    font-size: inherit;
    margin-bottom: 0;
}

/* "Pending" / "Approved" status headings on owned page */
.fan-owned-status-heading
{
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin: 2rem 0 1rem;
    padding-bottom: 0.55rem;
    text-align: left;
}

/* "TV Shows" etc. category headings on owned page */
.fan-owned-category-group
{
    margin-bottom: 1.5em;
}

.fan-owned-category-heading
{
    color: var(--gold);
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin: 0 0 0.6em;
    text-transform: uppercase;
}

/* -----------------------------------------
   Owned listing items
   Fanatically outputs these with inline
   style="" attributes - we override with
   matching theme styles at higher specificity
----------------------------------------- */
.fan-owned-listings-page .owned-listing-item,
.fan-owned-page .owned-listing-item
{
    align-items: flex-start !important;
    border-bottom: 1px solid var(--border);
    display: flex !important;
    gap: 1.5rem !important;
    margin-bottom: 1.6rem !important;
    padding-bottom: 1.6rem;
}

.fan-owned-listings-page .owned-listing-item:last-child,
.fan-owned-page .owned-listing-item:last-child
{
    border-bottom: none;
    margin-bottom: 0 !important;
    padding-bottom: 0;
}

/* listing image */
.fan-owned-listings-page .listing-image,
.fan-owned-page .listing-image
{
    flex-shrink: 0 !important;
}

.fan-owned-listings-page .listing-image img,
.fan-owned-page .listing-image img
{
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow);
    display: block;
    height: auto;
    max-width: 160px !important;
    width: 100%;
}

/* listing info block */
.fan-owned-listings-page .listing-info,
.fan-owned-page .listing-info
{
    flex: 1 !important;
}

.fan-owned-listings-page .listing-info div,
.fan-owned-page .listing-info div
{
    color: var(--text-mid);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    margin-top: 0.25rem !important;
}

/* fanlisting title link */
.fan-owned-listings-page .listing-info strong,
.fan-owned-page .listing-info strong
{
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.fan-owned-listings-page .listing-info strong a,
.fan-owned-page .listing-info strong a
{
    color: var(--text-dark) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.fan-owned-listings-page .listing-info strong a:hover,
.fan-owned-page .listing-info strong a:hover
{
    color: var(--wine) !important;
    text-decoration: underline !important;
    text-decoration-color: var(--border) !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 4px !important;
}

.fan-owned-listings-page .listing-info strong a:visited,
.fan-owned-page .listing-info strong a:visited
{
    color: var(--text-dark) !important;
}

/* italic subject/series line */
.fan-owned-listings-page .listing-info em,
.fan-owned-page .listing-info em
{
    color: var(--wine);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-style: italic;
}


/* -----------------------------------------
   Affiliates page
----------------------------------------- */
.fan-affiliates-page
{
    animation: fadeUp 1s 0.2s ease both;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: var(--white-glass);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px var(--shadow);
    margin-top: 2rem;
    padding: 2.4rem 2.8rem;
    position: relative;
}

.fan-affiliates-page::before
{
    background: linear-gradient(
        90deg,
        transparent,
        var(--wine) 15%,
        var(--gold) 50%,
        var(--teal) 85%,
        transparent
    );
    border-radius: 1.5rem 1.5rem 0 0;
    content: '';
    height: 2px;
    left: 8%;
    opacity: 0.6;
    position: absolute;
    right: 8%;
    top: 0;
}

/* affiliates image grid */
.fan-affiliates-list
{
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* each affiliate item - override Fanatically's inline styles */
.fan-affiliates-page .affiliate-item
{
    display: inline-flex !important;
    padding-bottom: 0 !important;
    position: relative !important;
}

.fan-affiliates-page .affiliate-item a
{
    border-radius: 8px;
    display: block;
    line-height: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fan-affiliates-page .affiliate-item a:hover
{
    box-shadow: 0 6px 16px var(--shadow);
    transform: translateY(-3px);
}

.fan-affiliates-page .affiliate-item img
{
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    display: block;
    height: auto;
    max-width: 100%;
}


/* -----------------------------------------
   Joined listings
----------------------------------------- */

/* "Pending", "Approved" etc. status headings */
.fan-joined-status-heading
{
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    margin: 2rem 0 1rem;
    padding-bottom: 0.55rem;
    text-align: left;
}

.fan-joined-status-heading em
{
    color: var(--wine);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

.fan-joined-category-group
{
    margin-bottom: 1.5em;
}

/* "Actresses", "TV Shows" etc. */
.fan-joined-category-heading
{
    color: var(--gold);
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin: 0 0 0.6em;
    text-transform: uppercase;
}

.fan-joined-listings
{
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fan-joined-listing-item
{
    display: inline-flex;
}

.fan-joined-listing-item a
{
    border-radius: 8px;
    display: block;
    line-height: 0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fan-joined-listing-item a:hover
{
    box-shadow: 0 6px 16px var(--shadow);
    transform: translateY(-3px);
}

.fan-joined-listing-item img
{
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 8px var(--shadow);
    display: block;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}


/* -----------------------------------------
   Member list
   NOTE: card wrapper, hairline, h2, and
   baseline paragraph styling for
   .fan-member-list-wrap live in the shared
   "Page content wrapper" section above.
----------------------------------------- */
.fan-country-nav
{
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.3rem;
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}

.fan-country-nav li
{
    display: block;
}

.fan-country-nav a
{
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: var(--white-glass);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow: 0 2px 6px var(--shadow);
    color: var(--text-mid);
    display: inline-block;
    font-family: 'Jost', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.22s ease;
}

.fan-country-nav a:hover
{
    background: linear-gradient(120deg, #cdf6e6 0%, #efeaf9 100%);
    border-color: var(--gold);
    color: var(--text-dark);
    transform: translateY(-2px);
}

.fan-country-nav a:visited
{
    color: var(--text-mid);
}

.fan-member-list
{
    border-collapse: collapse;
    width: 100%;
}

.fan-member-list th
{
    border-bottom: 1px solid var(--border);
    color: var(--gold);
    font-family: 'Jost', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    padding: 10px 12px;
    text-align: left;
    text-transform: uppercase;
}

.fan-member-list td
{
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 400;
    padding: 10px 12px;
    transition: background 0.2s ease;
}

.fan-member-list tr:hover td
{
    background: rgba(205, 246, 230, 0.25);
}

.fan-member-list a
{
    color: var(--text-mid);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fan-member-list a:hover
{
    color: var(--text-dark);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.fan-member-list a:visited
{
    color: var(--text-mid);
}


/* -----------------------------------------
   Kim (member-by-fanlisting) rows
----------------------------------------- */
.fan-kim-item
{
    align-items: baseline;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    padding: 9px 0;
}

.fan-kim-name
{
    color: var(--text-dark);
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 180px;
}

.fan-kim-name a
{
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fan-kim-name a:hover
{
    color: var(--wine);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.fan-kim-name a:visited
{
    color: var(--text-dark);
}

.fan-kim-fanlisting
{
    color: var(--text-mid);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
}

.fan-kim-notes
{
    color: var(--text-light);
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.82em;
    font-style: italic;
    margin-left: 180px;
    margin-top: 3px;
    opacity: 0.8;
}


/* -----------------------------------------
   Wishlist
----------------------------------------- */
.fan-wishlist-image img
{
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 14px var(--shadow);
    display: block;
    height: auto;
    max-width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fan-wishlist-image img:hover
{
    box-shadow: 0 8px 24px var(--shadow);
    transform: translateY(-3px);
}

.fan-wishlist-subject,
.fan-wishlist-category,
.fan-wishlist-description
{
    display: block;
}

.fan-wishlist-subject
{
    color: var(--text-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 5px;
}

.fan-wishlist-subject a
{
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.fan-wishlist-subject a:hover
{
    color: var(--wine);
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.fan-wishlist-subject a:visited
{
    color: var(--text-dark);
}

.fan-wishlist-category
{
    color: var(--gold);
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    margin-bottom: 8px;
    opacity: 0.95;
    text-transform: uppercase;
}

.fan-wishlist-description
{
    color: var(--text-mid);
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.75;
    margin: 0;
    opacity: 0.95;
}

/* ----------------------------------------- 
Fanlisting stats (joined, owned, wishlist counts)
----------------------------------------- */

.fanlisting-stats-wrap {
    animation: fadeUp 1s 0.2s ease both;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: var(--white-glass);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px var(--shadow);
    margin: 2rem 0;
    padding: 2.4rem 2.8rem;
    position: relative;
}

.fanlisting-stats-wrap::before {
    background: linear-gradient(
        90deg,
        transparent,
        var(--wine) 15%,
        var(--gold) 50%,
        var(--teal) 85%,
        transparent
    );
    border-radius: 1.5rem 1.5rem 0 0;
    content: '';
    height: 2px;
    left: 8%;
    opacity: 0.6;
    position: absolute;
    right: 8%;
    top: 0;
}

/* Styles applied to paragraphs inside the fanlisting-stats-text div */
.fanlisting-stats-text p {
    color: var(--text-mid);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
}

/* Styles applied to bold text inside the fanlisting-stats-text div */
.fanlisting-stats-text strong, 
.fanlisting-stats-text b {
    background-image: none;
    color: var(--text-dark);
    font-weight: bold; /* Ensures it stays bold */
    text-transform: none !important; /* Ensures it stays in sentence case */
}

/* -----------------------------------------
   Rules page
   NOTE: Fanatically's Rules template uses its
   own naming scheme (.fanlisting-rules, not
   .fan-*-page), so it was previously entirely
   unstyled and fell back to browser-default
   text size/spacing - much smaller than the
   rest of the site's body copy. Card wrapper
   matches the other Fanatically pages; text
   sizing matches the homepage's main > p copy
   (1.18rem Cormorant Garamond) instead of the
   1rem browser default.
----------------------------------------- */
.fanlisting-rules {
    animation: fadeUp 1s 0.2s ease both;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: var(--white-glass);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px var(--shadow);
    margin-top: 2rem;
    padding: 2.4rem 2.8rem;
    position: relative;
}

.fanlisting-rules::before {
    background: linear-gradient(
        90deg,
        transparent,
        var(--wine) 15%,
        var(--gold) 50%,
        var(--teal) 85%,
        transparent
    );
    border-radius: 1.5rem 1.5rem 0 0;
    content: '';
    height: 2px;
    left: 8%;
    opacity: 0.6;
    position: absolute;
    right: 8%;
    top: 0;
}

.fanlisting-rules-intro,
.fanlisting-rules-footer {
    color: var(--text-mid);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.18rem;
    line-height: 1.75;
    margin: 0 0 1.4rem;
}

.fanlisting-rules-footer {
    border-top: 1px solid var(--border);
    color: var(--wine);
    font-style: italic;
    margin-bottom: 0;
    margin-top: 1.8rem;
    padding-top: 1.6rem;
    text-align: center;
}

.fanlisting-rules-list {
    color: var(--text-mid);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    line-height: 1.75;
    margin: 0 0 1.4rem;
    padding-left: 1.4rem;
}

.fanlisting-rules-list li {
    margin-bottom: 0.7rem;
}

.fanlisting-rules-list li::marker {
    color: var(--gold);
    font-family: 'Jost', sans-serif;
    font-size: 0.85em;
    font-weight: 600;
}

.fanlisting-rules-intro strong,
.fanlisting-rules-list strong,
.fanlisting-rules-footer strong {
    font-size: inherit;
}


/* -----------------------------------------
   Responsive
   Card wrappers (stats, rules, and all
   Fanatically fan-*-page pages) carry the
   same generous 2.4rem/2.8rem padding as the
   homepage <main> card. On narrow mobile
   viewports that padding eats too much of the
   already-narrow column, leaving very little
   width for text (see stats/rules pages).
   Scaled down here the same way main's own
   padding is scaled down in style.css.
----------------------------------------- */
@media (max-width: 600px) {
    .fan-joined-page,
    .fan-owned-page,
    .fan-owned-listings-page,
    .fan-member-page,
    .fan-member-list-wrap,
    .fan-codes-page,
    .fan-wishlist-page,
    .fan-form-page,
    .fan-join-page,
    .fan-update-page,
    .fan-delete-page,
    .fan-lostpass-page,
    .fan-adopt-page,
    .fan-kim-page,
    .fan-affiliates-page,
    .fanlisting-stats-wrap,
    .fanlisting-rules
    {
        padding: 1.6rem 1.25rem;
    }

    .fan-joined-page h2,
    .fan-owned-page h2,
    .fan-owned-listings-page h2,
    .fan-member-page h2,
    .fan-member-list-wrap h2,
    .fan-codes-page h2,
    .fan-wishlist-page h2,
    .fan-form-page h2,
    .fan-join-page h2,
    .fan-update-page h2,
    .fan-delete-page h2,
    .fan-lostpass-page h2,
    .fan-adopt-page h2,
    .fan-kim-page h2
    {
        font-size: 1.6rem;
    }

    .fanlisting-rules-intro,
    .fanlisting-rules-footer,
    .fanlisting-rules-list,
    .fan-codes-page > p
    {
        font-size: 1.05rem;
    }

    .fan-kim-notes
    {
        margin-left: 0;
    }

    .fan-kim-name
    {
        min-width: 0;
    }
}

