/* === MERGED: font-solaimanlipi.css === */
/* JUFbook — approved literary font bundle.
   Local Bengali faces are centralized here so public pages and Biography use the same files.
   font-display: block paired with <head> preload prevents any fallback font flash (FOUT) on refresh.
   unicode-range restricts local Bengali fonts to Bengali codepoints so English/Latin words
   always render in the paired premium English fonts (Lora / Plus Jakarta Sans). */
@font-face {
    font-family: 'Kalpurush';
    src: url('../fonts/kalpurush.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: block;
    unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
    font-family: 'Kalpurush';
    src: url('../fonts/kalpurush.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: block;
    unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
    font-family: 'Kalpurush';
    src: url('../fonts/kalpurush.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: block;
    unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
    font-family: 'SolaimanLipi';
    src: url('../fonts/solaimanlipi/solaimanlipi-normal-v1.0.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
    unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
    font-family: 'SolaimanLipi';
    src: url('../fonts/solaimanlipi/solaimanlipi-normal-v1.0.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: block;
    unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
    font-family: 'SolaimanLipi';
    src: url('../fonts/solaimanlipi/solaimanlipi-bold-v1.0.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: block;
    unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}


/* === MERGED: style.css === */
:root {
    --bg-cream: #F6F5F2;
    --text-main: #282E37;
    --text-muted: #5B6376;
    --accent-rust: #3B4256;
    --accent-blue: #2F5D9E;

    /* 4-Level Typography Architecture */
    --font-brand: 'Cinzel', Georgia, serif;
    --font-ui: 'Noto Sans Bengali','Kalpurush','SolaimanLipi', -apple-system, sans-serif;
    --font-ui-system: 'Noto Sans Bengali','Kalpurush','SolaimanLipi', 'Noto Sans Bengali','Kalpurush','SolaimanLipi', sans-serif;
    --font-heading: 'Tiro Bangla','Kalpurush','SolaimanLipi', 'Tiro Bangla','Kalpurush','SolaimanLipi', serif;
    --font-traditional: 'Tiro Bangla','Kalpurush','SolaimanLipi', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main);
    font-family: var(--font-reading, 'SolaimanLipi', serif);
    line-height: 1.6;
    overflow-x: clip;
}

/* Bengali Unicode Quality Fixes */
h1, h2, h3, h4, h5, h6, p, span, a, input, button {
    letter-spacing: normal !important;
    text-transform: none !important;
    font-feature-settings: "kern" 1, "liga" 1;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

/* 1. Header */
.juf-header {
    background: transparent;
    padding: 20px 0 10px;
}

.juf-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.juf-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 56px;
    overflow: hidden;
}

.juf-site-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-top: -10px;
    margin-bottom: -10px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s ease;
}

.juf-brand-logo-wrap:hover .juf-site-logo {
    transform: scale(1.05);
}

.juf-brand {
    font-family: var(--font-brand);
    font-size: 26px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px !important;
}

.brand-rust { color: var(--accent-rust); }
.brand-dark { color: var(--text-main); }

.juf-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.juf-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-ui);
}

.juf-auth-btn {
    background: var(--accent-rust);
    color: #fff !important;
    padding: 9px 26px;
    border-radius: 999px;
    font-weight: 600 !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 66, 86, 0.25);
    font-family: var(--font-ui);
}

.juf-nav form { margin: 0; display: inline-flex; }
.juf-nav button.juf-auth-btn { border: 0; cursor: pointer; font-size: 15px; line-height: 1.2; }

/* 2. Cinematic Expanding Cards Hero Carousel */
.hero-cinematic-stage {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 480px;
    margin: 20px 0 40px;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid #D9D6D0;
    box-shadow: 0 14px 40px rgba(40, 46, 55, 0.05), 0 2px 10px rgba(0, 0, 0, 0.02);
    background: #ECEAE6;
}

.hero-cinematic-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.hero-slide-item {
    position: absolute;
    inset: 0;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.hero-slide-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-bg-art-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-art-mesh-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ECEAE6 0%, #ECEAE6 52%, #E4E6EC 100%);
    opacity: 1;
    transition: background 1s ease;
}

.hero-art-blob-1 {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background: var(--slide-theme, #3346A8);
    opacity: 0.22;
    filter: blur(80px);
    transform: scale(0.85);
    transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1), background 1s ease;
}

.hero-art-blob-2 {
    position: absolute;
    bottom: -35%;
    left: 25%;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: var(--slide-theme, #3346A8);
    opacity: 0.15;
    filter: blur(70px);
    transform: scale(0.8);
    transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1), background 1s ease;
}

.hero-art-grid-lines {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.7;
}

.hero-slide-item.active .hero-art-blob-1 { transform: scale(1.1) rotate(15deg); }
.hero-slide-item.active .hero-art-blob-2 { transform: scale(1) rotate(-10deg); }

.hero-slide-info {
    max-width: 540px;
    z-index: 3;
    position: relative;
}

.hero-slide-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-rust);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(22px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
    font-family: var(--font-ui);
}

.hero-slide-title {
    font-family: var(--font-display-literary, var(--font-book-title));
    font-size: 38px;
    font-weight: 400;
    color: #282E37;
    line-height: 1.25;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(26px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.hero-slide-author {
    font-size: 15px;
    color: #282E37;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
    font-family: var(--font-ui-system);
    font-weight: 500;
}

.hero-slide-desc {
    font-size: 14px;
    color: #5B6376;
    line-height: 1.7;
    margin-bottom: 26px;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
    font-family: var(--font-ui-system);
    font-weight: 400;
}

.hero-slide-actions {
    display: flex;
    gap: 14px;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}

.hero-slide-item.active .hero-slide-badge,
.hero-slide-item.active .hero-slide-title,
.hero-slide-item.active .hero-slide-author,
.hero-slide-item.active .hero-slide-desc,
.hero-slide-item.active .hero-slide-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-hero-cinematic-primary {
    background: var(--accent-rust);
    color: #FFFFFF !important;
    padding: 11px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(51, 70, 168, 0.32);
    transition: all 0.25s ease;
    font-family: var(--font-ui);
}

.btn-hero-cinematic-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(51, 70, 168, 0.45);
}

.btn-hero-cinematic-secondary {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid #D9D6D0;
    color: #282E37;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: var(--font-ui);
}

.btn-hero-cinematic-secondary:hover {
    background: #FFFFFF;
    border-color: var(--accent-rust);
}

.hero-slide-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.hero-visual-art-aura {
    position: absolute;
    width: 260px;
    height: 330px;
    border-radius: 20px;
    background: var(--slide-theme, #3346A8);
    opacity: 0.18;
    filter: blur(35px);
    transform: scale(0.9);
    transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slide-visual .hero-jacket {
    width: 220px;
    height: 310px;
    transform: scale(0.9) rotate(-3deg) translateY(10px);
    opacity: 0;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18), -6px 0 16px rgba(0, 0, 0, 0.15) inset;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.15s, opacity 1s ease 0.15s;
}

.hero-slide-item.active .hero-slide-visual .hero-jacket {
    transform: scale(1) rotate(0deg) translateY(0);
    opacity: 1;
}

.hero-slide-item.active .hero-visual-art-aura {
    transform: scale(1.08);
    opacity: 0.28;
}

.hero-thumb-queue {
    position: absolute;
    bottom: 24px;
    right: 50px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-thumb-card {
    width: 62px;
    height: 84px;
    border-radius: 8px;
    background: var(--thumb-bg, var(--juf-header-footer));
    cursor: pointer;
    border: 2px solid transparent;
    padding: 8px 6px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 6px 14px rgba(59, 66, 86, 0.16);
    transform: translateY(0) scale(0.92);
    opacity: 0.6;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    animation: juf-hero-book-arrive .62s cubic-bezier(.2,.8,.2,1) backwards;
    animation-delay: calc(240ms + (var(--thumb-order, 0) * 115ms));
}

.hero-thumb-card:hover {
    opacity: 0.9;
    transform: translateY(-3px) scale(0.98);
}

.hero-thumb-card.current-thumb {
    border-color: var(--accent-rust);
    opacity: 1;
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 8px 20px rgba(59, 66, 86, 0.38);
}

@keyframes juf-hero-book-arrive {
    from { opacity: 0; translate: 0 30px; filter: blur(5px); }
    to { opacity: .6; translate: 0 0; filter: blur(0); }
}

@media(prefers-reduced-motion:reduce){.hero-thumb-card{animation:none}.juf-authors-hero-lead{transition:none}}

.thumb-mini-jacket span {
    font-size: 10px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-heading);
}

.hero-cinematic-arrows {
    position: absolute;
    bottom: 30px;
    left: 80px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-cinematic-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #D9D6D0;
    color: #282E37;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.hero-cinematic-arrow-btn:hover {
    background: var(--accent-rust);
    color: #FFFFFF;
    border-color: var(--accent-rust);
}

/* 3. Search Bar Row */
.search-pill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.search-input-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 999px;
    padding: 10px 20px;
    width: 340px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #D9D6D0;
}

.search-input-box input {
    border: none;
    outline: none;
    font-family: var(--font-ui-system);
    font-size: 14px;
    width: 100%;
    margin-left: 10px;
}

.search-tags-nav {
    display: flex;
    gap: 24px;
}

.search-tags-nav a {
    color: #282E37;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-ui);
}

.page-section-title {
    font-family: var(--font-heading-editorial, var(--font-heading));
    font-size: 28px;
    font-weight: 500;
    color: #282E37;
    margin-bottom: 16px;
    line-height: 1.35;
}

.sub-tabs-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sub-tab-item {
    font-size: 14px;
    font-weight: 500;
    color: #5B6376;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.25s ease;
    font-family: var(--font-ui);
}

.sub-tab-item:hover {
    color: var(--accent-rust);
    background: rgba(59, 66, 86, 0.07);
}

.sub-tab-item.active {
    color: #FFFFFF;
    background: var(--accent-rust);
    font-weight: 600;
}

/* Universal Animation Class */
.anim-card {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.25s ease;
    will-change: transform, opacity;
}

.anim-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 4. Authors Pastel Cards Slider */
.pastel-authors-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 8px;
}
.pastel-authors-slider-track::-webkit-scrollbar { display: none; }

.pastel-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: 280px;
    border-radius: 16px;
    padding: 28px 24px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pastel-card-mint { background: #E4E6EC; }
.pastel-card-peach { background: #ECEAE6; }
.pastel-card-sky { background: #E4E6EC; }
.pastel-card-coral { background: #E4E6EC; }
.pastel-card-lavender { background: #ECEAE6; }

.pastel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.pastel-card h3 {
    font-family: var(--font-heading-editorial, var(--font-heading));
    font-size: 21px;
    font-weight: 500;
    color: #282E37;
    margin-bottom: 4px;
}

.pastel-card p {
    font-size: 13px;
    color: #282E37;
    font-family: var(--font-ui-system);
    font-weight: 400;
}

/* 5. Audiobook Slider */
.audiobook-slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 4px 0 10px;
}
.audiobook-slider-track::-webkit-scrollbar { display: none; }

.audio-pill-card {
    flex: 0 0 280px;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #D9D6D0;
}

.audio-pill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.audio-cover-sq {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.audio-details { flex: 1; min-width: 0; }
.audio-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #282E37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
}
.audio-details p {
    font-size: 12px;
    color: #5B6376;
    margin-top: 2px;
    font-family: var(--font-ui-system);
}

.audio-play-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #3B4256;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 11px;
}

/* 6. Authors by Genres */
.genres-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 6px;
}
.genres-slider-track::-webkit-scrollbar { display: none; }

.genre-dark-box {
    flex: 0 0 176px;
    background: #3B4256;
    border-radius: 12px;
    padding: 22px 14px;
    text-align: center;
}

.genre-dark-box:hover {
    transform: translateY(-4px);
    background: #2C3243;
}

.genre-dark-box h4 {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
    font-family: var(--font-ui);
}

.genre-dark-box span {
    font-size: 12px;
    color: #F6F5F2;
    font-family: var(--font-ui-system);
}

/* 7. Books Showcase (5x4 Grid - 20 Books) */
.books-showcase-wrapper {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 40px 30px;
    margin-bottom: 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #D9D6D0;
}

.grid-5-col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 20px;
}

.showcase-card-item {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
}

.showcase-card-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

.showcase-card-item:hover {
    transform: translateY(-6px);
}

.juf-book-jacket {
    width: 100%;
    height: 260px;
    border-radius: 8px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border-left: 3px solid rgba(0, 0, 0, 0.25);
}

.juf-jacket-spine {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
}

.juf-jacket-genre {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2px;
    font-family: var(--font-ui);
    font-weight: 500;
}

.juf-jacket-title {
    font-family: var(--font-display-literary, var(--font-book-title));
    font-size: 18px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.25;
}

.book-under-meta {
    margin-top: 10px;
}

.book-under-title {
    font-size: 14px;
    font-weight: 600;
    color: #282E37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
}

.book-under-author {
    font-size: 12px;
    color: #5B6376;
    margin-top: 1px;
    font-family: var(--font-ui-system);
    font-weight: 500;
}

.book-rating-gold {
    color: #A8741A;
    font-size: 11px;
    margin-top: 2px;
}

.pagination-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-num-btn {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: #ECEAE6;
    color: #282E37;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: all 0.2s ease;
}

.page-num-btn.active {
    background: var(--accent-rust);
    color: #fff;
}

/* 8. New Releases (4 Columns Grid) */
.section-overline-label {
    font-size: 13px;
    color: var(--accent-rust);
    margin-bottom: 2px;
    font-weight: 600;
    font-family: var(--font-ui);
}

.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 9. Authors Round World */
.authors-premium-slider-wrapper {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 45px;
}

.authors-circle-slider-track {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 14px 10px;
}
.authors-circle-slider-track::-webkit-scrollbar { display: none; }

.author-circle-unit {
    flex: 0 0 110px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.author-circle-unit:hover {
    transform: translateY(-4px);
}

.author-circle-disc {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 3px solid #FFFFFF;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.author-circle-unit:hover .author-circle-disc {
    border-color: var(--accent-rust);
    box-shadow: 0 8px 22px rgba(59, 66, 86, 0.25);
}

.author-initial-char {
    color: #FFFFFF;
    font-size: 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}

.author-circle-name {
    font-size: 14px;
    font-weight: 600;
    color: #282E37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-ui-system);
}

.author-circle-title {
    font-size: 11px;
    color: #5B6376;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-ui-system);
    font-weight: 400;
}

.author-nav-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--juf-surface-muted);
    color: #282E37;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.author-nav-arrow:hover {
    background: var(--accent-rust);
    color: #FFFFFF;
    border-color: var(--accent-rust);
}

.author-nav-arrow.arrow-left { left: 0; }
.author-nav-arrow.arrow-right { right: 0; }

/* 10. Testimonials */
.testimonials-slider-box {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testimonial-card-white {
    flex: 0 0 calc(50% - 10px);
    background: #FFFFFF;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #D9D6D0;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--accent-rust);
    line-height: 1;
    margin-bottom: 6px;
}

.testimonial-quote-text {
    font-size: 14px;
    color: #282E37;
    line-height: 1.7;
    margin-bottom: 18px;
    font-family: var(--font-ui-system);
    font-weight: 400;
}

.testimonial-user-flex {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-initial {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ECEAE6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #282E37;
    font-family: var(--font-ui);
}

/* 11. Editorial Newsletter */
.newsletter-premium-wrapper {
    position: relative;
    background: #FFFFFF;
    border-radius: 28px;
    padding: 56px 36px;
    text-align: center;
    max-width: 780px;
    margin: 40px auto 60px;
    box-shadow: 0 10px 35px rgba(40, 46, 55, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #D9D6D0;
    overflow: hidden;
}

.newsletter-decor-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.newsletter-decor-blob.blob-1 {
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: rgba(246, 245, 242, 0.7);
}

.newsletter-decor-blob.blob-2 {
    bottom: -50px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(40, 46, 55, 0.6);
}

.newsletter-inner-content {
    position: relative;
    z-index: 2;
}

.newsletter-top-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ECEAE6;
    border: 1px solid #D9D6D0;
    color: var(--accent-rust);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
    font-family: var(--font-ui);
}

.newsletter-heading {
    font-family: var(--font-heading-editorial, var(--font-heading));
    font-size: 28px;
    font-weight: 500;
    color: #282E37;
    line-height: 1.3;
    margin-bottom: 10px;
}

.newsletter-desc {
    font-size: 14px;
    color: #5B6376;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.68;
    font-family: var(--font-ui-system);
    font-weight: 400;
}

.newsletter-luxury-pill {
    display: flex;
    align-items: center;
    background: #F6F5F2;
    border: 1.5px solid #D9D6D0;
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.newsletter-luxury-pill:focus-within {
    border-color: var(--accent-rust);
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(59, 66, 86, 0.12);
}

.pill-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.pill-mail-icon {
    color: #5B6376;
    flex-shrink: 0;
}

.newsletter-luxury-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-ui-system);
    font-size: 14px;
    color: #282E37;
}

.newsletter-luxury-input::placeholder {
    color: #5B6376;
}

.newsletter-luxury-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-rust), #2C3243);
    color: #FFFFFF;
    border: none;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-ui);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 66, 86, 0.28);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.newsletter-luxury-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(59, 66, 86, 0.4);
}

.newsletter-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: #5B6376;
    margin-top: 20px;
    font-family: var(--font-ui-system);
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.trust-divider {
    color: #F6F5F2;
}

.newsletter-alert-box {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    font-family: var(--font-ui-system);
}

/* 12. Footer */
.juf-footer-cream {
    background-color: var(--bg-cream);
    padding: 50px 0 25px;
    margin-top: 40px;
    border-top: 1px solid var(--juf-light-surface);
}

.footer-grid-cream {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 35px;
}

.footer-col-cream h4 {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 500;
    color: #282E37;
    margin-bottom: 14px;
}

.footer-tagline-text {
    font-size: 13px;
    color: #5B6376;
    margin-bottom: 16px;
    line-height: 1.6;
    font-family: var(--font-ui-system);
}

.footer-col-cream ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-cream ul li {
    margin-bottom: 8px;
}

.footer-col-cream ul li a {
    color: #282E37;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    font-family: var(--font-ui);
}

.footer-col-cream ul li a:hover {
    color: var(--accent-rust);
}

.footer-contact-mail {
    font-size: 13px;
    color: #282E37;
    font-family: var(--font-ui-system);
}

.footer-copyright-cream {
    text-align: center;
    font-size: 12px;
    color: #5B6376;
    padding-top: 20px;
    border-top: 1px solid var(--juf-light-surface);
    font-family: var(--font-ui-system);
}

.slider-nav-ctrl {
    display: flex;
    gap: 8px;
}

.slider-ctrl-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--juf-surface-muted);
    color: #282E37;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s ease;
}

.slider-ctrl-btn:hover {
    background: var(--accent-rust);
    color: #fff;
    border-color: var(--accent-rust);
}
/* ==========================================================================
   Slider Layout Fixes & Title Headers
   ========================================================================== */
.section-title-wrap-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

/* Horizontal Scroll Tracks */
.pastel-authors-slider-track,
.audiobook-slider-track,
.genres-slider-track {
    display: flex !important;
    gap: 20px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    padding: 6px 2px 16px !important;
    width: 100% !important;
}

.pastel-authors-slider-track::-webkit-scrollbar,
.audiobook-slider-track::-webkit-scrollbar,
.genres-slider-track::-webkit-scrollbar {
    display: none !important;
}

/* Slide Cards Fixed Dimensions to Force Overflow */
.pastel-card {
    flex: 0 0 340px !important;
    min-width: 340px !important;
}

.audio-pill-card {
    flex: 0 0 300px !important;
    min-width: 300px !important;
}

.genre-dark-box {
    flex: 0 0 176px !important;
    min-width: 176px !important;
}

/* Navigation Arrow Controls */
.slider-nav-ctrl {
    display: inline-flex !important;
    gap: 8px !important;
}

.slider-ctrl-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 1px solid var(--juf-surface-muted) !important;
    color: #282E37 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}

.slider-ctrl-btn:hover {
    background: var(--accent-rust) !important;
    color: #FFFFFF !important;
    border-color: var(--accent-rust) !important;
    transform: scale(1.06) !important;
}

/* Dynamic Smooth Fade & Reveal Animation */
.anim-card {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.25s ease;
    will-change: transform, opacity;
}

.anim-card.in-view {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}
/* Generated / uploaded author identity */
.juf-author-art-avatar,
.juf-author-circle-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.juf-author-circle-img { object-fit: cover; display: block; }
.juf-author-art-avatar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.juf-author-art-avatar .author-vector-bg {
    position: absolute;
    width: 72%;
    height: 72%;
    right: -18%;
    bottom: -18%;
    opacity: .16;
}
.juf-author-art-avatar .author-vector-bg svg { width: 100%; height: 100%; }
.juf-author-art-avatar .author-art-char {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}
.juf-author-art-avatar .author-art-ring {
    position: absolute;
    inset: 9%;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
}

/* =========================================================
   JUFbook Audiobook Hub + Sticky Player
   ========================================================= */
.audio-hub-hero {
    margin: 28px 0 34px;
    padding: 34px 36px;
    border: 1px solid #D9D6D0;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--juf-surface-paper) 0%, #ECEAE6 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}
.audio-hub-hero p { max-width: 700px; margin-top: 8px; color: var(--text-muted); font-size: 15.5px; }
.audio-hub-count {
    min-width: 120px;
    min-height: 120px;
    border-radius: 50%;
    background: #3B4256;
    color: #FFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}
.audio-hub-count span { margin-top: 8px; font-family: var(--font-ui); font-size: 12px; font-weight: 500; color: #F6F5F2; }
.audio-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 70px; }
.audio-hub-card {
    background: #FFF;
    border: 1px solid var(--juf-light-surface);
    border-radius: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    box-shadow: 0 8px 26px rgba(40, 46, 55, 0.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.audio-hub-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(40, 46, 55, 0.09); border-color: #D9D6D0; }
.audio-hub-cover {
    position: relative;
    min-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    padding: 18px 16px;
    text-decoration: none;
    color: #FFF;
    background: var(--audio-cover, #3346A8);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}
.audio-hub-cover::before,
.audio-detail-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 16%, rgba(255, 255, 255, .18), transparent 28%),
        linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, .06) 39% 40%, transparent 41% 100%);
    z-index: -1;
}
.audio-hub-cover::after,
.audio-detail-cover::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 13px;
    width: 1px;
    background: rgba(255, 255, 255, .2);
}
.audio-hub-cover-mark { position: absolute; top: 16px; right: 17px; font-family: var(--font-heading); font-size: 54px; opacity: .17; line-height: 1; }
.audio-hub-cover-genre { font-size: 10px; font-weight: 700; opacity: .78; margin-bottom: 8px; }
.audio-hub-cover-title { font-family: var(--font-display-literary, var(--font-book-title)); font-size: 20px; font-weight: 400; line-height: 1.25; padding-right: 25px; }
.audio-hub-cover-play { position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%; background: #FFF; color: #282E37; display: grid; place-items: center; font-size: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.audio-hub-card-body { min-width: 0; display: flex; flex-direction: column; }
.audio-hub-card-body h2 { font-size: 21px; line-height: 1.25; margin: 4px 0 3px; }
.audio-hub-card-body h2 a { color: var(--text-main); text-decoration: none; }
.audio-hub-author { color: var(--accent-rust); font-weight: 600; font-size: 13.5px; }
.audio-hub-desc { margin-top: 13px; color: var(--text-muted); font-size: 13.5px; line-height: 1.65; }
.audio-hub-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 16px; }
.audio-hub-meta span { background: #ECEAE6; border: 1px solid #D9D6D0; border-radius: 999px; padding: 5px 9px; font-size: 11.5px; color: #5B6376; white-space: nowrap; }
.audio-hub-listen-btn { margin-top: 13px; display: inline-flex; justify-content: space-between; align-items: center; gap: 12px; color: #FFF; background: #3B4256; border-radius: 11px; padding: 10px 13px; font-size: 13px; font-weight: 600; text-decoration: none; }
.audio-empty-state { margin: 45px auto 80px; max-width: 620px; padding: 46px 24px; text-align: center; background: #FFF; border: 1px solid var(--juf-light-surface); border-radius: 22px; color: var(--text-muted); }
.audio-empty-state h2 { color: var(--text-main); margin-bottom: 7px; font-size: 21px; }
.audio-empty-state.compact { margin: 0; max-width: none; padding: 28px; }
.audio-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 50%; background: #ECEAE6; color: var(--accent-rust); font-size: 24px; }

.audio-detail-page { padding-bottom: 150px; }
.audio-detail-hero {
    margin: 28px 0 46px;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 38px;
    background: #FFF;
    border: 1px solid var(--juf-light-surface);
    border-radius: 28px;
}
.audio-detail-cover {
    position: relative;
    min-height: 380px;
    padding: 28px 25px;
    border-radius: 20px;
    background: var(--audio-cover, #3346A8);
    color: #FFF;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 20px 42px rgba(40, 46, 55, .2);
    isolation: isolate;
}
.audio-detail-cover-mark { position: absolute; right: 24px; top: 24px; opacity: .17; font-family: var(--font-heading); font-size: 88px; line-height: 1; }
.audio-detail-cover-genre { font-size: 11px; opacity: .78; margin-bottom: 12px; }
.audio-detail-cover strong { font-family: var(--font-heading); font-size: 31px; line-height: 1.25; }
.audio-detail-cover small { margin-top: 12px; font-size: 13px; opacity: .78; }
.audio-detail-info .page-section-title { margin: 5px 0 8px; font-size: clamp(30px, 5vw, 48px); }
.audio-detail-author { color: var(--text-muted); font-size: 16px; }
.audio-detail-author a { color: var(--accent-rust); text-decoration: none; font-weight: 600; }
.audio-detail-desc { margin-top: 18px; max-width: 680px; color: #282E37; line-height: 1.8; }
.audio-detail-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 25px; }
.audio-detail-stats span { border: 1px solid #D9D6D0; background: #F6F5F2; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; color: #282E37; }
.audio-detail-stats b { color: var(--accent-rust); margin-right: 3px; }
.audio-primary-play { border: 0; background: var(--accent-rust); color: #FFF; border-radius: 999px; padding: 12px 24px; font: 600 14px var(--font-ui); cursor: pointer; box-shadow: 0 8px 18px rgba(51, 70, 168, .22); }
.audio-read-link { display: inline-block; margin-left: 14px; color: var(--text-main); text-decoration: none; font-size: 13px; font-weight: 600; }
.audio-unavailable-note { display: inline-block; padding: 11px 14px; border-radius: 10px; background: #ECEAE6; color: var(--text-muted); }
.audio-playlist-section { max-width: 900px; margin: 0 auto 55px; }
.audio-playlist-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 20px; }
.audio-playlist-heading > span { color: var(--text-muted); font-size: 13px; }
.audio-playlist { list-style: none; background: #FFF; border: 1px solid var(--juf-light-surface); border-radius: 20px; overflow: hidden; }
.audio-playlist li + li { border-top: 1px solid #D9D6D0; }
.audio-track-row { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 44px minmax(0,1fr) 42px; align-items: center; gap: 13px; padding: 15px 18px; text-align: left; cursor: pointer; font-family: var(--font-ui); transition: background .2s ease; }
.audio-track-row:hover { background: var(--bg-cream); }
.audio-track-row.is-active { background: #ECEAE6; }
.audio-track-number { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #ECEAE6; color: #5B6376; font-size: 12px; font-weight: 700; }
.audio-track-row.is-active .audio-track-number { background: var(--accent-rust); color: #FFF; }
.audio-track-copy { min-width: 0; display: flex; flex-direction: column; }
.audio-track-copy strong { font-family: var(--font-heading); font-size: 16px; color: var(--text-main); }
.audio-track-copy small { color: var(--text-muted); margin-top: 2px; font-size: 11.5px; }
.audio-track-action { justify-self: end; color: var(--accent-rust); font-size: 13px; }

.juf-sticky-audio-player {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 16px;
    z-index: 1200;
    background: rgba(40, 46, 55, .97);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    backdrop-filter: blur(14px);
}
.juf-player-inner { min-height: 92px; max-width: 1220px; margin: 0 auto; padding: 12px 18px; display: grid; grid-template-columns: minmax(190px, .8fr) minmax(320px, 1.6fr) minmax(150px, .65fr); gap: 24px; align-items: center; }
.juf-player-track-info { min-width: 0; display: flex; align-items: center; gap: 12px; }
.juf-player-cover-mini { flex: 0 0 52px; height: 52px; border-radius: 11px; background: var(--audio-cover, #3346A8); display: grid; place-items: center; font-family: var(--font-heading); font-size: 22px; }
.juf-player-track-info > div:last-child { min-width: 0; display: flex; flex-direction: column; }
.juf-player-track-info strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-heading); font-size: 14.5px; }
.juf-player-track-info small { margin-top: 2px; color: #5B6376; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11.5px; }
.juf-player-center { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.juf-player-controls { display: flex; justify-content: center; align-items: center; gap: 10px; }
.juf-player-controls button,
.juf-player-tools button { border: 0; color: #FFF; background: transparent; cursor: pointer; min-width: 34px; min-height: 34px; border-radius: 50%; }
.juf-player-controls button:hover,
.juf-player-tools button:hover { background: rgba(255, 255, 255, .08); }
.juf-player-controls .juf-main-play { width: 42px; height: 42px; background: var(--accent-rust); box-shadow: 0 5px 14px rgba(51, 70, 168, .32); }
.juf-player-timeline { display: grid; grid-template-columns: 40px minmax(0,1fr) 40px; align-items: center; gap: 8px; color: #5B6376; font-size: 10.5px; }
.juf-player-timeline input[type="range"] { width: 100%; accent-color: var(--accent-rust); cursor: pointer; }
.juf-player-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.juf-speed-label { display: flex; align-items: center; gap: 7px; color: #5B6376; font-size: 11px; }
.juf-speed-label select { border: 1px solid #3B4256; background: #3B4256; color: #FFF; border-radius: 8px; padding: 5px 7px; font-family: var(--font-ui); }

@media (max-width: 960px) {
    .audio-hub-grid { grid-template-columns: 1fr; }
    .audio-detail-hero { grid-template-columns: 230px minmax(0,1fr); gap: 30px; padding: 28px; }
    .audio-detail-cover { min-height: 320px; }
    .juf-player-inner { grid-template-columns: minmax(160px,.8fr) minmax(280px,1.4fr); }
    .juf-player-tools { display: none; }
}
@media (max-width: 700px) {
    .audio-hub-hero { padding: 24px 20px; align-items: flex-start; }
    .audio-hub-count { min-width: 86px; min-height: 86px; font-size: 25px; }
    .audio-hub-grid { gap: 16px; }
    .audio-hub-card { grid-template-columns: 112px minmax(0,1fr); gap: 15px; padding: 13px; border-radius: 17px; }
    .audio-hub-cover { min-height: 166px; padding: 13px 11px; }
    .audio-hub-cover-title { font-size: 17px; padding-right: 0; }
    .audio-hub-cover-play { width: 29px; height: 29px; }
    .audio-hub-card-body h2 { font-size: 17px; }
    .audio-hub-desc { display: none; }
    .audio-hub-meta { margin-top: 10px; padding-top: 0; }
    .audio-hub-meta span:nth-child(n+3) { display: none; }
    .audio-hub-listen-btn { margin-top: 9px; padding: 8px 10px; }
    .audio-detail-page { padding-bottom: 190px; }
    .audio-detail-hero { grid-template-columns: 1fr; padding: 20px; gap: 26px; }
    .audio-detail-cover { min-height: 330px; max-width: 250px; width: 100%; margin: 0 auto; }
    .audio-primary-play { width: 100%; }
    .audio-read-link { display: block; margin: 13px 0 0; text-align: center; }
    .audio-track-row { grid-template-columns: 38px minmax(0,1fr) 30px; padding: 13px 12px; }
    .juf-sticky-audio-player { left: 8px; right: 8px; bottom: 8px; border-radius: 16px; }
    .juf-player-inner { min-height: 132px; grid-template-columns: 1fr; gap: 7px; padding: 10px 12px; }
    .juf-player-track-info { display: none; }
    .juf-player-controls { gap: 18px; }
    .juf-player-timeline { grid-template-columns: 34px minmax(0,1fr) 34px; }
}
@media (max-width: 480px) {
    .audio-hub-hero { flex-direction: column; }
    .audio-hub-count { border-radius: 14px; min-width: 100%; min-height: auto; padding: 12px; flex-direction: row; gap: 8px; }
    .audio-hub-count span { margin-top: 0; }
    .audio-hub-card { grid-template-columns: 92px minmax(0,1fr); }
    .audio-hub-cover { min-height: 140px; }
    .audio-hub-cover-mark, .audio-hub-cover-genre { display: none; }
    .audio-hub-cover-title { font-size: 15px; }
}

/* V6: accessibility, responsive navigation, contact form */
.juf-skip-link{position:fixed;left:16px;top:10px;z-index:10000;transform:translateY(-150%);background:#3B4256;color:#fff;padding:10px 14px;border-radius:8px;text-decoration:none;font-weight:700;transition:transform .2s ease}
.juf-skip-link:focus{transform:translateY(0)}
.juf-mobile-menu-btn{display:none;width:44px;height:44px;border:1px solid #D9D6D0;background:#fff;border-radius:10px;align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer}
.juf-mobile-menu-btn span{display:block;width:20px;height:2px;background:var(--text-main);transition:transform .2s ease,opacity .2s ease}
.juf-mobile-menu-btn[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.juf-mobile-menu-btn[aria-expanded="true"] span:nth-child(2){opacity:0}
.juf-mobile-menu-btn[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(91, 99, 118, .35);outline-offset:3px}
.footer-contact-mail a{color:inherit;text-decoration:none}.footer-contact-mail a:hover{text-decoration:underline}

.contact-page{max-width:940px;margin:44px auto 78px}
.contact-hero{text-align:center;margin-bottom:28px}.contact-hero p{color:var(--text-muted);max-width:650px;margin:8px auto 0}
.contact-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr);gap:24px;align-items:start}
.contact-card,.contact-info-card{background:#fff;border:1px solid var(--juf-surface-muted);border-radius:20px;box-shadow:0 9px 30px rgba(40, 46, 55, .04)}
.contact-card{padding:30px}.contact-info-card{padding:25px;position:sticky;top:20px}
.contact-field{margin-bottom:17px}.contact-field label{display:block;margin-bottom:7px;font-size:13px;font-weight:700;color:#282E37}
.contact-field input,.contact-field textarea,.contact-field select{width:100%;padding:12px 14px;border:1px solid #D9D6D0;border-radius:10px;background:#ECEAE6;color:var(--text-main);font:500 15px var(--font-ui);transition:border-color .2s ease,box-shadow .2s ease}
.contact-field textarea{min-height:160px;resize:vertical;line-height:1.65}.contact-field input:focus,.contact-field textarea:focus,.contact-field select:focus{border-color:#2C3243;box-shadow:0 0 0 4px rgba(59, 66, 86, .08);outline:0}
.contact-submit{width:100%;border:0;cursor:pointer;justify-content:center}.contact-alert{padding:12px 14px;border-radius:10px;margin-bottom:18px;font-size:14px}.contact-alert.success{background:#E4E6EC;color:#2E7A4F}.contact-alert.error{background:#F6F5F2;color:#B0392B}
.contact-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.contact-info-card h2{font-size:20px;margin-bottom:12px}.contact-info-list{list-style:none;display:grid;gap:12px}.contact-info-list li{padding:12px;border-radius:12px;background:#ECEAE6;color:var(--text-muted);font-size:13.5px}.contact-info-list strong{display:block;color:var(--text-main);margin-bottom:2px}

@media (max-width: 820px){
  .juf-header{padding-top:12px}.juf-header-wrap{position:relative;flex-wrap:wrap}.juf-mobile-menu-btn{display:flex;margin-left:auto}.juf-nav{display:none;width:100%;margin-top:12px;padding:14px;background:#fff;border:1px solid var(--juf-surface-muted);border-radius:14px;box-shadow:0 12px 30px rgba(40, 46, 55, .08);flex-direction:column;align-items:stretch;gap:4px}.juf-nav.is-open{display:flex}.juf-nav a{padding:10px 12px;border-radius:8px}.juf-nav a:hover{background:#ECEAE6}.juf-auth-btn{text-align:center;margin-top:4px}.juf-nav form{width:100%}.juf-nav form .juf-auth-btn{width:100%;margin-top:4px}.juf-brand-logo-wrap{height:48px}.juf-site-logo{height:86px}
  .contact-layout{grid-template-columns:1fr}.contact-info-card{position:static}
}
@media (max-width: 560px){.container{padding-left:14px;padding-right:14px}.contact-page{margin-top:28px}.contact-card,.contact-info-card{padding:20px;border-radius:16px}}
@media (prefers-reduced-motion: reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.hero-slide-item{transition:none!important}}


/* =========================================================
   V8: Live search, category archive & public responsive pass
   ========================================================= */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.juf-live-search{position:relative}
.search-input-box.juf-live-search{padding-right:8px}
.search-input-box.juf-live-search input{min-width:0}
.search-submit-btn{border:0;background:var(--accent-rust);color:#fff;border-radius:999px;padding:8px 15px;font:600 12.5px var(--font-ui);cursor:pointer;flex:0 0 auto}
.search-submit-btn:hover{filter:brightness(.94)}
.juf-search-suggestions{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:80;background:#fff;border:1px solid #D9D6D0;border-radius:14px;box-shadow:0 16px 40px rgba(40, 46, 55, .12);overflow:hidden;text-align:left}
.juf-search-suggestions[hidden]{display:none!important}
.juf-search-suggestion{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;color:var(--text-main);text-decoration:none;border-bottom:1px solid #D9D6D0;font-size:13.5px}
.juf-search-suggestion:last-child{border-bottom:0}
.juf-search-suggestion:hover,.juf-search-suggestion.is-active{background:#ECEAE6}
.juf-search-suggestion strong{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.juf-search-suggestion span{flex:0 0 auto;color:var(--accent-rust);font-size:11px;font-weight:700;background:#ECEAE6;border-radius:999px;padding:3px 7px}
.juf-search-empty{padding:13px 14px;color:var(--text-muted);font-size:13px}

.genre-dark-box{position:relative;text-decoration:none;overflow:hidden;isolation:isolate;background:linear-gradient(145deg,#3B4256,#3B4256)}
.genre-dark-box::before{content:"";position:absolute;inset:auto -35px -55px auto;width:115px;height:115px;border-radius:50%;background:var(--genre-theme,#3B4256);opacity:.30;filter:blur(4px);z-index:-1;transition:transform .3s ease,opacity .3s ease}
.genre-dark-box:hover::before{transform:scale(1.15);opacity:.42}

.category-index-hero,.category-archive-hero{margin:30px 0 30px;padding:34px;border:1px solid var(--juf-surface-muted);border-radius:24px;background:linear-gradient(135deg,#ECEAE6,#ECEAE6)}
.category-index-hero p,.category-archive-hero p{color:var(--text-muted);max-width:700px;margin-top:8px}
.category-index-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:70px}
.category-index-card{position:relative;overflow:hidden;isolation:isolate;min-height:180px;border-radius:20px;padding:24px;background:#3B4256;color:#fff;text-decoration:none;display:flex;flex-direction:column;justify-content:flex-end;box-shadow:0 8px 24px rgba(40, 46, 55, .08);transition:transform .25s ease,box-shadow .25s ease}
.category-index-card::before{content:"";position:absolute;width:180px;height:180px;border-radius:50%;right:-45px;top:-55px;background:var(--category-theme,#3B4256);opacity:.55;filter:blur(8px);z-index:-1}
.category-index-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(40, 46, 55, .14)}
.category-card-icon{position:absolute;left:24px;top:22px;width:38px;height:38px;display:grid;place-items:center;border:1px solid rgba(255, 255, 255, .2);border-radius:12px;background:rgba(255, 255, 255, .08);font-size:18px}.category-index-card h2{font:500 24px/1.25 var(--font-heading-editorial, var(--font-heading));margin:0 0 5px;color:#fff}
.category-index-card p{margin:0;color:#F6F5F2;font-size:13px}
.category-index-card .category-card-count{display:inline-flex;align-self:flex-start;margin-top:15px;border:1px solid rgba(255, 255, 255, .18);background:rgba(255, 255, 255, .08);padding:5px 9px;border-radius:999px;font-size:11.5px}
.category-archive-hero{display:flex;justify-content:space-between;align-items:center;gap:24px}
.category-archive-disc{width:108px;height:108px;flex:0 0 108px;border-radius:50%;background:var(--category-theme,#3346A8);display:grid;place-items:center;color:#fff;font:700 34px var(--font-heading);box-shadow:0 12px 30px rgba(40, 46, 55, .16)}
.category-archive-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
.category-archive-meta span{background:#fff;border:1px solid #D9D6D0;border-radius:999px;padding:6px 10px;color:var(--text-muted);font-size:12px}
.category-empty{margin:20px 0 70px;padding:44px 24px;text-align:center;border:1px solid var(--juf-surface-muted);background:#fff;border-radius:20px;color:var(--text-muted)}
.category-pagination{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:32px 0 70px}
.category-pagination a,.category-pagination span{min-width:38px;height:38px;padding:0 11px;border-radius:9px;border:1px solid #D9D6D0;background:#fff;color:var(--text-main);text-decoration:none;display:inline-grid;place-items:center;font-weight:600;font-size:13px}
.category-pagination .active{background:var(--accent-rust);border-color:var(--accent-rust);color:#fff}

@media (max-width:1100px){
    .hero-slide-item{padding:48px 54px;grid-template-columns:1.1fr .9fr}
    .hero-slide-title{font-size:38px}
    .grid-5-col{grid-template-columns:repeat(4,minmax(0,1fr))}
    .grid-4-col{grid-template-columns:repeat(3,minmax(0,1fr))}
    .category-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:820px){
    .juf-header{padding-top:12px}
    .juf-site-logo{height:82px}
    .hero-cinematic-stage,.hero-cinematic-slider{height:auto;min-height:620px}
    .hero-slide-item{padding:38px 32px 110px;grid-template-columns:1fr;gap:24px;align-content:center}
    .hero-slide-info{max-width:none;text-align:center}
    .hero-slide-actions{justify-content:center}
    .hero-slide-visual{order:-1}
    .hero-slide-visual .hero-jacket{width:170px;height:238px}
    .hero-thumb-queue{left:50%;right:auto;bottom:18px;transform:translateX(-50%)}
    .hero-cinematic-arrows{inset:auto 18px 18px auto}
    .search-pill-row{align-items:stretch;flex-direction:column;gap:14px}
    .search-input-box{width:100%}
    .search-tags-nav{gap:10px;overflow-x:auto;padding-bottom:3px}
    .search-tags-nav a{white-space:nowrap;background:#ECEAE6;border-radius:999px;padding:6px 11px}
    .section-title-wrap-flex{align-items:center;gap:12px}
    .grid-5-col{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px 16px}
    .grid-4-col{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px}
    .books-showcase-wrapper{padding:28px 20px;border-radius:20px}
    .juf-book-jacket{height:235px}
    .authors-premium-slider-wrapper{padding:0 38px}
    .testimonial-card-white{flex-basis:100%}
    .newsletter-premium-wrapper{padding:38px 24px}
    .footer-grid-cream{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}
    .category-archive-hero{align-items:flex-start}
}
@media (max-width:600px){
    .container{padding-left:14px;padding-right:14px}
    .hero-cinematic-stage{margin-top:10px;border-radius:20px;min-height:570px}
    .hero-cinematic-slider{min-height:570px}
    .hero-slide-item{padding:28px 18px 94px}
    .hero-slide-visual .hero-jacket{width:138px;height:194px}
    .hero-slide-title{font-size:30px}
    .hero-slide-desc{font-size:13px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
    .hero-slide-actions{gap:8px;flex-wrap:wrap}
    .btn-hero-cinematic-primary,.btn-hero-cinematic-secondary{padding:10px 17px;font-size:12.5px}
    .hero-thumb-card{width:44px;height:60px;padding:5px 4px}
    .hero-thumb-card:nth-child(n+5){display:none}
    .hero-cinematic-arrows{display:none}
    .page-section-title{font-size:25px}
    .pastel-card{flex-basis:280px!important;min-width:280px!important;padding:22px 18px}
    .audio-pill-card{flex-basis:270px!important;min-width:270px!important}
    .genre-dark-box{flex-basis:158px!important;min-width:158px!important;padding:19px 12px}
    .grid-5-col{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
    .grid-4-col{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
    .books-showcase-wrapper{padding:22px 14px;margin-left:-2px;margin-right:-2px}
    .juf-book-jacket{height:218px;padding:15px 12px}
    .juf-jacket-title{font-size:16px}
    .book-under-title{font-size:13px}
    .authors-premium-slider-wrapper{padding:0 28px}
    .author-nav-arrow{width:30px;height:30px}
    .newsletter-luxury-pill{border-radius:16px;padding:7px;display:grid;grid-template-columns:1fr}
    .pill-input-wrap{padding:4px 8px}
    .newsletter-luxury-btn{justify-content:center;width:100%}
    .footer-grid-cream{grid-template-columns:1fr}
    .category-index-hero,.category-archive-hero{padding:24px 20px;border-radius:18px}
    .category-index-grid{grid-template-columns:1fr;gap:14px}
    .category-index-card{min-height:155px;padding:20px}
    .category-archive-hero{flex-direction:column}
    .category-archive-disc{width:86px;height:86px;flex-basis:86px;font-size:28px}
}
@media (max-width:390px){
    .grid-5-col,.grid-4-col{gap:16px 9px}
    .juf-book-jacket{height:195px}
    .juf-jacket-title{font-size:15px}
    .hero-slide-title{font-size:27px}
}

/* V8: book-details mobile consistency */
@media(max-width:700px){
    .book-details-page{margin-top:22px!important;margin-bottom:48px!important}
    .book-details-hero{padding:24px 18px!important;gap:26px!important;border-radius:18px!important}
    .book-details-cover{flex:0 0 190px!important;max-width:190px!important;margin:0 auto}
    .book-details-info{min-width:0!important;flex-basis:100%!important;text-align:center}
    .book-details-meta{justify-content:center!important;flex-wrap:wrap}
    .book-details-info>div[style*="display:flex"]{justify-content:center}
    .book-details-lower{margin-top:34px!important}
    .book-details-lower>div{border-radius:14px!important}
    .book-details-lower li a{padding:14px 15px!important;gap:12px;align-items:flex-start}
    .review-fields-grid{grid-template-columns:1fr!important}
}
@media(max-width:430px){
    .book-details-cover{flex-basis:165px!important;max-width:165px!important}
    .book-details-hero{padding:20px 14px!important}
    .book-details-lower>div:last-child{padding:20px!important}
    .juf-live-search:not(.search-input-box){flex-direction:column!important}
    .juf-live-search:not(.search-input-box) .btn-hero-cinematic-primary{width:100%}
}

/* V9 — Community rating and approved review experience */
.book-community-rating-pill{
    display:inline-flex;align-items:center;gap:4px;background:#ECEAE6;color:#A8741A;
    border:1px solid #D9D6D0;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:500;
}
.book-community-rating-pill small{font-size:11px;color:#5B6376;font-weight:500}
.book-community-panel{
    margin:0 0 32px;background:#fff;border:1px solid #D9D6D0;border-radius:18px;padding:26px;
    display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);gap:28px;align-items:center;
}
.book-community-summary{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:center}
.book-community-score{display:flex;flex-direction:column;gap:5px;align-items:flex-start;color:var(--text-muted);font-size:12px}
.book-community-score-number{font-family:var(--font-heading);font-size:46px;line-height:1;color:#282E37;font-weight:800}
.book-community-score-stars{letter-spacing:3px;color:#A8741A;font-size:17px}
.book-rating-distribution{display:grid;gap:7px}
.rating-distribution-row{display:grid;grid-template-columns:28px minmax(80px,1fr) 34px;gap:8px;align-items:center;font-size:11px;color:var(--text-muted)}
.rating-distribution-track{height:7px;background:#ECEAE6;border-radius:999px;overflow:hidden;display:block}
.rating-distribution-track>span{display:block;height:100%;background:#A8741A;border-radius:inherit}
.book-rating-action{border-left:1px solid var(--juf-light-surface);padding-left:28px}
.book-rating-action h3{font-family:var(--font-heading);font-size:20px;margin:0 0 9px;color:#282E37}
.book-community-message{margin:0 0 10px;font-size:12px;color:var(--accent-rust);font-weight:500}
.reader-star-form{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.reader-star-input{display:inline-flex;flex-direction:row-reverse;gap:4px}
.reader-star-input input{position:absolute;opacity:0;pointer-events:none}
.reader-star-input label{font-size:30px;line-height:1;color:#F6F5F2;cursor:pointer;transition:transform .15s ease,color .15s ease}
.reader-star-input label:hover,.reader-star-input label:hover~label,.reader-star-input input:checked~label{color:#A8741A}
.reader-star-input label:hover{transform:translateY(-1px) scale(1.05)}
.reader-star-input input:focus-visible+label{outline:2px solid var(--accent-rust);outline-offset:3px;border-radius:4px}
.reader-rating-submit{padding:9px 14px!important;cursor:pointer;font-size:12px}
.book-community-login-note{font-size:13px;color:#5B6376;margin:0}
.book-community-login-note a{color:var(--accent-rust);font-weight:600}
.approved-reader-reviews{margin:0 0 32px}
.approved-reviews-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}
.approved-reviews-heading .page-section-title{margin:3px 0 0;font-size:26px}
.approved-reviews-heading>span{font-size:12px;color:var(--text-muted);background:#ECEAE6;border-radius:999px;padding:6px 10px;white-space:nowrap}
.approved-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.approved-review-card{background:#fff;border:1px solid #D9D6D0;border-radius:14px;padding:18px}
.approved-review-card p{margin:10px 0 0;line-height:1.8;color:#282E37;font-size:14px}
.approved-review-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11.5px;color:#5B6376}
.approved-review-meta strong{font-size:13px;color:var(--text-main)}
.approved-review-meta time{margin-left:auto}
.approved-review-empty{background:#F6F5F2;border:1px dashed #D9D6D0;border-radius:14px;padding:22px;text-align:center;color:#5B6376;font-size:13px}
@media(max-width:760px){
    .book-community-panel{grid-template-columns:1fr;padding:20px;gap:20px}
    .book-rating-action{border-left:0;border-top:1px solid var(--juf-light-surface);padding-left:0;padding-top:20px}
    .approved-review-list{grid-template-columns:1fr}
}
@media(max-width:480px){
    .book-community-summary{grid-template-columns:1fr;gap:15px}
    .book-community-score{align-items:center;text-align:center}
    .reader-star-form{align-items:flex-start;flex-direction:column}
    .reader-star-input label{font-size:34px}
    .approved-reviews-heading{align-items:flex-start}
}

/* V11 — reader notification centre */
.juf-notification-link{position:relative;display:inline-flex!important;align-items:center;gap:6px}
.juf-notification-badge{display:inline-flex;min-width:19px;height:19px;padding:0 5px;border-radius:999px;align-items:center;justify-content:center;background:#3B4256;color:#fff;font-size:10px;font-weight:800;line-height:1;box-sizing:border-box}
.notification-page-shell{max-width:900px;margin:42px auto 76px}
.notification-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.notification-page-head h1{margin:3px 0 8px}
.notification-page-head p{margin:0;color:var(--text-muted);line-height:1.7;max-width:640px}
.notification-action-primary{border:0;border-radius:10px;background:var(--text-main);color:#fff;padding:11px 17px;font-family:var(--font-ui);font-weight:600;cursor:pointer;white-space:nowrap}
.notification-flash{padding:12px 14px;border-radius:10px;margin:0 0 18px;font-size:13px;font-weight:600}
.notification-flash.success{background:#E4E6EC;color:#2E7A4F;border:1px solid #E4E6EC}
.notification-flash.error{background:#ECEAE6;color:#B0392B;border:1px solid #D9D6D0}
.notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;flex-wrap:wrap}
.notification-toolbar nav{display:flex;gap:8px;flex-wrap:wrap}
.notification-toolbar nav a{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid #D9D6D0;border-radius:999px;background:#fff;color:#282E37;text-decoration:none;font-size:12px;font-weight:500}
.notification-toolbar nav a span{display:inline-flex;min-width:20px;justify-content:center;background:#ECEAE6;padding:2px 6px;border-radius:999px;font-size:10px}
.notification-toolbar nav a.active{background:var(--text-main);border-color:var(--text-main);color:#fff}
.notification-toolbar nav a.active span{background:rgba(255, 255, 255, .14)}
.notification-text-button{border:0;background:transparent;color:var(--juf-rust-hover);font:600 12px var(--font-ui);cursor:pointer;padding:7px 0}
.notification-list{display:grid;gap:12px}
.notification-card{display:flex;gap:15px;background:#fff;border:1px solid var(--juf-light-surface);border-radius:16px;padding:18px 20px;box-shadow:0 5px 18px rgba(40, 46, 55, .035)}
.notification-card.is-unread{border-left:4px solid #3B4256;background:#F6F5F2}
.notification-card.is-read{opacity:.84}
.notification-type-icon{flex:0 0 42px;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ECEAE6;color:var(--juf-rust-hover);font-weight:800}
.notification-card-copy{min-width:0;flex:1}
.notification-card-meta{display:flex;gap:9px;align-items:center;flex-wrap:wrap;color:#5B6376;font-size:11px;font-weight:600;margin-bottom:5px}
.notification-card-meta time{font-weight:500}
.notification-unread-dot{background:#ECEAE6;color:var(--juf-rust-hover);border-radius:999px;padding:2px 7px;font-size:10px;font-weight:500}
.notification-card h2{font:700 18px/1.45 var(--font-heading);color:var(--text-main);margin:0 0 5px}
.notification-card p{margin:0;color:#5B6376;line-height:1.75;font-size:14px}
.notification-card-actions{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin-top:12px}
.notification-card-actions a{color:var(--juf-rust-hover);text-decoration:none;font-size:12px;font-weight:600}
.notification-card-actions form{margin:0}
.notification-card-actions button{border:0;background:transparent;color:#5B6376;padding:0;font:600 11px var(--font-ui);cursor:pointer}
.notification-card-actions button.danger{color:#5B6376}
.notification-empty{background:#fff;border:1px dashed #D9D6D0;border-radius:18px;padding:42px 24px;text-align:center;color:#5B6376}
.notification-empty strong{display:block;color:#282E37;font-size:17px;margin-bottom:6px}
.notification-empty p{margin:0;line-height:1.65}
.notification-empty code{font-family:monospace;background:#ECEAE6;padding:2px 5px;border-radius:4px}
.notification-empty-icon{font-size:34px;color:#5B6376;margin-bottom:8px}
.notification-pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin-top:24px;font-size:12px;font-weight:500;color:#5B6376}
.notification-pagination a{color:var(--juf-rust-hover);text-decoration:none;border:1px solid #D9D6D0;background:#fff;border-radius:8px;padding:8px 11px}
@media(max-width:720px){
  .notification-page-shell{margin:28px auto 54px}
  .notification-page-head{align-items:flex-start;flex-direction:column}
  .notification-card{padding:15px 14px;gap:11px}
  .notification-type-icon{flex-basis:36px;width:36px;height:36px}
  .notification-card h2{font-size:16px}
  .notification-toolbar{align-items:flex-start}
}

/* V13 managed custom book covers: preserve the existing jacket geometry and
   fall back to the generated 2D identity when no image is uploaded. */
.juf-book-jacket-custom {
    padding: 0;
    background: var(--book-bg, #3346A8);
}
.juf-book-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}
.juf-book-cover-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(40, 46, 55, .54) 0%, rgba(40, 46, 55, .08) 52%, rgba(40, 46, 55, .02) 100%);
    pointer-events: none;
}
.juf-book-jacket-custom .juf-jacket-spine,
.juf-book-jacket-custom .juf-jacket-shine,
.juf-book-jacket-custom .juf-jacket-symbol,
.juf-book-jacket-custom .juf-jacket-content,
.juf-book-jacket-custom > .juf-jacket-genre,
.juf-book-jacket-custom > .juf-jacket-title {
    position: relative;
    z-index: 2;
}
.juf-book-jacket-custom .juf-jacket-symbol {
    display: none;
}
.juf-book-jacket-custom .juf-jacket-content {
    padding: 18px 16px;
}

/* Lightweight local chapter editor; no third-party CDN is required. */
.juf-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 8px;
    border: 1px solid #D9D6D0;
    border-bottom: 0;
    border-radius: 9px 9px 0 0;
    background: #ECEAE6;
}
.juf-editor-toolbar button,
.juf-editor-toolbar select {
    min-width: 34px;
    min-height: 32px;
    border: 1px solid #D9D6D0;
    border-radius: 6px;
    background: #fff;
    color: #282E37;
    font: inherit;
    cursor: pointer;
}
.juf-editor-toolbar select { padding: 4px 8px; }
.juf-editor-toolbar button:hover,
.juf-editor-toolbar button:focus-visible,
.juf-editor-toolbar select:focus-visible {
    border-color: var(--accent-rust);
    outline: 2px solid rgba(59, 66, 86, .16);
    outline-offset: 1px;
}
.juf-rich-editor {
    min-height: 320px;
    max-height: 65vh;
    overflow: auto;
    padding: 18px;
    border: 1px solid #D9D6D0;
    border-radius: 0 0 9px 9px;
    background: #fff;
    color: #282E37;
    font-family: var(--font-heading);
    font-size: 18px;
    line-height: 1.8;
    outline: none;
}
.juf-rich-editor:focus { border-color: var(--accent-rust); box-shadow: 0 0 0 3px rgba(59, 66, 86, .10); }
.juf-rich-editor blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid #D9D6D0; color: #5B6376; }
.juf-rich-editor .juf-content-image,
.juf-rich-public-content .juf-content-image { margin: 1.6em auto; text-align: center; }
.juf-rich-editor .juf-content-image img,
.juf-rich-public-content .juf-content-image img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: 12px; }
.juf-rich-editor .juf-content-image figcaption,
.juf-rich-public-content .juf-content-image figcaption { margin-top: 8px; color: var(--text-muted); font: 500 12px/1.6 var(--font-ui-system); }
.juf-image-credit{font-style:italic;opacity:.82}.juf-rich-editor .juf-image-selected{outline:3px solid #3B4256;outline-offset:5px;border-radius:12px}.juf-rich-editor-shell.juf-editor-mobile-preview{max-width:390px;margin-left:auto;margin-right:auto;box-shadow:0 0 0 6px #E4E6EC;border-radius:14px}.juf-rich-editor-shell.juf-editor-mobile-preview .juf-rich-editor{max-height:70vh;font-size:17px}
.juf-book-summary-card { margin-top: 34px; padding: 32px 34px; border: 1px solid var(--juf-light-surface); border-radius: 20px; background: #fff; }
.juf-book-summary-card .juf-details-section-heading { margin-bottom: 15px; }
.juf-rich-public-content { color: #282E37; font-family: var(--font-heading); font-size: 16px; line-height: 1.9; }
.juf-rich-public-content p { margin: 0 0 1.15em; }
.juf-rich-public-content h2,.juf-rich-public-content h3,.juf-rich-public-content h4 { color: var(--text-main); margin: 1.35em 0 .6em; line-height: 1.35; }
.juf-rich-public-content blockquote { margin: 1.3em 0; padding: .8em 1.1em; border-left: 3px solid var(--accent-rust); background: #ECEAE6; color: #5B6376; }
@media(max-width:620px){.juf-book-summary-card{margin:24px 12px 0;padding:23px 18px;border-radius:17px}.juf-rich-public-content{font-size:15px}}
.audio-hub-cover,
.audio-detail-cover { position: relative; overflow: hidden; }
.audio-custom-cover-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.audio-custom-cover-scrim { position:absolute; inset:0; z-index:1; background:linear-gradient(to top,rgba(40, 46, 55, .7),rgba(40, 46, 55, .06) 62%); }
.audio-hub-cover.has-custom-cover > :not(.audio-custom-cover-image):not(.audio-custom-cover-scrim),
.audio-detail-cover.has-custom-cover > :not(.audio-custom-cover-image):not(.audio-custom-cover-scrim) { position:relative; z-index:2; }
.audio-hub-cover.has-custom-cover .audio-hub-cover-mark,
.audio-detail-cover.has-custom-cover .audio-detail-cover-mark { opacity:.18; }
/* An uploaded cover is treated as finished artwork; generated typography is hidden. */
.juf-book-jacket-custom .juf-book-cover-scrim { display:none; }
.juf-book-jacket-custom .juf-jacket-spine,
.juf-book-jacket-custom .juf-jacket-shine,
.juf-book-jacket-custom .juf-jacket-symbol,
.juf-book-jacket-custom .juf-jacket-content,
.juf-book-jacket-custom > .juf-jacket-genre,
.juf-book-jacket-custom > .juf-jacket-title { visibility:hidden; }
/* Ensure the generated 2D cover helper consumes its theme variable everywhere. */
.juf-book-jacket { background: var(--book-bg, #3346A8); }
.juf-jacket-shine { position:absolute; inset:0; background:linear-gradient(125deg,rgba(255, 255, 255, .13),transparent 32%,rgba(255, 255, 255, .03) 60%,transparent); pointer-events:none; z-index:0; }
.juf-jacket-symbol { position:absolute; top:20%; right:9%; font-family:var(--font-heading); font-size:78px; line-height:1; font-weight:700; color:rgba(255, 255, 255, .10); z-index:0; user-select:none; }
.juf-jacket-content { position:relative; z-index:1; display:flex; flex-direction:column; gap:2px; }
.juf-jacket-content .juf-jacket-title { margin:0; }
.juf-jacket-author { margin:7px 0 0; font-size:11px; color:rgba(255, 255, 255, .72); font-family:var(--font-ui); }

/* V20 — Book Assistant */
.juf-ai-page{max-width:980px;margin:44px auto 80px}.juf-ai-book-head{display:grid;grid-template-columns:150px 1fr;gap:28px;align-items:center;background:var(--card-bg);border:1px solid var(--border-light);border-radius:var(--juf-radius,18px);padding:26px;margin-bottom:22px}.juf-ai-cover{width:140px}.juf-ai-cover .juf-book-jacket{min-height:190px}.juf-ai-book-head h2{margin:4px 0;font-family:var(--font-heading);font-size:22px}.juf-ai-book-head p{margin:0;color:var(--text-muted)}.juf-ai-status-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.juf-ai-status-row span{font-size:12px;background:color-mix(in srgb,var(--card-bg) 85%,var(--accent-rust));border:1px solid var(--border-light);padding:6px 9px;border-radius:999px}.juf-ai-chat{background:var(--card-bg);border:1px solid var(--border-light);border-radius:var(--juf-radius,18px);overflow:hidden}.juf-ai-messages{min-height:360px;max-height:62vh;overflow:auto;padding:22px;display:flex;flex-direction:column;gap:12px;background:color-mix(in srgb,var(--card-bg) 94%,var(--bg-cream))}.juf-ai-message{max-width:82%;white-space:pre-wrap;line-height:1.75;padding:12px 15px;border-radius:16px;font-size:15px}.juf-ai-message.is-assistant{align-self:flex-start;background:var(--card-bg);border:1px solid var(--border-light);border-bottom-left-radius:5px}.juf-ai-message.is-user{align-self:flex-end;background:var(--accent-rust);color:#fff;border-bottom-right-radius:5px}.juf-ai-form{padding:16px;border-top:1px solid var(--border-light)}.juf-ai-form textarea{box-sizing:border-box;width:100%;resize:vertical;min-height:86px;border:1px solid var(--border-light);background:var(--card-bg);color:var(--text-main);border-radius:12px;padding:12px 14px;font:inherit;line-height:1.6;outline:none}.juf-ai-form textarea:focus{border-color:var(--accent-rust);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-rust) 14%,transparent)}.juf-ai-form-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:10px}.juf-ai-form-footer small{color:var(--text-muted);line-height:1.5}.juf-ai-notice{background:#ECEAE6;border:1px solid #D9D6D0;color:#282E37;border-radius:14px;padding:18px 20px;line-height:1.7}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:650px){.juf-ai-page{margin-top:24px}.juf-ai-book-head{grid-template-columns:82px 1fr;padding:18px;gap:16px}.juf-ai-cover{width:82px}.juf-ai-cover .juf-book-jacket{min-height:115px}.juf-ai-message{max-width:92%}.juf-ai-form-footer{align-items:stretch;flex-direction:column}.juf-ai-form-footer button{width:100%}}

/* Homepage refinement: keep approved motion/layout, improve navigation and data-driven links. */
.section-head-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-view-all {
    color: var(--accent-rust);
    font-family: var(--font-ui-system);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.section-view-all:hover { text-decoration: underline; text-underline-offset: 4px; }
.pastel-card { color: inherit; text-decoration: none; }
.genre-dark-box { color: inherit; text-decoration: none; }
.author-view-all-disc {
    background: #ECEAE6;
    color: var(--accent-rust);
    border-color: #D9D6D0;
    font-size: 28px;
    font-family: var(--font-ui-system);
}
.author-circle-view-all:hover .author-view-all-disc {
    background: var(--accent-rust);
    color: #fff;
}
@media (max-width: 640px) {
    .section-head-actions { gap: 8px; }
    .section-view-all { font-size: 12px; }
}

/* ============================================================
   V24 Phase 4 — Author ecosystem
   ============================================================ */
.juf-authors-page,.juf-author-profile-page{background:var(--bg-cream)}
.juf-authors-hero{padding:52px 0 44px;background:linear-gradient(135deg,#ECEAE6 0%,#E4E6EC 58%,#E4E6EC 100%);overflow:hidden;border-bottom:1px solid #D9D6D0}
.juf-authors-hero-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(520px,1.1fr);gap:48px;align-items:center;min-height:390px}
.juf-authors-hero-copy h1{font-family:var(--font-heading);font-size:clamp(34px,4.8vw,62px);line-height:1.08;letter-spacing:-.035em;margin:8px 0 18px;color:var(--juf-ink-soft);max-width:650px}
.juf-authors-hero-copy p{max-width:590px;color:#5B6376;font-size:16px;line-height:1.85;margin:0 0 26px}
.juf-authors-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.juf-authors-hero-stage{position:relative;min-height:330px;padding:18px 18px 18px 22px;border:1px solid rgba(59, 66, 86, .18);border-radius:26px;background:rgba(246, 245, 242, .72);box-shadow:0 22px 60px rgba(59, 66, 86, .10);display:grid;grid-template-columns:minmax(0,1fr) 138px;gap:14px;overflow:hidden}
.juf-authors-hero-stage:before{content:"";position:absolute;width:270px;height:270px;border-radius:50%;right:72px;top:-110px;background:rgba(59, 66, 86, .10)}
.juf-authors-hero-leads{position:relative;min-height:292px}
.juf-authors-hero-lead{position:absolute;inset:0;display:grid;grid-template-columns:190px minmax(0,1fr);gap:22px;align-items:center;opacity:0;visibility:hidden;transform:translateX(18px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.8,.2,1),visibility .6s}
.juf-authors-hero-lead.is-active{opacity:1;visibility:visible;transform:none}
.juf-authors-lead-portrait{display:block;width:190px;height:250px;border-radius:94px 94px 22px 22px;padding:6px;background:#ECEAE6;border:1px solid #D9D6D0;overflow:hidden;box-shadow:0 18px 42px rgba(59, 66, 86, .16)}
.juf-authors-lead-portrait>*{width:100%!important;height:100%!important;border-radius:88px 88px 17px 17px!important}
.juf-authors-lead-copy{position:relative;z-index:2;min-width:0}.juf-authors-lead-copy>span{display:block;color:#282E37;font-size:10px;font-weight:500;text-transform:uppercase!important;letter-spacing:.08em!important}.juf-authors-lead-copy h2{font:700 clamp(24px,2.7vw,36px)/1.2 var(--font-heading);margin:7px 0 2px;color:var(--juf-ink-soft)}.juf-authors-lead-copy small{display:block;color:#5B6376;font-size:11px;margin-bottom:10px}.juf-authors-lead-copy p{color:#5B6376;font-size:12.5px;line-height:1.75;margin:0 0 13px;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.juf-authors-lead-copy>a{color:var(--juf-header-footer);font-size:12px;font-weight:850;text-decoration:none}
.juf-authors-hero-rail{position:relative;z-index:3;display:grid;align-content:center;gap:8px}.juf-authors-hero-rail-item{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px;align-items:center;text-align:left;border:1px solid transparent;border-radius:12px;background:transparent;padding:6px;cursor:pointer;color:var(--juf-header-footer);transition:background .2s ease,border-color .2s ease,transform .2s ease}.juf-authors-hero-rail-item:hover{transform:translateX(-2px);background:rgba(255, 255, 255, .55)}.juf-authors-hero-rail-item.is-active{background:#ECEAE6;border-color:#D9D6D0;box-shadow:0 8px 20px rgba(59, 66, 86, .09)}.juf-authors-hero-rail-item>span{width:38px;height:38px;border-radius:50%;overflow:hidden;background:#E4E6EC}.juf-authors-hero-rail-item>span>*{width:100%!important;height:100%!important;border-radius:50%!important}.juf-authors-hero-rail-item strong{font-size:10.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.juf-authors-hero-fallback{min-height:310px;display:flex;align-items:center;justify-content:center;gap:12px}.juf-authors-hero-fallback span{width:92px;height:132px;border:1px solid #D9D6D0;border-radius:12px 18px 18px 12px;background:#E4E6EC;display:grid;place-items:center;font:700 30px var(--font-brand);color:var(--juf-header-footer);box-shadow:0 15px 30px rgba(59, 66, 86, .09)}.juf-authors-hero-fallback span:nth-child(1){transform:rotate(-9deg) translateY(7px)}.juf-authors-hero-fallback span:nth-child(3){transform:rotate(9deg) translateY(7px);background:#ECEAE6}
.juf-authors-by-genre{padding-top:44px}.juf-author-genre-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.juf-author-genre-card{min-height:145px;padding:18px;border:1px solid rgba(59, 66, 86, .14);border-radius:18px;text-decoration:none;color:var(--juf-ink-soft);display:flex;flex-direction:column;justify-content:space-between;transition:transform .22s ease,box-shadow .22s ease}.juf-author-genre-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(59, 66, 86, .10)}.juf-author-genre-card>span{font-size:10px;font-weight:850;color:#5B6376}.juf-author-genre-card strong{font:700 18px/1.35 var(--font-heading)}.juf-author-genre-card small{font-size:10.5px;color:#5B6376}.genre-tone-1{background:#E4E6EC}.genre-tone-2{background:#E4E6EC}.genre-tone-3{background:#E4E6EC}.genre-tone-4{background:#ECEAE6}.genre-tone-5{background:#E4E6EC}.genre-tone-6{background:#E4E6EC}
.juf-author-discovery{padding-top:58px;padding-bottom:70px}.juf-author-discovery-head,.juf-author-books-header,.juf-author-bio-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:22px}.juf-author-discovery-head .page-section-title,.juf-author-books-header .page-section-title,.juf-author-bio-heading .page-section-title{margin:4px 0 0}.juf-author-discovery-head>p,.juf-author-books-header>span,.juf-author-bio-heading>span{color:#5B6376;font-size:13px;font-weight:500}
.juf-author-filter-panel{background:#fff;border:1px solid var(--juf-light-surface);border-radius:18px;padding:16px;box-shadow:0 8px 26px rgba(40, 46, 55, .035);margin-bottom:16px}.juf-author-search-row{display:flex;gap:9px}.juf-author-search-row input{flex:1;min-width:0;border:1px solid #D9D6D0;border-radius:11px;padding:12px 14px;font:inherit;background:#F6F5F2;color:var(--text-main);outline:none}.juf-author-search-row input:focus{border-color:var(--accent-rust);box-shadow:0 0 0 3px rgba(59, 66, 86, .09)}.juf-author-search-row button{border:0;border-radius:11px;background:var(--accent-rust);color:#fff;padding:0 22px;font-weight:800;cursor:pointer}.juf-author-filter-row{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:12px}.juf-author-filter-row label{display:grid;gap:5px}.juf-author-filter-row label>span{font-size:11px;color:#5B6376;font-weight:800}.juf-author-filter-row select{border:1px solid #D9D6D0;background:#fff;border-radius:9px;padding:8px 30px 8px 10px;font:inherit;font-size:13px;color:#282E37}.juf-author-clear-filter{margin-left:auto;color:var(--accent-rust);font-size:12px;font-weight:800;text-decoration:none;padding:8px 4px}
.juf-author-alphabet{display:flex;gap:5px;overflow-x:auto;padding:4px 0 18px;scrollbar-width:none}.juf-author-alphabet::-webkit-scrollbar{display:none}.juf-author-alphabet a{flex:0 0 auto;min-width:31px;height:31px;border-radius:8px;display:grid;place-items:center;border:1px solid #D9D6D0;background:#F6F5F2;color:#282E37;text-decoration:none;font-weight:800;font-size:13px}.juf-author-alphabet a:hover,.juf-author-alphabet a.active{background:var(--juf-header-footer);color:#fff;border-color:var(--juf-header-footer)}.juf-author-alphabet span{width:1px;background:#E4E6EC;margin:3px 6px}
.juf-authors-grid-5{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}.juf-author-directory-card{background:#fff;border:1px solid #D9D6D0;border-radius:17px;padding:22px 14px 18px;text-align:center;text-decoration:none;color:inherit;display:flex;flex-direction:column;align-items:center;min-width:0;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.juf-author-directory-card:hover{transform:translateY(-4px);box-shadow:0 16px 35px rgba(40, 46, 55, .08);border-color:#D9D6D0}.juf-author-directory-avatar{width:92px;height:92px;border-radius:50%;padding:3px;background:#ECEAE6;overflow:hidden;margin-bottom:13px}.juf-author-directory-avatar>*{width:100%!important;height:100%!important;border-radius:50%!important}.juf-author-directory-name{font:700 15px/1.4 var(--font-ui-system);color:#282E37}.juf-author-directory-en{font:500 10px/1.4 var(--font-ui-system);color:#5B6376;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.juf-author-directory-role{font-size:12px;color:#5B6376;margin-top:6px;min-height:17px}.juf-author-directory-meta{font-size:10.5px;color:var(--accent-rust);font-weight:800;margin-top:8px}.juf-author-empty{background:#fff;border:1px dashed #D9D6D0;border-radius:15px;padding:32px;text-align:center;color:#5B6376}.juf-author-pagination{margin-top:30px}
.juf-featured-author-story{padding:20px 0 78px}.juf-featured-author-stage{position:relative;min-height:365px;background:var(--juf-header-footer);border-radius:28px;overflow:hidden;color:#F6F5F2;box-shadow:0 20px 55px rgba(40, 46, 55, .13)}.juf-featured-author-stage:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 80% 30%,rgba(40, 46, 55, .10),transparent 30%),linear-gradient(120deg,rgba(255, 255, 255, .03),transparent 55%)}.juf-featured-author-slide{position:absolute;inset:0;padding:42px 52px;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:52px;align-items:center;opacity:0;visibility:hidden;transform:translateX(22px);transition:opacity .55s ease,transform .55s ease,visibility .55s}.juf-featured-author-slide.is-active{opacity:1;visibility:visible;transform:none}.juf-featured-author-copy{position:relative;z-index:2}.juf-featured-author-copy .section-overline-label{color:#F6F5F2}.juf-featured-author-copy h2{font:700 clamp(30px,4vw,48px)/1.12 var(--font-heading);margin:7px 0 4px}.juf-featured-author-en{color:#5B6376!important;font-size:13px!important;margin:0 0 15px!important}.juf-featured-author-copy>p{max-width:650px;color:#F6F5F2;line-height:1.9;margin:0 0 20px}.juf-featured-author-copy>a{color:#F6F5F2;font-weight:800;text-decoration:none}.juf-featured-author-portrait{position:relative;z-index:2;width:240px;height:240px;border-radius:50%;padding:7px;border:1px solid rgba(255, 255, 255, .2);background:rgba(255, 255, 255, .07);overflow:hidden}.juf-featured-author-portrait>*{width:100%!important;height:100%!important;border-radius:50%!important}.juf-featured-author-dots{position:absolute;left:52px;bottom:24px;z-index:5;display:flex;gap:7px}.juf-featured-author-dots button{width:7px;height:7px;border-radius:50%;padding:0;border:0;background:rgba(255, 255, 255, .28);cursor:pointer}.juf-featured-author-dots button.is-active{width:24px;border-radius:10px;background:#E4E6EC}

.juf-author-profile-page{padding:42px 0 0}.juf-author-profile-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:26px;align-items:stretch}.juf-author-profile-note,.juf-author-profile-card{border:1px solid var(--juf-surface-muted);border-radius:24px;background:#fff}.juf-author-profile-note{padding:38px 40px}.juf-author-profile-note h1{font:700 clamp(34px,4.5vw,58px)/1.1 var(--font-heading);margin:7px 0 4px;color:#282E37}.juf-author-profile-en{color:#5B6376;font-size:13px;margin:0 0 20px}.juf-author-profile-lead{font-size:16px;line-height:1.9;color:#282E37;max-width:730px;margin:0}.juf-author-profile-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:24px}.juf-author-profile-actions form{margin:0}.juf-author-follow-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 17px;border-radius:10px;border:1px solid #D9D6D0;background:#F6F5F2;color:#282E37;font-weight:800;text-decoration:none;cursor:pointer;font:inherit}.juf-author-follow-message{font-size:12px;color:var(--accent-rust);font-weight:700;margin:12px 0 0}.juf-author-profile-card{padding:28px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;background:#ECEAE6}.juf-author-profile-avatar{width:160px;height:160px;border-radius:50%;padding:5px;background:#ECEAE6;box-shadow:0 18px 40px rgba(40, 46, 55, .09);overflow:hidden}.juf-author-profile-avatar>*{width:100%!important;height:100%!important;border-radius:50%!important}.juf-author-profile-card h2{font:700 21px/1.3 var(--font-heading);margin:16px 0 3px}.juf-author-profile-card p{margin:0;color:#5B6376;font-size:13px}.juf-author-meta-chips{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:15px}.juf-author-meta-chips span{background:rgba(255, 255, 255, .7);border:1px solid #D9D6D0;border-radius:999px;padding:5px 9px;color:#282E37;font-size:10.5px;font-weight:800}
.juf-author-bio-section,.juf-author-popular-books,.juf-author-all-books{padding-top:52px}.juf-author-bio-copy{background:#fff;border:1px solid var(--juf-light-surface);border-radius:18px;padding:28px 30px;color:#282E37;font-family:var(--font-heading);font-size:17px;line-height:2;white-space:normal}.juf-author-bio-details{background:#fff;border:1px solid var(--juf-light-surface);border-radius:18px;overflow:hidden}.juf-author-bio-details summary{cursor:pointer;padding:17px 22px;font-weight:800;color:var(--accent-rust);list-style-position:inside}.juf-author-bio-details[open] summary{border-bottom:1px solid #D9D6D0}.juf-author-bio-details .juf-author-bio-copy{border:0;border-radius:0}.juf-author-notable{margin-top:16px;background:#ECEAE6;border-radius:16px;padding:20px 24px;color:#282E37}.juf-author-notable p{margin:6px 0 0;line-height:1.8}.juf-author-books-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px}.juf-author-books-grid.popular-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.juf-author-books-grid .showcase-card-item{text-decoration:none}.juf-author-book-filters{display:flex;gap:7px;overflow-x:auto;padding:0 0 18px;scrollbar-width:none}.juf-author-book-filters::-webkit-scrollbar{display:none}.juf-author-book-filters a{flex:0 0 auto;text-decoration:none;border:1px solid #D9D6D0;border-radius:999px;padding:7px 13px;background:#fff;color:var(--text-muted);font-size:12px;font-weight:500}.juf-author-book-filters a.active,.juf-author-book-filters a:hover{background:#2C3243;color:#fff;border-color:#2C3243}.juf-related-authors-section{margin-top:64px;padding:48px 0 64px;background:#ECEAE6;border-top:1px solid #D9D6D0}.juf-related-authors-section .page-section-title{margin:4px 0 22px}.juf-related-authors-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}.juf-related-authors-row a{display:flex;align-items:center;gap:11px;background:rgba(255, 255, 255, .68);border:1px solid #D9D6D0;border-radius:14px;padding:12px;text-decoration:none;color:#282E37;min-width:0}.juf-related-authors-row a>span{width:48px;height:48px;flex:0 0 48px;border-radius:50%;overflow:hidden}.juf-related-authors-row a>span>*{width:100%!important;height:100%!important;border-radius:50%!important}.juf-related-authors-row strong{font-size:12px}.juf-related-authors-row small{display:none}
@media(max-width:1050px){.juf-authors-grid-5,.juf-author-books-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.juf-related-authors-row{grid-template-columns:repeat(3,minmax(0,1fr))}.juf-authors-hero-grid{grid-template-columns:minmax(0,.85fr) minmax(450px,1.15fr);gap:26px}.juf-author-genre-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.juf-featured-author-slide{grid-template-columns:minmax(0,1fr) 220px}.juf-featured-author-portrait{width:195px;height:195px}}
@media(max-width:820px){.juf-authors-hero-grid,.juf-author-profile-hero{grid-template-columns:1fr}.juf-authors-hero-stage{max-width:680px;width:100%;margin:auto}.juf-authors-grid-5,.juf-author-books-grid,.juf-author-books-grid.popular-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.juf-author-profile-card{order:-1}.juf-featured-author-slide{padding:34px;grid-template-columns:minmax(0,1fr) 170px;gap:22px}.juf-featured-author-portrait{width:160px;height:160px}.juf-featured-author-dots{left:34px}}
@media(max-width:620px){.juf-authors-hero{padding-top:30px}.juf-authors-hero-copy h1{font-size:36px}.juf-authors-hero-stage{grid-template-columns:1fr;padding:14px;min-height:430px}.juf-authors-hero-leads{min-height:325px}.juf-authors-hero-lead{grid-template-columns:128px minmax(0,1fr);gap:14px}.juf-authors-lead-portrait{width:128px;height:178px}.juf-authors-lead-copy p{-webkit-line-clamp:5;font-size:11.5px}.juf-authors-hero-rail{display:flex;overflow-x:auto;align-self:end}.juf-authors-hero-rail-item{flex:0 0 108px;grid-template-columns:30px minmax(0,1fr)}.juf-authors-hero-rail-item>span{width:30px;height:30px}.juf-author-genre-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.juf-author-genre-card{min-height:120px;padding:14px}.juf-author-discovery{padding-top:38px}.juf-author-discovery-head,.juf-author-books-header,.juf-author-bio-heading{align-items:flex-start;flex-direction:column;gap:6px}.juf-author-filter-row{display:grid;grid-template-columns:1fr 1fr}.juf-author-filter-row label,.juf-author-filter-row select{width:100%}.juf-author-clear-filter{margin:0;grid-column:1/-1}.juf-authors-grid-5,.juf-author-books-grid,.juf-author-books-grid.popular-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.juf-author-directory-card{padding:17px 10px}.juf-author-directory-avatar{width:78px;height:78px}.juf-featured-author-stage{min-height:460px}.juf-featured-author-slide{grid-template-columns:1fr;padding:30px 24px 55px;align-content:center}.juf-featured-author-portrait{grid-row:1;width:120px;height:120px}.juf-featured-author-dots{left:24px;bottom:22px}.juf-author-profile-page{padding-top:24px}.juf-author-profile-note{padding:26px 22px}.juf-author-profile-avatar{width:135px;height:135px}.juf-author-bio-section,.juf-author-popular-books,.juf-author-all-books{padding-top:38px}.juf-author-bio-copy{padding:22px 18px;font-size:16px}.juf-related-authors-row{grid-template-columns:1fr 1fr}.juf-author-search-row button{padding:0 14px}}
@media(max-width:390px){.juf-related-authors-row{grid-template-columns:1fr}.juf-author-filter-row{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.juf-authors-hero-lead,.juf-authors-hero-rail-item,.juf-author-directory-card,.juf-featured-author-slide{transition:none!important}}


/* V24 Phase 5 — compact book identity + Part-based chapter directory */
.book-details-hero{align-items:stretch!important}.juf-details-author-card{flex:0 0 220px;align-self:stretch;background:#ECEAE6;border:1px solid #D9D6D0;border-radius:18px;padding:22px 18px;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center}.juf-details-author-avatar{width:86px;height:86px;border-radius:50%;overflow:hidden;background:#fff;padding:3px;box-shadow:0 10px 28px rgba(40, 46, 55, .08)}.juf-details-author-avatar>*{width:100%!important;height:100%!important;border-radius:50%!important}.juf-details-author-card>small{margin-top:12px;color:#3B4256;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.09em}.juf-details-author-card h3{font:700 18px/1.35 var(--font-heading);margin:5px 0 2px;color:#282E37}.juf-details-author-card>span{font-size:11px;color:#5B6376}.juf-details-author-card p{font-size:11.5px;line-height:1.65;color:#5B6376;margin:12px 0;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.juf-details-author-card>a{font-size:11px;color:var(--accent-rust);font-weight:800;text-decoration:none}
.juf-book-reading-directory{max-width:900px;margin:48px auto 46px}.juf-details-section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:18px}.juf-details-section-heading h2{margin:4px 0 0}.juf-details-section-heading>span{font-size:11px;color:#5B6376;font-weight:500}.juf-continue-reading-card{display:grid;grid-template-columns:42px minmax(0,1fr) 160px;gap:12px;align-items:center;text-decoration:none;background:#3346A8;color:var(--bg-cream);border-radius:15px;padding:13px 16px;margin-bottom:15px;box-shadow:0 10px 28px rgba(40, 46, 55, .08)}.juf-continue-reading-icon{width:32px;height:32px;border-radius:50%;background:rgba(255, 255, 255, .09);display:grid;place-items:center}.juf-continue-reading-card span:nth-child(2){display:grid;gap:1px}.juf-continue-reading-card small{font-size:9.5px;color:#5B6376}.juf-continue-reading-card strong{font-size:13px;color:#fff}.juf-continue-reading-card em{font-style:normal;font-size:10px;color:#FFFFFF}.juf-continue-progress{height:5px;background:rgba(255, 255, 255, .15);border-radius:999px;overflow:hidden}.juf-continue-progress i{display:block;height:100%;background:#D9D6D0;border-radius:999px}.juf-part-tabs{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:3px 1px 11px}.juf-part-tabs::-webkit-scrollbar{display:none}.juf-part-tab{flex:0 0 auto;min-width:118px;border:1px solid #D9D6D0;background:#fff;color:#5B6376;border-radius:11px;padding:9px 12px;text-align:left;cursor:pointer;font-family:var(--font-ui-system);transition:border-color .2s ease,background .2s ease,color .2s ease}.juf-part-tab b{display:block;font-size:11px}.juf-part-tab span{display:block;font-size:9.5px;margin-top:2px;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#5B6376}.juf-part-tab.is-active{background:#3B4256;color:#fff;border-color:#3B4256}.juf-part-tab.is-active span{color:#F6F5F2}.juf-part-panels{background:#fff;border:1px solid #D9D6D0;border-radius:16px;overflow:hidden}.juf-part-panel{display:none}.juf-part-panel.is-active{display:block}.juf-chapter-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 18px;border-bottom:1px solid var(--juf-light-surface);text-decoration:none;color:#282E37;transition:background .18s ease}.juf-chapter-row:last-child{border-bottom:0}.juf-chapter-row:hover,.juf-chapter-row.is-current{background:#F6F5F2}.juf-chapter-number{font:700 12px/1 var(--font-ui-system);color:#3B4256}.juf-chapter-copy{min-width:0}.juf-chapter-copy strong{display:block;font:600 13px/1.45 var(--font-ui-system);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.juf-chapter-copy small{display:block;color:#5B6376;font-size:9.5px;margin-top:2px}.juf-chapter-state{font-size:10px;color:var(--accent-rust);font-weight:800;white-space:nowrap}.juf-details-empty{border:1px dashed #D9D6D0;border-radius:14px;padding:28px;text-align:center;color:#5B6376;background:#F6F5F2}
@media(max-width:980px){.juf-details-author-card{flex:1 1 100%;display:grid;grid-template-columns:74px minmax(0,1fr);column-gap:16px;text-align:left;justify-items:start}.juf-details-author-avatar{grid-row:1/6;width:70px;height:70px}.juf-details-author-card>small{margin-top:0}.juf-details-author-card p{margin:6px 0}.juf-details-author-card>a{margin-top:3px}}
@media(max-width:620px){.juf-book-reading-directory{margin-top:34px}.juf-details-section-heading{align-items:flex-start;flex-direction:column;gap:4px}.juf-continue-reading-card{grid-template-columns:34px 1fr}.juf-continue-progress{grid-column:1/-1;width:100%}.juf-chapter-row{grid-template-columns:32px minmax(0,1fr) auto;padding:12px 12px;gap:8px}.juf-chapter-copy strong{font-size:12px}.juf-chapter-state{font-size:9px}.juf-details-author-card{margin-top:4px}}
@media(prefers-reduced-motion:reduce){.juf-part-tab,.juf-chapter-row{transition:none!important}}

/* =========================================================
   V24 Phase 7 — GraphicEngine v2: JUFbook literary cover family
   Generated artwork uses paper, muted ink, woodblock-like line art and a
   restrained vermilion seal. Uploaded covers remain untouched artwork.
   ========================================================= */
.juf-book-jacket-generated {
    isolation: isolate;
    background: var(--cover-paper, #ECEAE6);
    border: 1px solid color-mix(in srgb, var(--cover-ink, var(--text-main)) 22%, transparent);
    border-left-width: 4px;
    color: var(--cover-ink, var(--text-main));
    box-shadow: 0 10px 24px rgba(40, 46, 55, .10), -7px 0 13px rgba(40, 46, 55, .10) inset;
}
.juf-book-jacket-generated::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 28%, rgba(40, 46, 55, .035));
}
.juf-cover-paper-grain {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: .42;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(8deg, rgba(40, 46, 55, .025) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(94deg, rgba(255, 255, 255, .12) 0 1px, transparent 1px 7px);
    mix-blend-mode: multiply;
}
.juf-book-jacket-generated .juf-jacket-spine {
    z-index: 4;
    width: 7px;
    background: linear-gradient(to right, rgba(40, 46, 55, .25), rgba(40, 46, 55, .05) 60%, transparent);
}
.juf-book-jacket-generated .juf-jacket-shine { display:none; }
.juf-cover-art {
    position: absolute;
    inset: 7% 4% 21% 4%;
    z-index: 1;
    color: var(--cover-ink, var(--text-main));
    opacity: .96;
    pointer-events: none;
}
.juf-cover-motif-svg { width:100%; height:100%; overflow:visible; }
.juf-cover-motif-svg .motif-line,
.juf-cover-motif-svg .motif-stem {
    fill:none;
    stroke:currentColor;
    stroke-width:2.1;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.juf-cover-motif-svg .motif-stem { stroke-width:3; }
.juf-cover-motif-svg .motif-brush,
.juf-cover-motif-svg .motif-mountain,
.juf-cover-motif-svg .motif-leaf,
.juf-cover-motif-svg .avatar-fill { fill:currentColor; opacity:.15; }
.juf-cover-motif-svg .motif-wash { fill:var(--cover-soft, #5B6376); opacity:.16; }
.juf-cover-motif-svg .motif-sun { fill:var(--cover-accent, #282E37); opacity:.88; }
.juf-cover-motif-svg .motif-blossoms { fill:var(--cover-accent, #282E37); opacity:.72; }
.juf-cover-motif-svg .motif-soft { fill:var(--cover-soft, #5B6376); opacity:.34; }
.juf-cover-motif-svg .motif-dark { fill:currentColor; opacity:.82; }
.juf-cover-motif-svg .motif-light { fill:var(--cover-paper, #F6F5F2); opacity:.92; }
.juf-cover-motif-svg .motif-accent { fill:var(--cover-accent, #282E37); opacity:.78; }
.juf-cover-motif-svg .motif-orbit,
.juf-cover-motif-svg .motif-orbit-small { fill:none; stroke:var(--cover-soft, #5B6376); stroke-width:2; opacity:.48; }
.juf-cover-motif-svg .motif-orbit-small { stroke:var(--cover-accent, #282E37); stroke-width:1.4; stroke-dasharray:4 7; opacity:.55; }
.juf-cover-motif-svg .motif-autumn { fill:var(--cover-accent, #282E37); opacity:.68; }
.juf-cover-motif-svg .motif-shadow { fill:currentColor; opacity:.78; }
.juf-cover-motif-svg .motif-moon { fill:var(--cover-paper, #F6F5F2); opacity:.92; }
.juf-cover-motif-svg .motif-paper { fill:var(--cover-paper, #F6F5F2); opacity:1; }
.juf-cover-motif-svg .motif-line-light { fill:none; stroke:var(--cover-paper, #F6F5F2); stroke-width:2.1; stroke-linecap:round; opacity:.72; }
.juf-cover-red-sun {
    position:absolute;
    top:11%;
    right:11%;
    width:17%;
    aspect-ratio:1;
    border-radius:50%;
    background:var(--cover-accent, #2C3243);
    opacity:.08;
    z-index:0;
}
.juf-cover-initial {
    position:absolute;
    top:9%;
    left:11%;
    z-index:2;
    font-family:var(--font-heading);
    font-size:clamp(28px, 3.9vw, 56px);
    font-weight:700;
    line-height:1;
    color:var(--cover-ink, var(--text-main));
    opacity:.12;
    user-select:none;
}
.juf-cover-seal {
    position:absolute;
    right:10%;
    bottom:9%;
    z-index:4;
    min-width:27px;
    height:27px;
    padding:0 4px;
    border:1.5px solid var(--cover-accent, #2C3243);
    display:flex;
    align-items:center;
    justify-content:center;
    font:700 8px/1 var(--font-ui-system);
    letter-spacing:.08em;
    color:var(--cover-accent, #282E37);
    transform:rotate(-2deg);
    opacity:.9;
}
.juf-book-jacket-generated .juf-jacket-content {
    position:relative;
    z-index:3;
    padding-top:8px;
    border-top:1px solid color-mix(in srgb, var(--cover-ink, var(--text-main)) 25%, transparent);
}
.juf-book-jacket-generated .juf-jacket-genre {
    color:color-mix(in srgb, var(--cover-ink, var(--text-main)) 72%, transparent);
    font-size:10px;
    letter-spacing:.04em;
}
.juf-book-jacket-generated .juf-jacket-title {
    color:var(--cover-ink, var(--text-main));
    font-size:18px;
    text-wrap:balance;
    text-shadow:none;
}
.juf-book-jacket-generated .juf-jacket-author {
    color:color-mix(in srgb, var(--cover-ink, var(--text-main)) 72%, transparent);
}
.juf-cover-bamboo .juf-cover-art,
.juf-cover-blossom .juf-cover-art { inset:4% 1% 18% 2%; }
.juf-cover-koi .juf-cover-art { inset:5% 3% 19%; }
.juf-cover-pagoda .juf-cover-art { opacity:.9; }

/* Small generated jackets need simplified typography, not a squeezed desktop cover. */
@container (max-width: 125px) {
    .juf-book-jacket-generated .juf-jacket-author { display:none; }
    .juf-book-jacket-generated .juf-jacket-title { font-size:12px; }
    .juf-book-jacket-generated .juf-jacket-genre { font-size:8px; }
    .juf-cover-seal { min-width:20px; height:20px; font-size:6px; }
}
.juf-book-jacket { container-type:inline-size; }

/* GraphicEngine v2 — vintage woodcut / linocut author fallback portraits. */
.juf-author-art-avatar.juf-author-avatar-v2 {
    position:relative;
    overflow:hidden;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--avatar-paper, #E4E6EC);
    color:var(--avatar-ink, #282E37);
    border-radius:50%;
    box-shadow:inset 0 0 0 1px rgba(40, 46, 55, .08);
}
.juf-author-paper-grain {
    position:absolute;
    inset:0;
    background:
        repeating-linear-gradient(13deg, rgba(40, 46, 55, .035) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(99deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 7px);
    opacity:.72;
}
.juf-author-portrait-svg {
    position:absolute;
    inset:4%;
    width:92%;
    height:92%;
    color:var(--avatar-ink, #282E37);
}
.juf-author-portrait-svg .avatar-fill { fill:currentColor; opacity:.78; }
.juf-author-portrait-svg .avatar-line,
.juf-author-portrait-svg .avatar-hatch {
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    opacity:.55;
}
.juf-author-portrait-svg .avatar-hatch { stroke-width:1.2; opacity:.18; }
.juf-author-art-avatar.juf-author-avatar-v2 .author-art-char {
    position:absolute;
    right:9%;
    bottom:8%;
    z-index:3;
    width:24%;
    aspect-ratio:1;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--avatar-accent, #B0392B);
    background:color-mix(in srgb, var(--avatar-paper, #E4E6EC) 90%, transparent);
    color:var(--avatar-accent, #B0392B);
    font-family:var(--font-heading);
    font-size:clamp(10px, 26cqi, 22px);
    line-height:1;
    opacity:.92;
}
.juf-author-art-avatar.juf-author-avatar-v2 .author-art-ring {
    position:absolute;
    inset:5%;
    z-index:4;
    border:1px solid color-mix(in srgb, var(--avatar-ink, #3B4256) 24%, transparent);
    border-radius:50%;
    pointer-events:none;
}

@media (prefers-reduced-motion: reduce) {
    .juf-book-jacket-generated,
    .juf-author-art-avatar.juf-author-avatar-v2 { transition:none !important; }
}
.juf-admin-cover-preview { height:120px; min-height:120px; padding:10px 9px; border-radius:5px; }
.juf-admin-cover-preview .juf-cover-art { inset:3% 0 23%; }
.juf-admin-cover-preview .juf-cover-initial { font-size:24px; }
.juf-profile-cover-62 { width:62px; height:88px; min-height:88px; padding:7px 6px; }
.juf-profile-cover-82 { width:82px; height:118px; min-height:118px; padding:8px 7px; }
.juf-profile-cover-86 { width:86px; height:126px; min-height:126px; padding:9px 7px; }
.juf-profile-cover-110 { width:110px; height:155px; min-height:155px; padding:10px 9px; }
.juf-admin-cover-thumb { width:28px; height:38px; min-height:38px; padding:3px 2px; border-radius:3px; box-shadow:none; }
.juf-admin-cover-thumb .juf-cover-art,
.juf-admin-cover-thumb .juf-cover-initial,
.juf-admin-cover-thumb .juf-cover-seal,
.juf-admin-cover-thumb .juf-jacket-content { display:none; }

/* ============================================================
   V24 Phase 8 — Audiobook dashboard / provider-aware player
   ============================================================ */
.audio-hub-hero-v2{max-width:var(--site-max-width,1220px);margin:34px auto 18px;padding:28px clamp(18px,4vw,42px);border:1px solid #D9D6D0;border-radius:24px;background:linear-gradient(135deg,#ECEAE6,#E4E6EC);display:flex;justify-content:space-between;align-items:center;gap:24px;box-shadow:0 18px 44px rgba(59, 66, 86, .07)}.audio-hub-hero-copy{min-width:0;flex:1}.audio-hub-hero-v2 p{max-width:700px;color:var(--juf-header-footer);line-height:1.7;margin:8px 0 0}.audio-hub-count{min-width:112px;min-height:112px;border-radius:50%;display:grid;place-items:center;align-content:center;background:var(--juf-header-footer);color:#F6F5F2;font:500 28px/1 var(--font-ui-system);box-shadow:0 15px 35px rgba(59, 66, 86, .16)}.audio-hub-count span{font:500 10px/1.4 var(--font-ui-system);margin-top:5px}.audio-collection-hero-cover{width:96px;flex:0 0 96px}.audio-collection-hero-cover img{width:100%;aspect-ratio:2/3;object-fit:cover;border-radius:12px;display:block}.audio-collection-tagline{font-weight:400;color:#282E37!important}.audio-schema-note{max-width:var(--site-max-width,1220px);margin:0 auto 14px;padding:11px 14px;border:1px solid #D9D6D0;border-radius:12px;background:#F6F5F2;color:#3B4256;font-size:13px}.audio-collection-shelf{max-width:var(--site-max-width,1220px);margin:0 auto 18px}.audio-shelf-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:10px}.audio-shelf-heading span{display:block;color:#282E37;font-size:9.5px;font-weight:500;letter-spacing:.04em!important}.audio-shelf-heading h2{font:500 24px/1.25 var(--font-heading-editorial, var(--font-heading));margin:3px 0 0}.audio-shelf-heading>a{color:var(--juf-header-footer);text-decoration:none;font-size:12px;font-weight:500}.audio-collection-cards{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;scrollbar-width:thin}.audio-collection-card{flex:0 0 245px;display:grid;grid-template-columns:64px minmax(0,1fr);gap:11px;align-items:center;padding:10px;border:1px solid #D9D6D0;border-radius:16px;background:var(--bg-cream);text-decoration:none;color:var(--juf-ink-soft);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.audio-collection-card:hover,.audio-collection-card.is-active{transform:translateY(-2px);border-color:#2C3243;box-shadow:0 12px 24px rgba(59, 66, 86, .08)}.audio-collection-card-art{width:64px;height:64px;border-radius:12px;overflow:hidden;background:#E4E6EC;display:grid;place-items:center}.audio-collection-card-art img{width:100%;height:100%;object-fit:cover}.audio-collection-card-art i{font:700 17px var(--font-brand);font-style:normal;color:var(--juf-header-footer)}.audio-collection-card-copy{display:grid;min-width:0}.audio-collection-card-copy small{font-size:8.5px;color:#282E37;font-weight:850}.audio-collection-card-copy strong{font:700 14px/1.35 var(--font-heading);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audio-collection-card-copy em{font-style:normal;font-size:10px;color:#5B6376;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.audio-filter-bar{max-width:var(--site-max-width,1220px);margin:0 auto 18px;display:grid;grid-template-columns:minmax(200px,2fr) repeat(4,minmax(130px,1fr)) auto;gap:8px;padding:12px;background:#ECEAE6;border:1px solid #D9D6D0;border-radius:16px}.audio-filter-bar input,.audio-filter-bar select,.audio-filter-bar button{min-height:42px;border:1px solid #D9D6D0;border-radius:10px;padding:8px 10px;background:#fff;color:var(--juf-ink-soft);font:inherit}.audio-filter-bar button{cursor:pointer;background:var(--juf-header-footer);color:#fff;border-color:var(--juf-header-footer);font-weight:800}
.audio-dashboard-layout,.audio-detail-dashboard{width:min(var(--site-max-width,1220px),calc(100% - 32px));margin:0 auto 70px;display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:start}.audio-dashboard-main,.audio-detail-main{min-width:0}.audio-library-heading{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:4px 0 12px}.audio-library-heading>div>span{display:block;font-size:9px;color:#282E37;font-weight:500;letter-spacing:.04em!important}.audio-library-heading h2{font:500 26px/1.25 var(--font-heading-editorial, var(--font-heading));margin:3px 0}.audio-library-heading>strong{font-size:11px;color:#5B6376}.audio-library-list{background:#fff;border:1px solid #D9D6D0;border-radius:20px;overflow:hidden}.audio-library-table-head,.audio-library-row{display:grid;grid-template-columns:34px minmax(260px,1.55fr) minmax(140px,.8fr) minmax(95px,.55fr) 86px;gap:12px;align-items:center}.audio-library-table-head{padding:10px 16px;background:#ECEAE6;color:#5B6376;font-size:9.5px;font-weight:500;text-transform:uppercase!important}.audio-library-row{padding:12px 16px;border-top:1px solid #D9D6D0;transition:background .2s ease}.audio-library-row:hover{background:var(--bg-cream)}.audio-row-index{font:700 13px var(--font-heading);color:#5B6376;text-align:center}.audio-row-book{min-width:0;display:grid;grid-template-columns:54px minmax(0,1fr);gap:11px;align-items:center}.audio-row-cover{width:54px;height:70px;display:block;border-radius:8px;overflow:hidden;background:#E4E6EC;text-decoration:none}.audio-row-cover>.juf-book-jacket{width:100%;height:100%;min-height:0;aspect-ratio:auto;border-radius:0;box-shadow:none}.audio-row-cover .juf-jacket-content{padding:8px 6px}.audio-row-cover .juf-jacket-title{font-size:9px}.audio-row-copy{min-width:0}.audio-row-copy h3{font:400 18px/1.35 var(--font-display-literary, var(--font-book-title));margin:0 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audio-row-copy h3 a{color:var(--juf-ink-soft);text-decoration:none}.audio-row-author{display:inline-flex;align-items:center;gap:6px;max-width:100%;color:#5B6376;text-decoration:none;font-size:10.5px}.audio-row-author-avatar{width:26px;height:26px;border-radius:50%;overflow:hidden;flex:0 0 26px;background:var(--juf-surface-muted)}.audio-row-author-avatar>*{width:100%!important;height:100%!important;border-radius:50%!important}.audio-row-author>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audio-row-voice{display:grid;gap:2px;min-width:0}.audio-row-voice strong{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.audio-row-voice span,.audio-row-voice small{font-size:9.5px;color:#5B6376}.audio-row-stats{display:flex;gap:5px 8px;flex-wrap:wrap;color:#5B6376;font-size:9.5px}.audio-row-stats small{color:#282E37;font-weight:850}.audio-row-actions{display:grid;justify-items:center;gap:5px}.audio-row-actions>a{font-size:9.5px;color:#5B6376;text-decoration:none}.audio-inline-play{width:38px;height:38px;display:inline-grid;place-items:center;border:0;border-radius:50%;padding:0;background:var(--juf-header-footer);color:#fff;font:inherit;font-size:12px;font-weight:600;cursor:pointer;text-decoration:none}.audio-inline-play.is-link{display:inline-grid}.audio-inline-play.is-active{outline:2px solid #3346A8;outline-offset:2px;background:#3346A8}.audio-pagination{display:flex;justify-content:center;align-items:center;gap:14px;margin:26px 0}.audio-pagination a{padding:8px 12px;border:1px solid #D9D6D0;border-radius:999px;text-decoration:none;color:var(--juf-header-footer);background:#fff}.audio-pagination span{font-size:13px;color:#5B6376}
.audio-player-panel{position:sticky;top:92px;background:var(--juf-header-footer);border:1px solid #3B4256;border-radius:24px;padding:16px;color:#F6F5F2;box-shadow:0 22px 50px rgba(59, 66, 86, .16);overflow:hidden}.audio-player-mobile-toggle{display:none}.audio-player-video-stage{width:100%;aspect-ratio:16/9;border-radius:15px;overflow:hidden;background:#2C3243;margin-bottom:14px}.audio-player-video-stage>div,.audio-player-video-stage iframe{width:100%!important;height:100%!important;border:0}.audio-player-art{width:100%;aspect-ratio:1/1;border-radius:17px;overflow:hidden;background:#E4E6EC;display:grid;place-items:center;margin-bottom:14px}.audio-player-art>.juf-book-jacket{width:100%;height:100%;min-height:0;aspect-ratio:1/1;border-radius:0;box-shadow:none}.audio-player-art>span{font-family:var(--font-brand);font-size:38px;letter-spacing:.1em!important;color:var(--juf-header-footer)}.audio-player-provider{font-size:10.5px;text-transform:uppercase!important;letter-spacing:.12em!important;color:#F6F5F2;font-weight:900}.audio-player-panel h2{font-family:var(--font-heading);font-size:20px;line-height:1.35;margin:5px 0;color:#fff}.audio-player-panel>p{margin:2px 0;color:#F6F5F2;font-size:12.5px}.audio-player-narrator{min-height:18px}.audio-player-panel .juf-player-timeline{display:grid;grid-template-columns:auto 1fr auto;gap:8px;align-items:center;margin:15px 0 9px;font-size:10.5px;color:#F6F5F2}.audio-player-panel .juf-player-timeline input{width:100%;accent-color:#3B4256}.audio-player-panel .juf-player-controls{display:flex;justify-content:center;align-items:center;gap:12px;margin:10px 0}.audio-player-panel .juf-player-controls button{width:38px;height:38px;border:1px solid rgba(246, 245, 242, .28);border-radius:50%;background:rgba(246, 245, 242, .08);color:#fff;cursor:pointer}.audio-player-panel .juf-player-controls .juf-main-play{width:54px;height:54px;background:#3346A8;color:#fff;border-color:#3346A8;font-size:18px}.audio-player-panel .juf-player-tools{display:flex;justify-content:space-between;align-items:center;border-top:1px solid rgba(246, 245, 242, .16);padding-top:12px;font-size:11px}.audio-player-panel .juf-player-tools select{border:1px solid rgba(246, 245, 242, .28);border-radius:7px;padding:5px;background:#ECEAE6;color:var(--juf-header-footer)}.audio-player-panel .juf-player-tools button{border:0;background:none;color:#fff;cursor:pointer;font-size:18px}
.audio-detail-dashboard{margin-top:30px}.audio-detail-hero-v2{display:grid;grid-template-columns:210px minmax(0,1fr);gap:28px;padding:26px;background:var(--surface,#fff);border:1px solid var(--border,#D9D6D0);border-radius:22px}.audio-detail-art{min-width:0}.audio-detail-art>.juf-book-jacket{width:100%;aspect-ratio:2/3;min-height:0}.audio-detail-info .page-section-title{margin:3px 0 8px}.audio-detail-author{margin:0 0 10px;color:var(--muted,#5B6376)}.audio-detail-author a{color:inherit}.audio-detail-desc{line-height:1.75;color:var(--muted,#5B6376);max-width:720px}.audio-narrator-card{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 7px;border:1px solid var(--border,#D9D6D0);border-radius:999px;background:#F6F5F2;margin:5px 0 8px}.audio-narrator-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden;display:block}.audio-narrator-avatar .juf-author-art-avatar{width:34px;height:34px}.audio-narrator-card span:last-child{display:grid}.audio-narrator-card small{font-size:9px;color:var(--muted,#5B6376)}.audio-narrator-card strong{font-size:11.5px}.audio-detail-stats{display:flex;gap:8px 14px;flex-wrap:wrap;font-size:12px;color:var(--muted,#5B6376);margin:13px 0}.audio-premium-access{display:flex;gap:8px 14px;flex-wrap:wrap;align-items:center;padding:10px 12px;background:#ECEAE6;border-radius:10px;font-size:12px;margin:12px 0}.audio-premium-access span{color:var(--muted,#5B6376)}.audio-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.audio-primary-play,.audio-secondary-action{display:inline-flex;align-items:center;justify-content:center;padding:10px 15px;border-radius:999px;font-weight:800;text-decoration:none;font:inherit;cursor:pointer}.audio-primary-play{border:0;background:var(--text,#3346A8);color:#fff}.audio-secondary-action{border:1px solid var(--border,#D9D6D0);color:var(--text,#282E37);background:var(--surface,#fff)}.audio-playlist-section{margin-top:18px;background:var(--surface,#fff);border:1px solid var(--border,#D9D6D0);border-radius:20px;padding:20px}.audio-playlist-heading{display:flex;align-items:end;justify-content:space-between;gap:16px}.audio-playlist-heading span{font-size:12px;color:var(--muted,#5B6376)}.audio-playlist{list-style:none;padding:0;margin:12px 0 0}.audio-track-row{width:100%;display:grid;grid-template-columns:32px minmax(0,1fr) auto 32px;gap:9px;align-items:center;text-align:left;padding:11px 8px;border:0;border-bottom:1px solid var(--border,#D9D6D0);background:transparent;cursor:pointer;color:var(--text,#282E37)}.audio-track-row:hover,.audio-track-row.is-active{background:#F6F5F2}.audio-track-number{font-family:var(--font-heading);color:var(--muted,#5B6376)}.audio-track-copy{display:grid;min-width:0}.audio-track-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audio-track-copy small{color:var(--muted,#5B6376);font-size:11px;margin-top:3px}.audio-track-provider{font-size:9.5px;font-weight:800;color:var(--muted,#5B6376);padding:4px 6px;border:1px solid var(--border,#D9D6D0);border-radius:999px}.audio-track-action{text-align:center}.audio-empty-state.compact{padding:24px;text-align:center;color:var(--muted,#5B6376)}
@media(max-width:1180px){.audio-filter-bar{grid-template-columns:repeat(3,1fr)}.audio-filter-bar input{grid-column:span 2}.audio-dashboard-layout,.audio-detail-dashboard{grid-template-columns:minmax(0,1fr) 320px}.audio-library-table-head,.audio-library-row{grid-template-columns:30px minmax(230px,1.5fr) minmax(125px,.75fr) 84px 76px}}
@media(max-width:900px){.audio-dashboard-layout,.audio-detail-dashboard{display:block;margin-bottom:115px}.audio-library-table-head{display:none}.audio-library-row{grid-template-columns:28px minmax(0,1fr) 96px 72px;padding:11px 12px}.audio-row-voice{display:none}.audio-player-panel{position:fixed;z-index:120;left:10px;right:10px;bottom:10px;top:auto;width:auto;max-height:78px;border-radius:18px;padding:10px 62px 10px 12px;transition:max-height .25s ease,padding .25s ease}.audio-player-mobile-toggle{display:block;position:absolute;right:10px;top:10px;border:0;background:transparent;color:#F6F5F2;font-size:11px;font-weight:800;cursor:pointer}.audio-player-panel .audio-player-video-stage,.audio-player-panel .audio-player-art,.audio-player-panel .juf-player-timeline,.audio-player-panel .juf-player-tools,.audio-player-panel>p.audio-player-narrator{display:none}.audio-player-panel h2{font-size:14px;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62%}.audio-player-panel>p{font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:62%}.audio-player-panel .juf-player-controls{position:absolute;right:70px;top:13px;margin:0;gap:4px}.audio-player-panel .juf-player-controls button:not(.juf-main-play){display:none}.audio-player-panel .juf-player-controls .juf-main-play{width:44px;height:44px}.audio-player-panel.is-expanded{max-height:min(84vh,680px);padding:14px;overflow:auto}.audio-player-panel.is-expanded .audio-player-video-stage{display:block}.audio-player-panel.is-expanded .audio-player-art{display:grid;max-width:210px;margin:8px auto 12px}.audio-player-panel.is-expanded .juf-player-timeline{display:grid}.audio-player-panel.is-expanded .juf-player-tools{display:flex}.audio-player-panel.is-expanded>p.audio-player-narrator{display:block}.audio-player-panel.is-expanded .juf-player-controls{position:static;margin:10px 0}.audio-player-panel.is-expanded .juf-player-controls button:not(.juf-main-play){display:inline-block}.audio-player-panel.is-expanded h2{text-align:center;font-size:18px;max-width:none}.audio-player-panel.is-expanded>p{text-align:center;max-width:none}.audio-detail-hero-v2{grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:720px){.audio-hub-hero-v2{margin-left:12px;margin-right:12px;align-items:flex-start;padding:22px 18px}.audio-hub-count{display:none}.audio-collection-hero-cover{width:74px;flex-basis:74px}.audio-collection-shelf,.audio-filter-bar{margin-left:12px;margin-right:12px}.audio-filter-bar{grid-template-columns:1fr 1fr}.audio-filter-bar input{grid-column:1/-1}.audio-filter-bar button{grid-column:1/-1}.audio-dashboard-layout,.audio-detail-dashboard{width:calc(100% - 24px)}.audio-library-row{grid-template-columns:minmax(0,1fr) 64px;gap:9px}.audio-row-index,.audio-row-stats{display:none}.audio-row-book{grid-template-columns:48px minmax(0,1fr)}.audio-row-cover{width:48px;height:64px}.audio-row-actions{justify-items:end}.audio-collection-card{flex-basis:220px}.audio-detail-hero-v2{grid-template-columns:120px minmax(0,1fr);gap:16px;padding:16px}.audio-detail-desc{grid-column:1/-1}.audio-track-provider{display:none}.audio-track-row{grid-template-columns:28px minmax(0,1fr) 28px}}
@media(max-width:430px){.audio-hub-hero-v2{display:block}.audio-collection-hero-cover{margin-bottom:12px}.audio-filter-bar{grid-template-columns:1fr}.audio-filter-bar input,.audio-filter-bar button{grid-column:auto}.audio-library-row{padding:10px}.audio-row-cover{width:44px;height:60px}.audio-row-copy h3{font-size:13.5px}.audio-row-author-avatar{width:22px;height:22px;flex-basis:22px}.audio-row-actions>a{display:none}.audio-detail-hero-v2{grid-template-columns:92px minmax(0,1fr)}.audio-detail-info .page-section-title{font-size:22px}.audio-narrator-card,.audio-detail-desc{grid-column:1/-1}.audio-playlist-section{padding:14px}.audio-player-panel{left:6px;right:6px;bottom:6px}}
.audio-player-dynamic-art{width:100%;height:100%;object-fit:cover;display:block}

/* =========================================================
   V24 Phase 9: Reader Profile / Personal Library Hub
   ========================================================= */
.profile-hub{max-width:1180px;margin:34px auto 76px;padding:0 22px;box-sizing:border-box;scroll-behavior:smooth}
.profile-hub-hero{background:linear-gradient(135deg,var(--juf-surface-paper),#ECEAE6);border:1px solid #D9D6D0;border-radius:24px;padding:26px;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(360px,.75fr);gap:28px;align-items:center;box-shadow:0 16px 42px rgba(40, 46, 55, .06)}
.profile-hub-identity{display:flex;gap:18px;align-items:center;min-width:0}.profile-hub-avatar{width:82px;height:82px;flex:0 0 82px;border-radius:26px;background:#3B4256;color:#F6F5F2;display:grid;place-items:center;font-family:var(--font-heading);font-size:32px;font-weight:800;box-shadow:inset 0 0 0 1px rgba(255, 255, 255, .12)}
.profile-hub-identity h1{font-family:var(--font-display-literary, var(--font-book-title));font-size:30px;font-weight:400;line-height:1.25;margin:4px 0 5px;color:#282E37}.profile-hub-identity p{margin:0;color:#5B6376;font-size:13px;overflow-wrap:anywhere}.profile-hub-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.profile-hub-actions a{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid #D9D6D0;border-radius:999px;text-decoration:none;color:#282E37;background:rgba(255, 255, 255, .58);font-size:12px;font-weight:750}.profile-hub-actions a:hover{border-color:#2C3243;color:#2C3243}
.profile-hub-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.profile-hub-stats a{min-width:0;text-decoration:none;border:1px solid #D9D6D0;background:rgba(255, 255, 255, .7);border-radius:15px;padding:12px 10px;text-align:center;color:#282E37;transition:transform .18s ease,border-color .18s ease}.profile-hub-stats a:hover{transform:translateY(-2px);border-color:var(--text-muted)}.profile-hub-stats strong{display:block;font-family:var(--font-heading);font-size:22px;color:#282E37;line-height:1.1}.profile-hub-stats span{display:block;margin-top:4px;font-size:10.5px;color:var(--text-muted);white-space:nowrap}
.profile-hub-jump{display:flex;gap:8px;overflow-x:auto;padding:14px 2px 8px;margin:0 0 26px;scrollbar-width:none}.profile-hub-jump::-webkit-scrollbar{display:none}.profile-hub-jump a{flex:0 0 auto;text-decoration:none;color:var(--text-muted);background:#fff;border:1px solid #D9D6D0;border-radius:999px;padding:8px 13px;font-size:11.5px;font-weight:750}.profile-hub-jump a:hover{color:#2C3243;border-color:var(--text-muted)}
.profile-hub-section{scroll-margin-top:92px;margin:0 0 54px}.profile-hub-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 18px}.profile-hub-heading h2{font-family:var(--font-heading-editorial, var(--font-heading));font-size:26px;font-weight:500;line-height:1.25;margin:3px 0 0;color:var(--text-main)}.profile-hub-heading>span,.profile-heading-link{font-size:11.5px;color:#5B6376;text-decoration:none;font-weight:500}.profile-heading-link{color:#3B4256}.profile-heading-link:hover{text-decoration:underline}
.profile-hub-notice{padding:12px 14px;border-radius:12px;margin:0 0 18px;font-size:13px;border:1px solid}.profile-hub-notice.is-success{background:#E4E6EC;border-color:#E4E6EC;color:#2E7A4F}.profile-hub-notice.is-error{background:#F6F5F2;border-color:#D9D6D0;color:#5B6376}.profile-hub-empty{background:#fff;border:1px solid var(--juf-light-surface);border-radius:18px;padding:28px;text-align:center;color:#5B6376}.profile-hub-empty strong{display:block;font-family:var(--font-heading);font-size:18px;color:#282E37}.profile-hub-empty p{max-width:610px;margin:7px auto 12px;line-height:1.7;font-size:13px}.profile-hub-empty a{color:#3B4256;font-weight:800;text-decoration:none;font-size:12.5px}.profile-hub-empty.is-dark{background:#2C3037;border-color:#3A3F47;color:#ECE8E1}.profile-hub-empty.is-dark strong{color:#ECE8E1}
.profile-continue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-continue-card{display:grid;grid-template-columns:92px minmax(0,1fr);gap:16px;align-items:center;background:#fff;border:1px solid #D9D6D0;border-radius:18px;padding:15px;min-width:0}.profile-cover-link{text-decoration:none}.profile-card-copy{min-width:0}.profile-kicker{display:block;color:#3B4256;font-size:10.5px;font-weight:800;letter-spacing:.02em;margin-bottom:3px}.profile-card-copy h3,.profile-shelf-card-v25 h3,.profile-listening-card h3{font-family:var(--font-heading);font-size:17px;line-height:1.35;margin:0 0 3px}.profile-card-copy h3 a,.profile-shelf-card-v25 h3 a,.profile-listening-card h3 a{color:var(--text-main);text-decoration:none}.profile-card-copy p,.profile-shelf-card-v25 p,.profile-listening-card p{font-size:11.5px;color:#5B6376;margin:0 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-card-copy small{display:block;color:#5B6376;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:8px}.profile-progress{height:6px;background:var(--juf-light-surface);border-radius:999px;overflow:hidden;margin:7px 0}.profile-progress i{display:block;height:100%;background:#3B4256;border-radius:inherit}.profile-progress.is-audio i{background:#3B4256}.profile-text-action{display:inline-block;color:#3B4256;text-decoration:none;font-size:11.5px;font-weight:800;margin-top:2px}
.profile-history-details{margin-top:14px;border:1px solid #D9D6D0;background:#F6F5F2;border-radius:14px;overflow:hidden}.profile-history-details summary{cursor:pointer;list-style:none;padding:12px 14px;font-size:12px;font-weight:800;color:#282E37;display:flex;justify-content:space-between;gap:12px}.profile-history-details summary::-webkit-details-marker{display:none}.profile-history-details summary span{font-weight:600;color:#5B6376}.profile-history-list{border-top:1px solid #D9D6D0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.profile-history-list a{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center;text-decoration:none;color:#282E37;padding:10px 13px;border-bottom:1px solid #D9D6D0;font-size:11px;min-width:0}.profile-history-list a:nth-last-child(-n+2){border-bottom:0}.profile-history-list strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-history-list span{color:#3B4256;font-weight:700}.profile-history-list time{color:#5B6376;font-size:10px}
.profile-shelf-grid-v25{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.profile-shelf-card-v25{display:grid;grid-template-columns:76px minmax(0,1fr);gap:13px;align-items:center;background:#fff;border:1px solid var(--juf-light-surface);border-radius:16px;padding:13px;min-width:0}.profile-inline-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.profile-inline-actions a,.profile-inline-actions button{border:0;background:none;padding:0;color:#3B4256;text-decoration:none;font:inherit;font-size:10.8px;font-weight:800;cursor:pointer}.profile-inline-actions button{color:#5B6376}.profile-inline-actions form{margin:0}
.profile-premium-grid-v25{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-premium-grid-v25 article{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:center;background:#3B4256;color:#F6F5F2;border-radius:18px;padding:14px;min-width:0}.profile-premium-grid-v25 article>div>span{display:block;color:#5B6376;font-size:10px;font-weight:850;margin-bottom:3px}.profile-premium-grid-v25 h3{font-family:var(--font-heading);font-size:17px;margin:0 0 3px;color:#fff}.profile-premium-grid-v25 p{font-size:11px;color:#F6F5F2;margin:0 0 8px}.profile-premium-grid-v25 article>div>div{display:flex;gap:12px}.profile-premium-grid-v25 article>div>div a{color:#F6F5F2;text-decoration:none;font-size:11px;font-weight:800}.profile-premium-grid-v25 article>div>div a+ a{color:#E4E6EC}
.profile-listening-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-listening-card{display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:center;background:#E4E6EC;border:1px solid #E4E6EC;border-radius:17px;padding:14px;min-width:0}.profile-listen-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:10.5px;color:#5B6376}.profile-listen-meta a{margin-left:auto;color:#3B4256;text-decoration:none;font-weight:800}.profile-listen-meta time{color:#5B6376}
.profile-purchase-list{display:grid;gap:10px}.profile-purchase-row{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(220px,1.6fr) auto;gap:14px;align-items:center;background:#fff;border:1px solid var(--juf-light-surface);border-radius:15px;padding:12px 14px}.profile-purchase-row>div{display:grid;gap:4px;min-width:0}.profile-purchase-row strong,.profile-purchase-row strong a{color:var(--text-main);text-decoration:none}.profile-purchase-row small,.profile-purchase-row time{font-size:10.5px;color:#5B6376}.profile-purchase-row time{white-space:nowrap;text-align:right}.profile-status-chip.is-error{background:#ECEAE6;color:#5B6376}
.profile-follow-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-follow-strip article{display:flex;gap:11px;align-items:center;background:#fff;border:1px solid var(--juf-light-surface);border-radius:16px;padding:12px;min-width:0}.profile-author-avatar{width:52px;height:52px;flex:0 0 52px;border-radius:50%;overflow:hidden;background:#ECEAE6;text-decoration:none}.profile-follow-strip article>div{min-width:0}.profile-follow-strip h3{font-family:var(--font-heading);font-size:14px;margin:0 0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-follow-strip h3 a{color:#282E37;text-decoration:none}.profile-follow-strip p{font-size:10.5px;color:#5B6376;margin:0 0 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-follow-strip form{margin:0}.profile-follow-strip button{border:0;background:none;padding:0;color:#5B6376;font-size:10px;font-weight:750;cursor:pointer}.profile-release-block{margin-top:18px;padding:15px;border:1px solid #D9D6D0;border-radius:16px;background:#F6F5F2}.profile-release-block>h3{font-family:var(--font-heading);font-size:17px;margin:0 0 11px}.profile-release-block>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.profile-release-block a{display:grid;grid-template-columns:54px minmax(0,1fr);gap:9px;align-items:center;text-decoration:none;color:#282E37;min-width:0}.profile-release-block strong,.profile-release-block small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-release-block strong{font-size:11.5px}.profile-release-block small{font-size:9.5px;color:#5B6376;margin-top:2px}
.profile-review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-review-list article{background:#fff;border:1px solid var(--juf-light-surface);border-radius:17px;padding:16px;min-width:0}.profile-review-top{display:flex;justify-content:space-between;gap:12px;align-items:center}.profile-review-top>div{display:flex;gap:6px;flex-wrap:wrap}.profile-review-top time{font-size:10px;color:#5B6376}.profile-status-chip,.profile-rating-chip{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:9.5px;font-weight:850}.profile-status-chip.is-approved{background:#E4E6EC;color:#2E7A4F}.profile-status-chip.is-pending{background:#ECEAE6;color:#282E37}.profile-rating-chip{background:#ECEAE6;color:#5B6376}.profile-review-list h3{font-family:var(--font-heading);font-size:17px;margin:10px 0 2px}.profile-review-list h3 a{color:#282E37;text-decoration:none}.profile-review-author{font-size:10.5px;color:#5B6376;margin:0}.profile-review-list blockquote{border:0;margin:10px 0 12px;padding:0;color:#5B6376;font-family:var(--font-reader);font-size:12.5px;line-height:1.75}
.profile-notes-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-note-panel{background:#fff;border:1px solid var(--juf-light-surface);border-radius:17px;padding:16px}.profile-note-panel>h3{font-family:var(--font-heading);font-size:17px;margin:0 0 11px}.profile-note-panel>p{font-size:12px;color:#5B6376;line-height:1.7}.profile-note-panel>div{display:grid;gap:8px}.profile-note-panel a{display:block;border:1px solid #D9D6D0;border-radius:11px;padding:10px 11px;text-decoration:none;color:#282E37}.profile-note-panel strong,.profile-note-panel span,.profile-note-panel small{display:block}.profile-note-panel strong{font-size:11.8px}.profile-note-panel span{font-family:var(--font-reader);font-size:10.8px;line-height:1.55;color:#5B6376;margin-top:3px}.profile-note-panel small{font-size:9.5px;color:#3B4256;font-weight:750;margin-top:4px}.profile-highlight-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;vertical-align:1px;background:#D9D6D0}.profile-highlight-mint{background:#2E7A4F}.profile-highlight-rose{background:#D9D6D0}
.profile-account-bridge{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#3B4256;color:#F6F5F2;border-radius:20px;padding:22px 24px}.profile-account-bridge span{font-size:9.5px;letter-spacing:.14em;color:#5B6376;font-weight:850}.profile-account-bridge h2{font-family:var(--font-heading);font-size:20px;color:#F6F5F2;margin:4px 0}.profile-account-bridge p{font-size:11.5px;line-height:1.65;color:#F6F5F2;margin:0;max-width:680px}.profile-account-bridge>a{flex:0 0 auto;border:1px solid rgba(255, 255, 255, .22);color:#F6F5F2;text-decoration:none;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:800}
.juf-profile-cover-92{width:92px!important;min-height:138px!important}.juf-profile-cover-76{width:76px!important;min-height:114px!important}.juf-profile-cover-54{width:54px!important;min-height:81px!important}
@media(max-width:1040px){.profile-hub-hero{grid-template-columns:1fr}.profile-shelf-grid-v25,.profile-follow-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-release-block>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.profile-continue-grid,.profile-premium-grid-v25,.profile-listening-grid,.profile-review-list,.profile-notes-grid{grid-template-columns:1fr}.profile-purchase-row{grid-template-columns:1fr;gap:7px}.profile-purchase-row time{text-align:left}.profile-history-list{grid-template-columns:1fr}.profile-history-list a:nth-last-child(-n+2){border-bottom:1px solid #D9D6D0}.profile-history-list a:last-child{border-bottom:0}.profile-hub-heading{align-items:flex-start}.profile-account-bridge{align-items:flex-start;flex-direction:column}.profile-account-bridge>a{align-self:flex-start}}
@media(max-width:620px){.profile-hub{padding:0 14px;margin-top:20px}.profile-hub-hero{padding:18px;border-radius:20px}.profile-hub-identity{align-items:flex-start}.profile-hub-avatar{width:62px;height:62px;flex-basis:62px;border-radius:20px;font-size:25px}.profile-hub-identity h1{font-size:23px}.profile-hub-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-hub-stats strong{font-size:19px}.profile-shelf-grid-v25,.profile-follow-strip{grid-template-columns:1fr}.profile-hub-heading h2{font-size:22px}.profile-release-block>div{grid-template-columns:1fr}.profile-history-list a{grid-template-columns:minmax(0,1fr) auto}.profile-history-list time{display:none}}
@media(max-width:430px){.profile-hub-identity{display:grid;grid-template-columns:54px minmax(0,1fr);gap:12px}.profile-hub-avatar{width:54px;height:54px;flex-basis:54px;border-radius:18px}.profile-hub-actions{grid-column:1/-1}.profile-continue-card{grid-template-columns:78px minmax(0,1fr);padding:12px}.profile-continue-card .juf-profile-cover-92{width:78px!important;min-height:117px!important}.profile-hub-stats a{padding:10px 5px}.profile-hub-stats span{font-size:9.5px}.profile-listen-meta a{margin-left:0}}

/* V24 Phase 10 — Books catalogue, universal search and discovery surfaces */
.juf-books-page,.juf-search-page{padding-bottom:72px}.juf-books-hero,.juf-search-hero{margin-top:34px;border:1px solid var(--border-light);border-radius:28px;background:linear-gradient(135deg,rgba(255, 255, 255, .9),rgba(246, 245, 242, .78));box-shadow:0 18px 52px rgba(40, 46, 55, .06)}
.juf-books-hero{display:flex;align-items:end;justify-content:space-between;gap:28px;padding:38px 42px}.juf-books-hero h1,.juf-search-hero h1{margin:7px 0 8px;font-family:var(--font-heading);font-size:clamp(30px,4vw,50px);line-height:1.12;color:var(--text-main)}.juf-books-hero p,.juf-search-hero p{max-width:720px;margin:0;color:var(--text-muted);font-size:16px;line-height:1.75}.juf-books-hero-count{min-width:132px;text-align:center;padding:17px 20px;border-radius:20px;background:var(--text-main);color:#fff}.juf-books-hero-count strong{display:block;font-family:var(--font-heading);font-size:28px}.juf-books-hero-count span{display:block;margin-top:2px;font-size:12px;opacity:.75}
.juf-books-filter{display:grid;grid-template-columns:minmax(210px,1.6fr) repeat(4,minmax(120px,.75fr)) auto auto;gap:10px;align-items:end;margin:18px 0 0;padding:14px;border:1px solid var(--border-light);border-radius:18px;background:var(--surface);box-shadow:0 8px 28px rgba(40, 46, 55, .045)}.juf-books-filter label{display:grid;gap:5px;color:var(--text-muted);font-size:11px;font-weight:700}.juf-books-filter select,.juf-books-filter input{width:100%;height:44px;border:1px solid var(--border-light);border-radius:12px;background:#fff;color:var(--text-main);font-family:var(--font-ui);font-size:14px;outline:none}.juf-books-filter select{padding:0 10px}.juf-books-filter input{padding:0 12px 0 38px}.juf-books-filter select:focus,.juf-books-filter input:focus{border-color:var(--accent-rust);box-shadow:0 0 0 3px rgba(59, 66, 86, .1)}.juf-books-search-field{position:relative}.juf-books-search-field>span{position:absolute}.juf-books-search-field svg{position:absolute;left:12px;bottom:13px;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;color:var(--text-muted);z-index:1}.juf-books-filter button,.juf-filter-reset{height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;font-family:var(--font-ui);font-weight:700;white-space:nowrap}.juf-books-filter button{padding:0 20px;border:0;background:var(--text-main);color:#fff;cursor:pointer}.juf-filter-reset{padding:0 12px;border:1px solid var(--border-light);color:var(--text-muted);text-decoration:none;background:#fff}.juf-active-filter-note{margin:10px 4px 0;color:var(--text-muted);font-size:13px}.juf-active-filter-note a{margin-left:10px;color:var(--accent-rust)}
.juf-books-results{margin-top:36px}.juf-catalog-heading,.juf-search-group-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:20px}.juf-catalog-heading h2,.juf-search-group-head h2{margin:3px 0 0;font-family:var(--font-heading);font-size:28px}.juf-catalog-heading>p{margin:0;color:var(--text-muted);font-size:13px}.juf-book-catalog-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:30px 20px}.juf-catalog-book-card{min-width:0}.juf-catalog-cover-link{display:block;text-decoration:none}.juf-catalog-cover-link>.juf-book-jacket{width:100%;max-width:none;min-height:0;aspect-ratio:2/3;transition:transform .28s ease,box-shadow .28s ease}.juf-catalog-book-card:hover .juf-catalog-cover-link>.juf-book-jacket{transform:translateY(-4px);box-shadow:0 18px 30px rgba(40, 46, 55, .15)}.juf-catalog-book-meta{padding:11px 2px 0}.juf-catalog-badges{display:flex;gap:5px;min-height:18px}.juf-catalog-badges span{display:inline-flex;padding:2px 6px;border-radius:999px;background:rgba(59, 66, 86, .09);color:var(--accent-rust);font-size:9px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}.juf-catalog-book-meta h3{margin:5px 0 2px;font-family:var(--font-heading);font-size:17px;line-height:1.35}.juf-catalog-book-meta h3 a{color:var(--text-main);text-decoration:none}.juf-catalog-author{display:block;color:var(--text-muted);font-size:12px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.juf-catalog-card-foot{display:flex;justify-content:space-between;gap:7px;margin-top:7px;font-size:11px}.juf-catalog-card-foot span{color:#5B6376}.juf-catalog-card-foot a{color:var(--text-muted);text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.juf-catalog-empty{padding:54px 24px;border:1px dashed var(--border-light);border-radius:22px;text-align:center;background:rgba(255, 255, 255, .55)}.juf-catalog-empty strong{display:block;font-family:var(--font-heading);font-size:23px}.juf-catalog-empty p{color:var(--text-muted)}.juf-catalog-empty a{display:inline-flex;padding:10px 15px;border-radius:999px;background:var(--text-main);color:#fff;text-decoration:none;font-weight:700}
.juf-search-hero{padding:44px;text-align:center}.juf-search-hero p{margin-left:auto;margin-right:auto}.juf-universal-search{position:relative;display:flex;max-width:760px;margin:24px auto 0;background:#fff;border:1px solid var(--border-light);border-radius:17px;padding:6px;box-shadow:0 14px 36px rgba(40, 46, 55, .08)}.juf-universal-search>svg{position:absolute;left:18px;top:18px;width:20px;height:20px;fill:none;stroke:var(--text-muted);stroke-width:1.8}.juf-universal-search>input{flex:1;min-width:0;border:0;background:transparent;padding:0 12px 0 41px;font:500 15px var(--font-ui);outline:none;color:var(--text-main)}.juf-universal-search>button{height:44px;padding:0 23px;border:0;border-radius:12px;background:var(--text-main);color:#fff;font:700 14px var(--font-ui);cursor:pointer}.juf-universal-search .juf-search-suggestions{top:calc(100% + 8px);left:0;right:0;text-align:left}.juf-search-start{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:20px}.juf-search-start>a{display:grid;gap:4px;padding:22px;border:1px solid var(--border-light);border-radius:18px;background:var(--surface);text-decoration:none;color:var(--text-main)}.juf-search-start strong{font-family:var(--font-heading);font-size:21px}.juf-search-start span{color:var(--text-muted);font-size:12px}.juf-search-summary{margin-top:24px}.juf-search-summary p{margin:0;color:var(--text-muted)}.juf-search-group{margin-top:38px;padding-top:30px;border-top:1px solid var(--border-light)}.juf-search-group-head span{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-rust)}.juf-search-group-head a{font-size:13px;color:var(--text-main);text-decoration:none;border-bottom:1px solid currentColor}.juf-search-books-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.juf-search-book{display:grid;grid-template-columns:68px minmax(0,1fr);gap:11px;padding:10px;border:1px solid var(--border-light);border-radius:16px;background:var(--surface);text-decoration:none;color:var(--text-main)}.juf-search-book>.juf-book-jacket{width:68px!important;min-height:102px!important;aspect-ratio:2/3}.juf-search-book>span{min-width:0;padding-top:4px}.juf-search-book strong,.juf-search-book small,.juf-search-book em{display:block}.juf-search-book strong{font-family:var(--font-heading);font-size:14px;line-height:1.35}.juf-search-book small,.juf-search-book em{margin-top:4px;color:var(--text-muted);font-size:10.5px;font-style:normal}.juf-search-author-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.juf-search-author-grid>a{display:flex;gap:11px;align-items:center;padding:14px;border:1px solid var(--border-light);border-radius:17px;background:var(--surface);text-decoration:none;color:var(--text-main)}.juf-search-author-avatar{width:52px;height:52px;flex:0 0 52px;border-radius:50%;overflow:hidden}.juf-search-author-avatar>.juf-author-avatar{width:100%!important;height:100%!important}.juf-search-author-grid a>span:last-child{min-width:0}.juf-search-author-grid strong,.juf-search-author-grid small,.juf-search-author-grid em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.juf-search-author-grid strong{font-family:var(--font-heading);font-size:15px}.juf-search-author-grid small,.juf-search-author-grid em{font-size:10.5px;color:var(--text-muted);font-style:normal}.juf-search-audio-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.juf-search-audio-grid>a{display:flex;gap:12px;align-items:center;padding:15px;border-radius:17px;background:var(--text-main);color:#fff;text-decoration:none}.juf-search-audio-play{display:grid;place-items:center;width:39px;height:39px;flex:0 0 39px;border-radius:50%;background:rgba(255, 255, 255, .13);font-size:12px}.juf-search-audio-grid a>span:last-child{min-width:0}.juf-search-audio-grid strong,.juf-search-audio-grid small,.juf-search-audio-grid em{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.juf-search-audio-grid strong{font-family:var(--font-heading);font-size:15px}.juf-search-audio-grid small,.juf-search-audio-grid em{font-size:10.5px;opacity:.7;font-style:normal}.juf-search-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.juf-search-category-grid>a{position:relative;overflow:hidden;display:grid;gap:3px;padding:20px;border:1px solid var(--border-light);border-radius:17px;background:var(--surface);text-decoration:none;color:var(--text-main)}.juf-search-category-grid>a:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--search-category-color)}.juf-search-category-grid strong{font-family:var(--font-heading);font-size:18px}.juf-search-category-grid span{font-size:11px;color:var(--text-muted)}
.juf-search-suggestion-meta{display:flex!important;align-items:center;gap:7px!important;min-width:0}.juf-search-suggestion-meta b{font-size:9px;color:var(--accent-rust);text-transform:uppercase}.juf-search-suggestion-meta small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text-muted);font-size:10px}
@media(max-width:1120px){.juf-books-filter{grid-template-columns:repeat(3,minmax(0,1fr))}.juf-books-search-field{grid-column:span 2}.juf-book-catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.juf-search-books-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.juf-search-author-grid,.juf-search-audio-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.juf-books-hero{align-items:flex-start;padding:28px}.juf-books-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.juf-books-search-field{grid-column:1/-1}.juf-book-catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 14px}.juf-search-hero{padding:32px 24px}.juf-search-start{grid-template-columns:repeat(2,1fr)}.juf-search-books-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.juf-search-author-grid,.juf-search-audio-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.juf-search-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.juf-books-page,.juf-search-page{padding-bottom:46px}.juf-books-hero,.juf-search-hero{margin:18px 12px 0;border-radius:21px}.juf-books-hero{display:grid;padding:22px}.juf-books-hero h1,.juf-search-hero h1{font-size:29px}.juf-books-hero-count{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:11px 14px;text-align:left}.juf-books-hero-count strong{font-size:22px}.juf-books-filter{grid-template-columns:1fr;margin-top:12px}.juf-books-search-field{grid-column:auto}.juf-books-filter button,.juf-filter-reset{width:100%}.juf-catalog-heading,.juf-search-group-head{align-items:flex-start}.juf-catalog-heading>p{display:none}.juf-book-catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 12px}.juf-catalog-book-meta h3{font-size:15px}.juf-search-hero{padding:25px 15px}.juf-universal-search{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:5px}.juf-universal-search>svg{left:15px;top:17px}.juf-universal-search>input{height:42px;padding-left:38px}.juf-universal-search>button{height:42px;padding:0 14px}.juf-search-start{grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.juf-search-start>a{padding:15px}.juf-search-start strong{font-size:17px}.juf-search-books-grid,.juf-search-author-grid,.juf-search-audio-grid,.juf-search-category-grid{grid-template-columns:1fr}.juf-search-group{margin-top:26px;padding-top:23px}.juf-search-group-head h2{font-size:23px}.juf-search-book{grid-template-columns:58px minmax(0,1fr)}.juf-search-book>.juf-book-jacket{width:58px!important;min-height:87px!important}}

.juf-search-author-avatar>img,.juf-search-author-avatar>.juf-author-art-avatar{width:100%!important;height:100%!important;display:block;object-fit:cover;border-radius:50%}


/* V24 Phase 11 — calm legal/publication surfaces */
.juf-policy-shell{max-width:900px;margin:46px auto 80px;background:var(--card-bg);border:1px solid var(--border-light);border-radius:18px;padding:clamp(24px,5vw,46px);box-shadow:var(--shadow-soft)}
.juf-policy-shell h1{margin:0 0 8px;font-size:clamp(28px,5vw,42px)}.juf-policy-lead{color:var(--text-muted);line-height:1.8;margin:0 0 28px}.juf-policy-shell h2{font-size:21px;margin:30px 0 9px}.juf-policy-shell p,.juf-policy-shell li{font-size:15.5px;line-height:1.85;color:var(--text-charcoal)}.juf-policy-shell a{color:var(--accent-rust);font-weight:700}.juf-policy-note{padding:14px 16px;background:#F6F5F2;border-left:3px solid var(--accent-rust);border-radius:8px;margin:18px 0}.juf-policy-meta{font-size:12px;color:var(--text-muted);margin-bottom:24px}.juf-policy-form{display:grid;gap:14px;margin-top:24px}.juf-policy-form label{font-size:13px;font-weight:700;display:grid;gap:6px}.juf-policy-form input,.juf-policy-form select,.juf-policy-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--border-light);border-radius:9px;background:#fff;padding:11px 12px;font:inherit;color:var(--text-main)}.juf-policy-form textarea{min-height:120px;resize:vertical}.juf-policy-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.juf-policy-check{display:flex!important;grid-template-columns:none!important;gap:9px;align-items:flex-start;font-weight:500!important}.juf-policy-check input{width:auto;margin-top:5px}.juf-policy-success,.juf-policy-error{padding:13px 15px;border-radius:9px;margin:16px 0;font-size:14px}.juf-policy-success{background:#E4E6EC;color:#2E7A4F}.juf-policy-error{background:#F6F5F2;color:#5B6376}.juf-book-publication-card{margin-top:24px;padding:24px;background:#fff;border:1px solid #D9D6D0;border-radius:18px}.juf-publication-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.juf-publication-facts div{padding:11px 12px;border-radius:10px;background:#ECEAE6}.juf-publication-facts dt{font-size:10.5px;text-transform:uppercase;letter-spacing:.05em;color:#5B6376}.juf-publication-facts dd{margin:3px 0 0;font-size:13.5px;font-weight:700}.juf-public-rights-note{display:grid;gap:3px;padding:12px 14px;border:1px solid #D9D6D0;background:#E4E6EC;border-radius:10px;margin-top:12px}.juf-public-rights-note strong{font-size:13.5px;color:#2E7A4F}.juf-public-rights-note span,.juf-public-rights-note small,.juf-source-attribution,.juf-rights-help{font-size:12px;color:#5B6376;line-height:1.65}.juf-source-attribution a,.juf-rights-help a{color:var(--accent-rust);font-weight:700}@media(max-width:700px){.juf-policy-grid{grid-template-columns:1fr}.juf-publication-facts{grid-template-columns:1fr 1fr}.juf-policy-shell{margin-top:24px;border-radius:14px}}@media(max-width:420px){.juf-publication-facts{grid-template-columns:1fr}}


/* V24 Phase 14 — Premium Pass status inside Reader Profile */
.profile-premium-pass-v26{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.7fr);gap:24px;align-items:center;margin:0 0 28px;padding:22px 24px;border-radius:20px;background:linear-gradient(125deg,#3B4256,#3B4256);color:#F6F5F2;border:1px solid #3B4256;box-shadow:0 14px 36px rgba(40, 46, 55, .08)}
.profile-premium-pass-v26>div:first-child>span{display:block;color:#5B6376;font-size:10px;font-weight:900;letter-spacing:.1em;margin-bottom:5px}.profile-premium-pass-v26 h3{font-family:var(--font-heading);font-size:21px;margin:0 0 6px;color:#fff}.profile-premium-pass-v26 p{margin:0;color:#F6F5F2;font-size:12.5px;line-height:1.7;max-width:650px}.profile-premium-pass-meta-v26{display:grid;gap:3px;padding-left:20px;border-left:1px solid rgba(255, 255, 255, .13)}.profile-premium-pass-meta-v26 small{font-size:10px;color:#5B6376}.profile-premium-pass-meta-v26 strong{font-family:var(--font-heading);font-size:16px;color:#F6F5F2}.profile-premium-pass-meta-v26 em{font-size:10px;color:#2E7A4F;font-style:normal}.profile-premium-pass-meta-v26 a,.profile-premium-pass-v26.is-inactive>a{margin-top:7px;color:#F6F5F2;text-decoration:none;font-size:11px;font-weight:850}.profile-premium-pass-v26.is-inactive{grid-template-columns:minmax(0,1fr) auto;background:#ECEAE6;color:#282E37;border-color:#D9D6D0;box-shadow:none}.profile-premium-pass-v26.is-inactive h3{color:#282E37}.profile-premium-pass-v26.is-inactive p{color:#5B6376}.profile-premium-pass-v26.is-inactive>div:first-child>span{color:#5B6376}.profile-premium-pass-v26.is-inactive>a{color:#282E37;white-space:nowrap}.profile-premium-owned-heading-v26{padding-top:2px}
@media(max-width:700px){.profile-premium-pass-v26,.profile-premium-pass-v26.is-inactive{grid-template-columns:1fr;gap:16px;padding:18px}.profile-premium-pass-meta-v26{padding-left:0;padding-top:14px;border-left:0;border-top:1px solid rgba(255, 255, 255, .13)}.profile-premium-pass-v26.is-inactive>a{justify-self:start}}


/* ========================================================================
   JUFbook Admin Login — approved clean editorial reference
   ======================================================================== */
.juf-admin-auth-page-v27{min-height:100vh;margin:0;padding:34px 24px 48px;background:#F6F5F2;color:#2F5D9E;font-family:'Noto Sans Bengali','Kalpurush','SolaimanLipi',var(--font-ui),sans-serif}
.admin-auth-page-wrap-v31{width:min(1240px,100%);margin:0 auto}
.admin-auth-shell-v27{width:min(1100px,100%);min-height:610px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(390px,.82fr);overflow:hidden;border:1px solid #D9D6D0;border-radius:22px;background:#fff;box-shadow:0 24px 70px rgba(59, 66, 86, .10)}
.admin-auth-visual-v27{min-width:0;min-height:610px;background:#3B4256 url('../images/auth/admin-login-bg-1280.webp') center/cover no-repeat}
.admin-auth-form-side-v27{display:flex;flex-direction:column;justify-content:center;padding:42px clamp(34px,4.5vw,54px);background:#fff}
.admin-auth-logo-v31{display:grid;justify-items:center;gap:3px;width:max-content;margin:0 auto 12px;text-decoration:none}.admin-auth-logo-v31 img{display:block;width:104px;height:43px;object-fit:contain}.admin-auth-logo-v31 span{color:#3B4256;font-size:10px;font-weight:800;letter-spacing:.24em}
.admin-auth-portal-badge-v31{align-self:center;display:inline-flex;align-items:center;justify-content:center;margin-bottom:20px;padding:5px 10px;border:1px solid #D9D6D0;border-radius:999px;background:#E4E6EC;color:#3B4256;font-size:9.5px;font-weight:700}
.admin-auth-form-head-v27{text-align:center}.admin-auth-form-head-v27 h1{margin:0;color:#2F5D9E;font-family:'Noto Sans Bengali','Kalpurush','SolaimanLipi',var(--font-ui),sans-serif;font-size:25px;line-height:1.25;font-weight:800}.admin-auth-form-head-v27 p{margin:7px 0 0;color:#5B6376;font-size:11px;line-height:1.6}
.admin-auth-notice-v27,.admin-auth-alert-v27{margin:17px 0 -2px;padding:10px 12px;border-radius:9px;font-size:11px;line-height:1.55}.admin-auth-notice-v27{border:1px solid #E4E6EC;background:#E4E6EC;color:#2E7A4F}.admin-auth-alert-v27{border:1px solid #D9D6D0;background:#F6F5F2;color:#5B6376}
.admin-auth-form-v27{display:grid;gap:14px;margin-top:23px}.admin-auth-form-v27 label{display:grid;gap:6px;color:#3B4256;font-size:11px;font-weight:750}.admin-auth-input-wrap-v31{position:relative;display:block}.admin-auth-input-wrap-v31>span:first-child{position:absolute;z-index:2;left:13px;top:50%;transform:translateY(-50%);color:#5B6376;font-size:14px;pointer-events:none}.admin-auth-form-v27 input{width:100%;min-height:45px;padding:10px 12px 10px 41px;border:1px solid #D9D6D0;border-radius:8px;background:#fff;color:#2F5D9E;font:600 13px 'Noto Sans Bengali','Kalpurush','SolaimanLipi',var(--font-ui),sans-serif;outline:none}.admin-auth-form-v27 input:focus{border-color:#2C3243;box-shadow:0 0 0 3px rgba(59, 66, 86, .11)}.admin-auth-form-v27 input::placeholder{color:#5B6376;font-weight:500}
.admin-auth-password-wrap-v27{position:relative;display:block;width:100%}.admin-auth-password-wrap-v27 input{padding-right:64px}.admin-auth-password-wrap-v27 .juf-password-toggle{position:absolute;z-index:3;right:7px;top:50%;transform:translateY(-50%);min-width:48px;height:31px;border:0;border-radius:6px;background:#E4E6EC;color:#3B4256;font:750 10px 'Noto Sans Bengali','Kalpurush','SolaimanLipi',sans-serif;cursor:pointer}.admin-auth-password-wrap-v27 .juf-password-toggle:hover{background:#E4E6EC;color:#2C3243}
.admin-auth-helper-row-v31{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-3px;color:var(--text-muted);font-size:9.5px}.admin-auth-helper-row-v31 a{color:#3B4256;font-weight:800;text-decoration:none}.admin-auth-helper-row-v31 a:hover{text-decoration:underline}
.admin-auth-submit-v27{display:flex;align-items:center;justify-content:center;min-height:46px;margin-top:1px;border:0;border-radius:7px;background:linear-gradient(90deg,#3B4256,#3B4256);color:#fff;font:800 12.5px 'Noto Sans Bengali','Kalpurush','SolaimanLipi',sans-serif;cursor:pointer;box-shadow:0 9px 20px rgba(59, 66, 86, .16);transition:transform .18s ease,box-shadow .18s ease}.admin-auth-submit-v27:hover{transform:translateY(-1px);box-shadow:0 12px 24px rgba(59, 66, 86, .21)}
.admin-auth-protected-v31{display:flex;align-items:center;justify-content:center;gap:7px;margin:22px 0 0;padding-top:16px;border-top:1px solid #D9D6D0;color:#5B6376;font-size:10px}.admin-auth-protected-v31 span{color:#3B4256;font-size:16px}.admin-auth-public-return-v31{align-self:center;margin-top:12px;color:#5B6376;font-size:9.5px;font-weight:700;text-decoration:none}.admin-auth-public-return-v31:hover{color:#2C3243}
.admin-auth-benefits-v31{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;width:min(1100px,100%);margin:32px auto 0;padding:0}.admin-auth-benefits-v31 li{display:flex;align-items:flex-start;gap:12px;min-height:150px;padding:22px;border:1px solid #D9D6D0;border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(59, 66, 86, .05)}.admin-auth-benefits-v31 li>span{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:50%;background:#E4E6EC;color:#3B4256;font-size:23px}.admin-auth-benefits-v31 strong,.admin-auth-benefits-v31 small{display:block}.admin-auth-benefits-v31 strong{margin-top:4px;color:#3B4256;font-size:12px}.admin-auth-benefits-v31 small{margin-top:8px;color:#5B6376;font-size:9.5px;line-height:1.55}
@media(max-width:900px){.juf-admin-auth-page-v27{padding:24px 18px 40px}.admin-auth-shell-v27{grid-template-columns:1fr;max-width:650px}.admin-auth-visual-v27{min-height:330px;background-image:url('../images/auth/admin-login-bg-768.webp')}.admin-auth-form-side-v27{padding:38px 34px}.admin-auth-benefits-v31{max-width:650px;grid-template-columns:1fr 1fr}}
@media(max-width:560px){.juf-admin-auth-page-v27{padding:12px;background:#F6F5F2}.admin-auth-shell-v27{border-radius:18px}.admin-auth-visual-v27{min-height:225px;background-position:center}.admin-auth-form-side-v27{padding:28px 22px 30px}.admin-auth-form-head-v27 h1{font-size:23px}.admin-auth-benefits-v31{grid-template-columns:1fr;gap:10px;margin-top:20px}.admin-auth-benefits-v31 li{min-height:0;padding:17px}.admin-auth-benefits-v31 li>span{width:42px;height:42px;flex-basis:42px}}

/* Phase 20 approved checkout artwork; auth pages now use their own reference-aligned layouts. */
.checkout-page{background:#ECEAE6 url('../images/auth/checkout-rural-bg-1536.webp') center/cover fixed no-repeat}.checkout-head{background:#F6F5F2;border-radius:16px;padding:24px}.checkout-page .checkout-card,.checkout-page .checkout-summary{background:#ECEAE6}.checkout-page .checkout-method{min-height:44px}
@media(max-width:767px){.checkout-page{background-image:url('../images/auth/checkout-rural-bg-768.webp');background-attachment:scroll}.checkout-head{padding:18px}}
.juf-toc-search{display:grid;gap:8px;padding:14px 20px}.juf-toc-search input{width:100%;min-height:44px;border:1px solid #D9D6D0;border-radius:8px;padding:10px;color:inherit;background:transparent;font:inherit}.reader-toc-list li[hidden]{display:none!important}#chapter-search-status{padding:0 20px}
.approved-review-list{display:flex!important;overflow-x:auto;scroll-snap-type:x mandatory;gap:18px;padding-bottom:15px;scrollbar-width:thin}.approved-review-card{flex:0 0 calc((100% - 36px)/3);scroll-snap-align:start;min-width:0}.approved-review-card p{line-height:1.8}
.juf-details-chapter-hidden{display:none!important}.juf-review-expand{color:#3B4256;background:transparent;border:0;padding:8px;min-height:44px;cursor:pointer}.juf-toc-expand{padding:12px 18px;margin:14px 0;border:1px solid #D9D6D0;border-radius:9px;background:#ECEAE6;color:var(--juf-header-footer);font:inherit;cursor:pointer;min-height:44px}
@media(max-width:1024px){.approved-review-card{flex-basis:calc((100% - 18px)/2)}}
@media(max-width:767px){.approved-review-card{flex-basis:100%}.checkout-page{background-image:url('../images/auth/checkout-rural-bg-768.webp');background-attachment:scroll}.checkout-head{padding:18px}.review-fields-grid{grid-template-columns:1fr!important}}
@media(prefers-reduced-motion:reduce){.approved-review-list{scroll-behavior:auto!important}}
.juf-book-publication-card{max-width:1180px;margin:24px auto!important;padding:22px!important;font-size:13px}.juf-book-publication-card .page-section-title{font-size:20px!important}
@media(max-width:767px){.juf-footer-v24{padding:28px 0 18px!important;background:var(--juf-header-footer)}.juf-footer-top-v24{gap:18px!important;padding-bottom:18px!important}.juf-footer-links-v24{gap:16px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.juf-footer-column-v24{min-width:0}.juf-footer-column-v24 a{min-height:44px;display:flex;align-items:center}.juf-footer-brand-v24 img{max-height:46px;width:auto}.juf-footer-tagline-v24{font-size:13px!important;line-height:1.65!important}.juf-footer-bottom-v24{padding-top:14px!important}.juf-book-publication-card{margin:18px 14px!important}}
.juf-footer-toggle-v30{appearance:none;border:0;padding:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;text-align:left}.juf-footer-toggle-v30 span{display:none}.juf-footer-panel-v30{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.juf-public-empty-state{width:min(680px,calc(100% - 28px));box-sizing:border-box;margin:34px auto 70px!important;padding:clamp(30px,6vw,52px) 24px!important;text-align:center;background:#fff!important;border:1px dashed #D9D6D0!important;border-radius:22px!important;color:var(--text-muted)!important}.juf-public-empty-state>.juf-public-empty-icon{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 13px;border-radius:50%;background:#ECEAE6;color:var(--accent-rust);font-size:25px}.juf-public-empty-state>strong{display:block;color:var(--text-main);font:700 clamp(20px,3vw,25px)/1.35 var(--font-heading)}.juf-public-empty-state>p{max-width:520px;margin:8px auto 18px;line-height:1.75}.juf-public-empty-state>div:last-child{display:flex;justify-content:center;gap:9px;flex-wrap:wrap}.juf-public-empty-state>div:last-child>a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--border-light);border-radius:999px;background:#fff;color:var(--text-main);font-weight:750;text-decoration:none}.juf-public-empty-state>div:last-child>a:first-child{background:var(--text-main);border-color:var(--text-main);color:#fff}.juf-public-empty-state a:focus-visible{outline:3px solid color-mix(in srgb,var(--accent-rust) 45%,transparent);outline-offset:3px}@media(max-width:520px){.juf-public-empty-state{width:calc(100% - 24px);margin-top:24px!important}.juf-public-empty-state>div:last-child{display:grid}.juf-public-empty-state>div:last-child>a{min-height:46px}}
@media(max-width:767px){.juf-footer-collapsible-v30 .juf-footer-links-v24{display:block!important}.juf-footer-collapsible-v30 .juf-footer-column-v24{display:block;border-top:1px solid rgba(255, 255, 255, .12)}.juf-footer-collapsible-v30 .juf-footer-column-v24:last-child{border-bottom:1px solid rgba(255, 255, 255, .12)}.juf-footer-collapsible-v30 .juf-footer-column-v24 h2{margin:0}.juf-footer-collapsible-v30 .juf-footer-toggle-v30{width:100%;min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer}.juf-footer-collapsible-v30 .juf-footer-toggle-v30 span{display:block;font-size:18px;transition:transform .2s ease}.juf-footer-collapsible-v30 .juf-footer-toggle-v30[aria-expanded=true] span{transform:rotate(180deg)}.juf-footer-collapsible-v30 .juf-footer-panel-v30{padding:0 0 12px}.juf-footer-collapsible-v30 .juf-footer-panel-v30[hidden]{display:none}.juf-footer-collapsible-v30 .juf-footer-bottom-v24{align-items:flex-start;flex-direction:column;gap:10px}}
@media(prefers-reduced-motion:reduce){.juf-footer-toggle-v30 span{transition:none!important}}

/* Phase21: book-review reporting, scoped away from Homepage layout. */
.reader-review-report{margin-top:12px;border-top:1px solid #D9D6D0;padding-top:8px;text-align:left}
.reader-review-report summary{cursor:pointer;min-height:44px;padding:10px 0;font-size:13px;color:#282E37}
.reader-review-report form{display:grid;gap:8px}.reader-review-report select,.reader-review-report textarea,.reader-review-report button{width:100%;box-sizing:border-box;min-height:44px;padding:10px;border:1px solid #D9D6D0;border-radius:8px;font:inherit;background:#fff;color:#282E37}.reader-review-report button{cursor:pointer;background:#ECEAE6}.reader-review-report label{font-size:13px}.review-existing-notice{font-size:14px;line-height:1.7;margin-bottom:12px;color:#282E37}

/* Phase22 private reader support pages; no Homepage selectors. */
.support-page{max-width:1000px;margin:32px auto 60px;padding:0 20px}.support-page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:24px}.support-public-entry{padding:24px;margin:16px 0;border:1px solid #D9D6D0;border-radius:14px;background:#fff;overflow-wrap:anywhere}.support-public-entry.is-staff{background:#F6F5F2}.support-public-entry h2{font-size:20px;margin:10px 0}.support-public-entry header{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.support-public-entry time{font-size:12px;color:#5B6376}.support-public-body{line-height:1.9;margin-top:14px}.support-public-compose{display:grid;gap:12px}.support-public-compose textarea,.contact-field select{width:100%;box-sizing:border-box;min-height:44px;padding:12px;border:1px solid #D9D6D0;border-radius:8px;background:#fff;font:inherit;color:#282E37}.support-public-compose button{min-height:44px;border:0;cursor:pointer;justify-self:start}.support-page-links{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0}.support-page-links a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:600px){.support-public-entry{padding:18px}.support-public-compose button{width:100%}.support-page-head{align-items:flex-start}.support-page{padding:0 16px}}

/* Phase30 structured Author biography */
.juf-author-bio-nav{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px;scrollbar-width:thin}.juf-author-bio-nav a{flex:0 0 auto;min-height:44px;display:inline-flex;align-items:center;padding:0 14px;border:1px solid #D9D6D0;border-radius:10px;background:#fff;color:var(--juf-header-footer);font-weight:800;text-decoration:none}.juf-author-bio-nav a:hover,.juf-author-bio-nav a:focus-visible{border-color:#2C3243;color:var(--juf-rust-hover);outline:3px solid rgba(59, 66, 86, .16);outline-offset:2px}.juf-author-bio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.juf-author-bio-card{scroll-margin-top:92px;padding:24px;border:1px solid var(--juf-surface-muted);border-radius:16px;background:#fff}.juf-author-bio-card:first-child{grid-column:1/-1}.juf-author-bio-card h3{font:700 23px/1.3 var(--font-heading);color:#282E37;margin:0 0 12px}.juf-author-bio-card p,.juf-author-bio-card .juf-rich-public-content{color:#282E37;font-size:16px;line-height:1.85;margin:0}.juf-linked-works{padding:14px;border:1px solid #D9D6D0;border-radius:12px;background:#F6F5F2}.juf-linked-works-head,.juf-linked-works li{display:flex;align-items:center;justify-content:space-between;gap:12px}.juf-linked-works ul{list-style:none;padding:0;margin:12px 0}.juf-linked-works li{padding:10px 0;border-top:1px solid #D9D6D0}.juf-linked-works li small{display:block}.juf-linked-works a{font-weight:800}
@media(max-width:700px){.juf-author-bio-grid{grid-template-columns:1fr}.juf-author-bio-card:first-child{grid-column:auto}.juf-author-bio-card{padding:20px}.juf-author-bio-nav{margin-right:-16px;padding-right:16px}.juf-linked-works-head,.juf-linked-works li{align-items:flex-start;flex-direction:column}}
@media(prefers-reduced-motion:reduce){.juf-author-bio-card{scroll-behavior:auto}}

/* Phase30 premium Category discovery */
.category-discovery-bar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(120px,1fr)) 72px auto auto;gap:10px;align-items:center;margin:0 0 32px;padding:16px;border:1px solid var(--juf-surface-muted);border-radius:16px;background:#fff}.category-discovery-bar input,.category-discovery-bar select,.category-discovery-bar button,.category-discovery-bar>a,.category-audio-check{min-height:44px;border:1px solid #D9D6D0;border-radius:9px;padding:0 12px;background:#fff;font:inherit}.category-discovery-bar button{background:var(--juf-header-footer);color:#fff;font-weight:800;cursor:pointer}.category-discovery-bar>a,.category-audio-check{display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--juf-header-footer)}.category-audio-check input{min-height:auto;margin-right:7px}.category-featured-authors,.category-related{margin:0 0 40px}.category-section-head span{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#5B6376}.category-section-head h2{margin:4px 0 16px;font:700 28px/1.25 var(--font-heading)}.category-featured-authors>div:last-child{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.category-featured-authors a{display:grid;justify-items:center;gap:7px;padding:16px;border:1px solid var(--juf-surface-muted);border-radius:14px;background:#fff;text-align:center;text-decoration:none;color:#282E37}.category-featured-authors a>*:first-child{width:82px!important;height:82px!important;border-radius:50%!important}.category-featured-authors small,.category-related small{color:#5B6376}.category-related>div:last-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.category-related a{border-left:6px solid var(--category-theme);padding:18px;border-radius:12px;background:#fff;border-top:1px solid var(--juf-surface-muted);border-right:1px solid var(--juf-surface-muted);border-bottom:1px solid var(--juf-surface-muted);display:grid;text-decoration:none;color:#282E37}
@media(max-width:900px){.category-discovery-bar{grid-template-columns:1fr 1fr}.category-discovery-bar input[type=search]{grid-column:1/-1}.category-featured-authors>div:last-child{grid-template-columns:repeat(3,1fr)}}@media(max-width:620px){.category-discovery-bar{grid-template-columns:1fr}.category-discovery-bar input[type=search]{grid-column:auto}.category-featured-authors>div:last-child{display:flex;overflow-x:auto}.category-featured-authors a{flex:0 0 150px}.category-related>div:last-child{grid-template-columns:1fr}}

/* Shared actual-pending feedback: no simulated page-load overlay. */
.juf-image-pending{background-image:linear-gradient(100deg,#E4E6EC 25%,var(--bg-cream) 45%,#E4E6EC 65%);background-size:220% 100%;animation:juf-skeleton-sweep 1.5s ease-in-out infinite}
.juf-submit-pending{pointer-events:none;opacity:.75}.juf-submit-pending:after{content:"";display:inline-block;width:12px;height:12px;margin-inline-start:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:juf-pending-spin .8s linear infinite}
.juf-search-suggestions[aria-busy=true]{display:block;min-height:52px;padding:16px;background:var(--light-bg,#ECEAE6);color:var(--text-muted,#5B6376)}
@keyframes juf-skeleton-sweep{to{background-position:-220% 0}}@keyframes juf-pending-spin{to{transform:rotate(360deg)}}
.audio-cover-sq{flex:0 0 62px;width:62px;height:84px;overflow:hidden;display:block;border-radius:8px}.audio-cover-sq .juf-book-jacket{width:100%;height:100%;min-height:0}.audio-cover-sq .juf-jacket-title{font-size:12px}.audio-cover-sq .juf-jacket-author,.audio-cover-sq .juf-jacket-genre{font-size:6px}.audio-details{min-width:0}.audio-details small{display:block;font-size:11px;color:var(--text-muted,#5B6376)}.audio-play-circle{flex-shrink:0;min-width:44px;min-height:44px;text-decoration:none}.home-author-bio{font-size:11px;line-height:1.6;max-width:170px;margin:6px auto;color:var(--text-muted,#5B6376)}
.premium-reveal-item{transition:opacity .5s ease var(--premium-delay,0ms),transform .5s ease var(--premium-delay,0ms)}.premium-reveal-pending{opacity:0;transform:translateY(14px)}
.premium-orbit-one{animation:juf-premium-orbit 36s linear infinite}.premium-orbit-two{animation:juf-premium-orbit 48s linear infinite reverse}.premium-book-stack>span{animation:juf-premium-float 6s ease-in-out infinite}.premium-primary-btn,.premium-plan-card>a{transition:transform .2s ease,box-shadow .2s ease}.premium-primary-btn:hover,.premium-plan-card>a:hover{transform:translateY(-2px);box-shadow:0 6px 18px var(--juf-header-footer)20}.premium-primary-btn:focus-visible,.premium-faq summary:focus-visible{outline:3px solid #3346A8;outline-offset:5px}
@keyframes juf-premium-orbit{from{rotate:0deg}to{rotate:360deg}}@keyframes juf-premium-float{50%{translate:0 -6px}}
@media(prefers-reduced-motion:reduce){.juf-image-pending,.juf-submit-pending:after,.premium-orbit-one,.premium-orbit-two,.premium-book-stack>span{animation:none!important}.premium-reveal-item,.premium-primary-btn,.premium-plan-card>a{transition:none!important}.premium-reveal-pending{opacity:1;transform:none}}

/* Phase30.35 bounded suggestions and visible pagination recovery. */
.juf-search-suggestions{max-height:min(60vh,420px);overflow-y:auto;overscroll-behavior:contain}
.juf-search-empty{padding:14px;line-height:1.6;white-space:normal}
.juf-pagination-feedback{min-height:1.6em;text-align:center;color:var(--text-muted);font-size:14px;line-height:1.6}

/* Final shared light editorial chrome for selected public discovery pages. */
.juf-light-chrome .juf-header-v24{background:rgba(246, 245, 242, .97);border-bottom-color:#D9D6D0;box-shadow:0 7px 24px rgba(59, 66, 86, .07)}
.juf-light-chrome .juf-nav-v24 .juf-nav-link-v24{color:#282E37}
.juf-light-chrome .juf-nav-v24 .juf-nav-link-v24:hover,.juf-light-chrome .juf-nav-v24 .juf-nav-link-v24:focus-visible,.juf-light-chrome .juf-nav-v24 .juf-nav-link-v24.is-active{color:var(--juf-ink-soft);background:var(--juf-light-surface)}
.juf-light-chrome .juf-nav-v24 .juf-premium-nav-v24{color:var(--juf-header-footer);border-color:#D9D6D0;background:#ECEAE6}
.juf-light-chrome .juf-nav-v24 .juf-premium-nav-v24:hover,.juf-light-chrome .juf-nav-v24 .juf-premium-nav-v24:focus-visible,.juf-light-chrome .juf-nav-v24 .juf-premium-nav-v24.is-active{color:#282E37;border-color:#3346A8;background:#E4E6EC}
.juf-light-chrome .juf-header-icon-btn-v24,.juf-light-chrome .juf-header-logout-v24 button{border-color:#D9D6D0;background:#ECEAE6;color:var(--juf-header-footer)}
.juf-light-chrome .juf-header-icon-btn-v24:hover,.juf-light-chrome .juf-header-icon-btn-v24:focus-visible,.juf-light-chrome .juf-header-logout-v24 button:hover,.juf-light-chrome .juf-header-logout-v24 button:focus-visible{color:var(--juf-ink-soft);border-color:#3346A8;background:var(--juf-light-surface)}
.juf-light-chrome .juf-login-btn-v24{background:#3346A8;color:#fff!important;box-shadow:0 5px 14px rgba(51, 70, 168, .18)}
.juf-light-chrome .juf-login-btn-v24:hover,.juf-light-chrome .juf-login-btn-v24:focus-visible{background:#263787}
.juf-light-chrome .juf-user-chip-v24{color:#282E37;background:#ECEAE6;border-color:#D9D6D0}.juf-light-chrome .juf-user-copy-v24 small{color:#5B6376}.juf-light-chrome .juf-user-copy-v24 strong{color:#282E37}.juf-light-chrome .juf-menu-v24{border-color:#D9D6D0;background:#ECEAE6}.juf-light-chrome .juf-menu-v24 span{background:var(--juf-header-footer)}
.juf-light-chrome .juf-footer-v24{margin-top:52px;padding:42px 0 18px;background:linear-gradient(180deg,#ECEAE6 0%,var(--juf-light-surface) 100%)!important;color:#5B6376;border-top-color:#D9D6D0}
.juf-light-chrome .juf-footer-v24::before{background:linear-gradient(90deg,transparent,#D9D6D0,transparent)}.juf-light-chrome .juf-footer-top-v24{gap:clamp(34px,6vw,76px);padding-bottom:28px}.juf-light-chrome .juf-footer-kicker-v24,.juf-light-chrome .juf-footer-column-v24 h2{color:#282E37}.juf-light-chrome .juf-footer-tagline-v24,.juf-light-chrome .juf-footer-column-v24 a,.juf-light-chrome .juf-footer-socials-v24 a{color:var(--text-muted)}.juf-light-chrome .juf-footer-column-v24 a:hover,.juf-light-chrome .juf-footer-column-v24 a:focus-visible,.juf-light-chrome .juf-footer-socials-v24 a:hover,.juf-light-chrome .juf-footer-socials-v24 a:focus-visible{color:#2C3243}.juf-light-chrome .juf-footer-bottom-v24{border-top-color:#D9D6D0}.juf-light-chrome .juf-footer-bottom-v24 p{color:#5B6376}
@media(max-width:767px){.juf-light-chrome .juf-footer-v24{padding:28px 0 16px!important;background:linear-gradient(180deg,#ECEAE6,var(--juf-light-surface))!important}.juf-light-chrome .juf-footer-collapsible-v30 .juf-footer-column-v24{border-top-color:#D9D6D0}.juf-light-chrome .juf-footer-collapsible-v30 .juf-footer-column-v24:last-child{border-bottom-color:#D9D6D0}.juf-light-chrome .juf-footer-column-v24 h2,.juf-light-chrome .juf-footer-toggle-v30{color:#282E37!important}.juf-light-chrome .juf-footer-column-v24 a{color:var(--text-muted)!important}.juf-light-chrome .juf-footer-brand-v24 img{max-height:44px}}

/* === Homepage visual cards refresh: authors, audiobooks, genres === */
.home-author-discovery-card.is-visual{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1fr) 138px;
    align-items:center;
    gap:18px;
    min-height:172px;
    overflow:hidden;
    isolation:isolate;
    text-decoration:none;
}
.home-author-discovery-card.is-visual::before{display:none!important;content:none!important;background:none!important;border:0!important;}
.home-author-discovery-card.is-visual::after{display:none!important;content:none!important;background:none!important;border:0!important;}
.home-author-discovery-kicker{
    display:inline-flex;
    align-items:center;
    padding:5px 10px;
    border-radius:999px;
    background:rgba(255, 255, 255, .55);
    color:#5B6376;
    font:700 11px/1 var(--font-ui-system);
    letter-spacing:.02em;
    margin-bottom:10px;
}
.home-author-discovery-card.is-visual .home-author-discovery-copy h3{
    margin-bottom:8px;
}
.home-author-discovery-card.is-visual .home-author-discovery-copy p{
    max-width:27ch;
    line-height:1.55;
}
.home-author-discovery-visual{
    position:relative;
    min-height:128px;
    display:flex;
    justify-content:flex-end;
    align-items:flex-end;
}
.home-author-featured-portrait,
.home-author-secondary-portrait{
    position:absolute;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:24px;
    overflow:hidden;
    box-shadow:0 14px 30px rgba(59, 66, 86, .14);
    border:1px solid rgba(59, 66, 86, .10);
    background:rgba(255, 255, 255, .72);
}
.home-author-featured-portrait{right:4px;bottom:8px;width:88px;height:112px}
.home-author-secondary-portrait{left:10px;top:4px;width:64px;height:84px;opacity:.95}
.home-author-featured-portrait .juf-author-circle-img,
.home-author-featured-portrait .juf-author-art-avatar,
.home-author-secondary-portrait .juf-author-circle-img,
.home-author-secondary-portrait .juf-author-art-avatar{
    width:100%;
    height:100%;
}
.home-author-featured-portrait .juf-author-circle-img,
.home-author-secondary-portrait .juf-author-circle-img{object-fit:cover}
.home-author-featured-portrait .juf-author-art-avatar,
.home-author-secondary-portrait .juf-author-art-avatar{border-radius:0}
.home-author-mini-stack{
    position:absolute;
    left:0;
    bottom:0;
    display:flex;
    align-items:center;
}
.home-author-mini-avatar{
    width:36px;
    height:36px;
    margin-right:-8px;
    border-radius:50%;
    overflow:hidden;
    background:#ECEAE6;
    border:2px solid rgba(255, 255, 255, .95);
    box-shadow:0 8px 16px rgba(59, 66, 86, .1);
}
.home-author-mini-avatar .juf-author-circle-img,
.home-author-mini-avatar .juf-author-art-avatar{
    width:100%;
    height:100%;
}
.home-author-mini-avatar .juf-author-circle-img{object-fit:cover}
.home-author-card-arrow{
    position:absolute;
    right:18px;
    bottom:16px;
    width:34px;
    height:34px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255, 255, 255, .62);
    color:#282E37;
    font-size:18px;
    font-weight:700;
    box-shadow:0 8px 16px rgba(59, 66, 86, .08);
}

.home-audiobook-media-track{padding-top:8px}
.audio-media-card{
    flex:0 0 282px;
    min-width:282px;
    align-items:flex-start;
    gap:14px;
    padding:16px;
    border-radius:18px;
    background:#fff;
}
.audio-cover-poster{
    width:74px;
    min-width:74px;
    height:102px;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 12px 26px rgba(40, 46, 55, .08);
    border:1px solid var(--juf-surface-muted);
    align-self:flex-start;
}
.audio-cover-poster .juf-book-jacket{
    width:100%;
    height:100%;
    min-height:100%;
    border-radius:0;
    box-shadow:none;
}
.audio-cover-poster .juf-jacket-content{padding:10px 8px 8px}
.audio-cover-poster .juf-jacket-genre{font-size:7px;letter-spacing:.06em}
.audio-cover-poster .juf-jacket-title{font-size:11px;line-height:1.22;-webkit-line-clamp:3;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.audio-cover-poster .juf-jacket-author{font-size:7px;line-height:1.25}
.audio-cover-poster .juf-jacket-spine,
.audio-cover-poster .juf-jacket-shine{display:none}
.audio-media-details{padding-top:2px}
.audio-media-kicker{
    display:block;
    color:var(--accent-rust);
    font:800 10px/1.1 var(--font-ui-system);
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:8px;
}
.audio-media-details h4{
    font-size:16px;
    line-height:1.35;
    white-space:normal;
    overflow:hidden;
    display:-webkit-box;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    margin-bottom:4px;
}
.audio-media-details p{
    margin:0 0 7px;
    font-size:12.5px;
    color:#282E37;
}
.audio-media-meta{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:8px;
}
.audio-media-meta span,
.audio-media-state{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:24px;
    padding:4px 10px;
    border-radius:999px;
    background:#ECEAE6;
    color:#5B6376;
    font:600 11px/1.2 var(--font-ui-system);
}
.audio-play-circle{
    width:34px;
    height:34px;
    border:none;
    background:#3B4256;
    color:#fff;
    box-shadow:0 10px 18px rgba(40, 46, 55, .16);
    margin-top:auto;
}

.genre-graphic-card{
    position:relative;
    flex:0 0 188px;
    min-width:188px;
    min-height:114px;
    padding:18px 16px;
    border-radius:16px;
    overflow:hidden;
    text-align:left;
    display:flex;
    align-items:flex-end;
    isolation:isolate;
    background:linear-gradient(140deg,#3B4256,#3B4256 55%,#3B4256 100%);
    border:1px solid rgba(255, 255, 255, .06);
}
.genre-graphic-card::before{
    content:"";
    position:absolute;
    inset:auto -24px -34px auto;
    width:106px;
    height:106px;
    border-radius:50%;
    background:var(--genre-theme,#3B4256);
    opacity:.28;
    z-index:-1;
}
.genre-graphic-card::after{
    content:"";
    position:absolute;
    inset:14px 16px auto auto;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#E4E6EC;
    box-shadow:-70px 44px 0 0 rgba(255, 255, 255, .16),-28px 18px 0 0 rgba(255, 255, 255, .08);
    z-index:-1;
}
.genre-graphic-copy{position:relative;z-index:2}
.genre-graphic-kicker{
    display:block;
    margin-bottom:8px;
    color:rgba(255, 255, 255, .64);
    font:700 10px/1.2 var(--font-ui-system);
    letter-spacing:.08em;
    text-transform:uppercase;
}
.genre-graphic-card h4{
    color:#fff;
    font-size:18px;
    line-height:1.25;
    margin-bottom:6px;
}
.genre-graphic-card span{
    color:rgba(255, 255, 255, .75);
    font-size:11px;
    line-height:1.45;
}
.genre-graphic-orb{
    position:absolute;
    border-radius:50%;
    z-index:-1;
}
.genre-graphic-orb.orb-one{width:96px;height:96px;left:-30px;top:-24px;background:rgba(255, 255, 255, .06)}
.genre-graphic-orb.orb-two{width:52px;height:52px;right:32px;top:36px;background:var(--genre-theme,#3B4256);opacity:.26}
.genre-graphic-orb.orb-three{width:18px;height:18px;right:18px;bottom:18px;background:rgba(255, 255, 255, .14)}

@media (max-width: 980px){
    .home-author-discovery-card.is-visual{grid-template-columns:minmax(0,1fr) 120px;min-height:162px}
    .home-author-featured-portrait{width:78px;height:102px}
    .home-author-secondary-portrait{width:56px;height:72px}
}
@media (max-width: 620px){
    .home-author-discovery-card.is-visual{flex-basis:300px!important;min-width:300px!important;grid-template-columns:minmax(0,1fr) 104px;padding:22px 18px;min-height:156px}
    .home-author-discovery-card.is-visual .home-author-discovery-copy p{max-width:none;font-size:12px}
    .home-author-featured-portrait{width:72px;height:94px;right:2px}
    .home-author-secondary-portrait{width:48px;height:64px;left:8px}
    .home-author-mini-avatar{width:32px;height:32px}
    .audio-media-card{flex:0 0 264px;min-width:264px;padding:14px}
    .audio-cover-poster{width:68px;min-width:68px;height:96px}
    .genre-graphic-card{flex:0 0 170px!important;min-width:170px!important;min-height:102px;padding:16px 14px}
    .genre-graphic-card h4{font-size:16px}
}

/* === Newsletter premium refinement: one shell, no nested input box === */
.newsletter-premium-wrapper{
    max-width:720px;
    margin:44px auto 64px;
    padding:44px 46px 46px;
    border-radius:26px;
    background:
        radial-gradient(circle at 88% 14%,rgba(59, 66, 86, .055),transparent 28%),
        linear-gradient(180deg,#FFFFFF 0%,#F6F5F2 100%);
    border:1px solid #D9D6D0;
    box-shadow:0 18px 48px rgba(59, 66, 86, .075);
}
.newsletter-premium-copy{max-width:590px;margin:0 auto 24px}
.newsletter-premium-eyebrow{
    display:inline-block;
    margin-bottom:10px;
    color:var(--accent-rust);
    font:800 10px/1.2 var(--font-ui-system);
    letter-spacing:.13em;
    text-transform:uppercase;
}
.newsletter-premium-wrapper .page-section-title{
    margin:0 0 9px;
    font-size:clamp(26px,3vw,35px);
    line-height:1.27;
}
.newsletter-premium-subtitle{
    margin:0;
    color:#5B6376;
    font:400 13.5px/1.7 var(--font-ui-system);
}
.newsletter-consent-note{
    max-width:570px;
    margin:10px auto 0;
    color:#5B6376;
    font:400 11.5px/1.55 var(--font-ui-system);
    text-align:center;
}
.newsletter-consent-note a{color:#282E37;text-decoration:underline;text-underline-offset:2px}
.newsletter-luxury-pill{
    box-sizing:border-box;
    width:100%;
    max-width:570px;
    min-height:60px;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
    margin:0 auto;
    padding:5px 5px 5px 18px;
    border:1px solid #D9D6D0;
    border-radius:999px;
    background:#FFFFFF;
    box-shadow:0 8px 24px rgba(59, 66, 86, .07);
    transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
.newsletter-luxury-pill:focus-within{
    border-color:#2C3243;
    background:#FFFFFF;
    box-shadow:0 0 0 3px rgba(59, 66, 86, .09),0 12px 28px rgba(59, 66, 86, .09);
}
.newsletter-luxury-pill .pill-input-wrap{
    min-width:0;
    height:48px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    outline:0!important;
}
.newsletter-mail-mark{
    flex:0 0 auto;
    color:#5B6376;
    font-size:14px;
    line-height:1;
    opacity:.9;
}
.newsletter-luxury-pill .newsletter-luxury-input,
.newsletter-luxury-pill .newsletter-luxury-input:hover,
.newsletter-luxury-pill .newsletter-luxury-input:focus,
.newsletter-luxury-pill .newsletter-luxury-input:focus-visible{
    -webkit-appearance:none!important;
    appearance:none!important;
    box-sizing:border-box;
    width:100%;
    min-width:0;
    height:48px;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    outline:0!important;
    background:transparent!important;
    box-shadow:none!important;
    color:#282E37;
    font:500 14px/1.2 var(--font-ui-system);
}
.newsletter-luxury-input::placeholder{color:#5B6376;opacity:1}
.newsletter-luxury-btn{
    min-width:126px;
    min-height:48px;
    justify-content:center;
    padding:0 24px;
    border-radius:999px;
    background:#3B4256;
    box-shadow:0 8px 18px rgba(59, 66, 86, .22);
    font-weight:600;
}
.newsletter-luxury-btn:hover{
    transform:translateY(-1px);
    background:var(--accent-rust);
    box-shadow:0 10px 22px rgba(59, 66, 86, .28);
}
@media(max-width:620px){
    .newsletter-premium-wrapper{
        margin:32px 0 42px;
        padding:30px 18px 24px;
        border-radius:22px;
    }
    .newsletter-premium-copy{margin-bottom:19px}
    .newsletter-premium-wrapper .page-section-title{font-size:25px}
    .newsletter-premium-subtitle{font-size:12.5px;line-height:1.6}
    .newsletter-luxury-pill{
        min-height:0;
        grid-template-columns:1fr;
        gap:8px;
        padding:7px;
        border-radius:18px;
    }
    .newsletter-luxury-pill .pill-input-wrap{
        height:48px;
        padding:0 10px!important;
    }
    .newsletter-luxury-btn{width:100%;min-height:48px}
}

/* === Global compact essential footer === */
.juf-footer-essential-v31{
    margin-top:44px!important;
    padding:28px 0 14px!important;
}
.juf-footer-essential-v31 .juf-footer-essential-top-v31{
    grid-template-columns:minmax(260px,.95fr) minmax(0,1.35fr)!important;
    align-items:center!important;
    gap:clamp(30px,6vw,78px)!important;
    padding-bottom:20px!important;
}
.juf-footer-essential-v31 .juf-footer-essential-brand-v31{
    display:flex;
    align-items:center;
    gap:18px;
    min-width:0;
}
.juf-footer-essential-v31 .juf-footer-logo-v24{
    margin:0!important;
    flex:0 0 auto;
}
.juf-footer-essential-v31 .juf-footer-logo-v24 img{
    width:128px!important;
    height:auto!important;
    max-height:52px!important;
}
.juf-footer-essential-v31 .juf-footer-brand-copy-v31{min-width:0}
.juf-footer-essential-v31 .juf-footer-kicker-v24{
    margin:0 0 4px!important;
    font-size:15px!important;
    line-height:1.35;
}
.juf-footer-essential-v31 .juf-footer-tagline-v24{
    margin:0!important;
    max-width:310px!important;
    font-size:12px!important;
    line-height:1.5!important;
}
.juf-footer-essential-links-v31{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    flex-wrap:wrap;
    gap:8px 18px;
}
.juf-footer-essential-links-v31 a{
    color:rgba(255, 255, 255, .62);
    font:600 12px/1.4 var(--font-ui-system);
    text-decoration:none;
    white-space:nowrap;
    transition:color .2s ease;
}
.juf-footer-essential-links-v31 a:hover,
.juf-footer-essential-links-v31 a:focus-visible{color:#fff}
.juf-footer-essential-v31 .juf-footer-essential-bottom-v31{
    min-height:0!important;
    padding-top:12px!important;
    border-top:1px solid rgba(255, 255, 255, .09);
    gap:16px;
}
.juf-footer-essential-v31 .juf-footer-essential-bottom-v31 p{
    margin:0;
    font-size:11px;
}
.juf-footer-essential-v31 .juf-footer-socials-v24{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}
.juf-footer-essential-v31 .juf-footer-socials-v24 a{
    font-size:11px;
}

.juf-light-chrome .juf-footer-essential-v31,
.juf-homepage .juf-footer-essential-v31{
    margin-top:44px!important;
    padding:28px 0 14px!important;
    background:linear-gradient(180deg,#ECEAE6 0%,var(--juf-light-surface) 100%)!important;
}
.juf-light-chrome .juf-footer-essential-links-v31 a,
.juf-homepage .juf-footer-essential-links-v31 a{color:var(--text-muted)}
.juf-light-chrome .juf-footer-essential-links-v31 a:hover,
.juf-light-chrome .juf-footer-essential-links-v31 a:focus-visible,
.juf-homepage .juf-footer-essential-links-v31 a:hover,
.juf-homepage .juf-footer-essential-links-v31 a:focus-visible{color:#2C3243}
.juf-light-chrome .juf-footer-essential-v31 .juf-footer-essential-bottom-v31,
.juf-homepage .juf-footer-essential-v31 .juf-footer-essential-bottom-v31{border-top-color:#D9D6D0}

@media(max-width:800px){
    .juf-footer-essential-v31{padding:22px 0 12px!important}
    .juf-footer-essential-v31 .juf-footer-essential-top-v31{
        display:flex!important;
        flex-direction:column;
        align-items:flex-start!important;
        gap:16px!important;
        padding-bottom:16px!important;
    }
    .juf-footer-essential-v31 .juf-footer-essential-brand-v31{gap:14px}
    .juf-footer-essential-v31 .juf-footer-logo-v24 img{width:112px!important;max-height:46px!important}
    .juf-footer-essential-links-v31{
        justify-content:flex-start;
        width:100%;
        gap:8px 14px;
    }
    .juf-footer-essential-links-v31 a{
        min-height:34px;
        display:inline-flex;
        align-items:center;
        font-size:11.5px;
    }
    .juf-footer-essential-v31 .juf-footer-essential-bottom-v31{
        padding-top:10px!important;
        flex-direction:column;
        align-items:flex-start;
        min-height:0!important;
    }
}
@media(max-width:480px){
    .juf-footer-essential-v31{margin-top:34px!important;padding:20px 0 11px!important}
    .juf-footer-essential-v31 .juf-footer-essential-brand-v31{align-items:flex-start}
    .juf-footer-essential-v31 .juf-footer-logo-v24 img{width:98px!important}
    .juf-footer-essential-v31 .juf-footer-kicker-v24{font-size:13px!important}
    .juf-footer-essential-v31 .juf-footer-tagline-v24{font-size:11px!important;line-height:1.45!important}
    .juf-footer-essential-links-v31{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 12px}
    .juf-footer-essential-links-v31 a{min-height:32px;white-space:normal}
    .juf-footer-essential-v31 .juf-footer-socials-v24{gap:10px}
}

/* =========================================================
   Premium real-book presence — reference-led cover presentation
   Keeps uploaded artwork untouched while adding restrained physical depth.
   Applied only to public catalogue/display contexts, not reader/player art.
   ========================================================= */
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket {
    aspect-ratio: 2 / 3;
    height: auto;
    min-height: 0;
    border-radius: 5px 7px 7px 4px;
    border: 1px solid rgba(40, 46, 55, .13);
    border-left: 4px solid rgba(40, 46, 55, .18);
    box-shadow:
        0 18px 24px rgba(40, 46, 55, .15),
        0 5px 8px rgba(40, 46, 55, .10),
        -4px 5px 8px rgba(40, 46, 55, .08),
        inset -1px 0 rgba(255, 255, 255, .22);
    transform: translateZ(0);
    backface-visibility: hidden;
    transition:
        transform .26s cubic-bezier(.2,.75,.2,1),
        box-shadow .26s ease,
        filter .26s ease;
}

:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket-custom {
    padding: 0;
    background: #ECEAE6;
}

:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket-custom .juf-book-cover-image {
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    transform: translateZ(0);
}

/* Keep original artwork clean: no artificial dark scrim on uploaded covers. */
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket-custom .juf-book-cover-scrim {
    display: none;
}

/* Small page-edge highlight that suggests a printed object without fake 3D. */
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover
) > .juf-book-jacket::before {
    content: "";
    position: absolute;
    z-index: 7;
    pointer-events: none;
    top: 4px;
    right: -1px;
    bottom: 5px;
    width: 3px;
    border-radius: 0 5px 5px 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(217, 214, 208, .56) 48%, rgba(91, 99, 118, .18));
    opacity: .72;
}

.showcase-card-item:hover > .juf-book-jacket,
.juf-catalog-book-card:hover .juf-catalog-cover-link > .juf-book-jacket,
.premium-book-card:hover .premium-book-cover > .juf-book-jacket {
    transform: translateY(-6px) scale(1.008);
    box-shadow:
        0 24px 34px rgba(40, 46, 55, .19),
        0 8px 12px rgba(40, 46, 55, .11),
        -5px 7px 10px rgba(40, 46, 55, .09),
        inset -1px 0 rgba(255, 255, 255, .25);
}

/* Search result covers are smaller, so keep the physical depth tighter. */
.juf-search-book > .juf-book-jacket {
    border-left-width: 2px;
    border-radius: 4px 5px 5px 3px;
    box-shadow: 0 8px 14px rgba(40, 46, 55, .13), -2px 3px 5px rgba(40, 46, 55, .08);
}

/* Metadata should not compete with the cover. */
.showcase-card-item .book-under-meta,
.juf-catalog-book-meta,
.premium-book-copy {
    padding-top: 13px;
}
.showcase-card-item .book-under-title,
.juf-catalog-book-meta h3,
.premium-book-copy h3 {
    letter-spacing: -.01em;
}

@media (max-width: 620px) {
    :where(
      .showcase-card-item,
      .juf-catalog-cover-link,
      .premium-book-cover
    ) > .juf-book-jacket {
        box-shadow:
            0 12px 18px rgba(40, 46, 55, .14),
            0 4px 7px rgba(40, 46, 55, .08),
            -3px 4px 6px rgba(40, 46, 55, .07);
    }
    .showcase-card-item:hover > .juf-book-jacket,
    .juf-catalog-book-card:hover .juf-catalog-cover-link > .juf-book-jacket,
    .premium-book-card:hover .premium-book-cover > .juf-book-jacket {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(
      .showcase-card-item,
      .juf-catalog-cover-link,
      .premium-book-cover,
      .juf-search-book
    ) > .juf-book-jacket {
        transition: none !important;
    }
}

/* Phase 29 — Universal search visual/empty-state repair, 2026-09-13 */
.juf-search-shell{min-height:100vh;display:flex;flex-direction:column}
.juf-search-shell>.site-main{flex:1 0 auto;width:100%}
.juf-search-shell>.juf-footer-v24{margin-top:auto}
.juf-search-page{padding-bottom:44px}
.juf-search-page .juf-search-hero{max-width:940px;margin-top:26px;padding:30px 34px 32px;border-radius:24px;background:linear-gradient(135deg,rgba(255, 255, 255, .92),rgba(246, 245, 242, .72));box-shadow:0 14px 38px rgba(40, 46, 55, .055)}
.juf-search-page .juf-search-hero .section-overline-label{font-size:11px;letter-spacing:.055em}
.juf-search-page .juf-search-hero h1{max-width:760px;margin:6px auto 7px;font-size:clamp(30px,3.1vw,43px);line-height:1.16}
.juf-search-page .juf-search-hero p{max-width:650px;font-size:14px;line-height:1.65;color:var(--text-muted);opacity:1}
.juf-search-page .juf-universal-search{max-width:700px;margin-top:19px;border-color:#D9D6D0;border-radius:16px;box-shadow:0 10px 28px rgba(40, 46, 55, .075)}
.juf-search-page .juf-universal-search:focus-within{border-color:color-mix(in srgb,var(--accent-rust) 58%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent-rust) 11%,transparent),0 12px 30px rgba(40, 46, 55, .075)}
.juf-search-page .juf-universal-search>button{background:var(--accent-rust);min-width:84px;transition:transform .18s ease,filter .18s ease}
.juf-search-page .juf-universal-search>button:hover{filter:brightness(.95);transform:translateY(-1px)}
.juf-search-page .juf-universal-search>input::placeholder{color:#5B6376;opacity:1}
.juf-search-start{max-width:940px!important;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px 12px;margin-top:14px;padding:0 4px;text-align:center}
.juf-search-start-label{font-size:12px;font-weight:500;color:var(--text-muted)}
.juf-search-quick-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}
.juf-search-quick-links a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 15px;border:1px solid #D9D6D0;border-radius:999px;background:rgba(255, 255, 255, .62);color:var(--text-main);font-size:12.5px;font-weight:700;text-decoration:none;transition:background .18s ease,border-color .18s ease,color .18s ease}
.juf-search-quick-links a:hover{background:#F6F5F2;border-color:color-mix(in srgb,var(--accent-rust) 46%,#D9D6D0);color:var(--accent-rust)}
.juf-search-start>p{flex-basis:100%;max-width:720px;margin:3px auto 0;color:var(--text-muted);font-size:12px;line-height:1.6}
.juf-search-summary{max-width:940px!important;margin-top:18px}
.juf-search-summary p{padding:12px 15px;border:1px solid var(--border-light);border-radius:13px;background:rgba(255, 255, 255, .55);font-size:13px}
.juf-search-group{margin-top:30px;padding-top:24px}
.juf-search-group-head{margin-bottom:15px}
.juf-search-group-head h2{font-size:25px}
.juf-search-books-grid{gap:13px}
.juf-search-book,.juf-search-author-grid>a,.juf-search-category-grid>a{box-shadow:0 7px 20px rgba(40, 46, 55, .035)}
.juf-search-audio-grid>a{border:1px solid var(--border-light);background:var(--surface);color:var(--text-main);box-shadow:0 7px 20px rgba(40, 46, 55, .035)}
.juf-search-audio-play{background:color-mix(in srgb,var(--accent-rust) 12%,#fff);color:var(--accent-rust)}
.juf-search-audio-grid small,.juf-search-audio-grid em{color:var(--text-muted);opacity:1}
@media(max-width:820px){
  .juf-search-page{padding-bottom:34px}
  .juf-search-page .juf-search-hero{max-width:none;margin-top:22px;padding:28px 24px}
}
@media(max-width:560px){
  .juf-search-shell>.site-main{padding-left:0;padding-right:0}
  .juf-search-page{padding-bottom:28px}
  .juf-search-page .juf-search-hero{margin:16px 12px 0;padding:23px 14px 18px;border-radius:20px}
  .juf-search-page .juf-search-hero h1{font-size:28px;line-height:1.2}
  .juf-search-page .juf-search-hero p{font-size:12.5px;line-height:1.55}
  .juf-search-page .juf-universal-search{margin-top:16px;border-radius:14px}
  .juf-search-page .juf-universal-search>button{min-width:68px}
  .juf-search-start{margin:12px 12px 0;padding:0;gap:8px}
  .juf-search-start-label{flex-basis:100%}
  .juf-search-quick-links{gap:7px}
  .juf-search-quick-links a{min-height:34px;padding:0 12px;font-size:12px}
  .juf-search-start>p{padding:0 8px}
  .juf-search-summary,.juf-search-group,.juf-search-page>section.container:not(.juf-search-hero):not(.juf-search-start){margin-left:12px;margin-right:12px}
  .juf-search-group{margin-top:24px;padding-top:20px}
}

/* Phase 29 — Public text contrast hardening, 2026-09-13
   Keep JUFbook's warm accent, but never render important metadata in washed-out peach. */
.juf-books-filter label > span,
.juf-books-filter label:not(.juf-books-search-field),
.juf-catalog-heading > p,
.juf-catalog-author,
.juf-catalog-card-foot a,
.juf-search-summary p,
.juf-search-start-label,
.juf-search-book small,
.juf-search-book em,
.juf-search-author-grid small,
.juf-search-author-grid em,
.juf-search-category-grid span {
    color: var(--text-muted) !important;
    opacity: 1 !important;
}
.juf-books-filter label > span {
    font-size: 12px;
    font-weight: 500;
}
.juf-catalog-heading > p,
.juf-catalog-author,
.juf-catalog-card-foot a {
    font-weight: 600;
}
.section-overline-label,
.juf-search-group-head > span,
.juf-search-suggestion-meta b,
.juf-catalog-badges span,
.premium-section-heading > span,
.premium-pass-muted > span,
.premium-faq > div:first-child > span {
    color: var(--accent-rust) !important;
    opacity: 1 !important;
}
/* Decorative lines/borders may stay subtle; readable copy must not inherit low opacity. */
.juf-books-page p,
.juf-search-page p,
.juf-books-page a,
.juf-search-page a,
.juf-books-page label,
.juf-search-page label {
    text-rendering: optimizeLegibility;
}


/* 2026-09-14 — Real-book object polish refresh
   Make generated and uploaded covers feel like displayed physical books,
   while staying restrained and readable.
   Applies mainly to catalogue / showcase contexts. */
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket {
    border-radius: 6px 8px 8px 5px !important;
    border: 1px solid rgba(40, 46, 55, .14) !important;
    border-left: 5px solid rgba(40, 46, 55, .18) !important;
    background-clip: padding-box !important;
    box-shadow:
        0 22px 34px rgba(40, 46, 55, .16),
        0 7px 12px rgba(40, 46, 55, .11),
        -4px 5px 9px rgba(40, 46, 55, .08),
        inset -1px 0 rgba(255, 255, 255, .28),
        inset 0 1px rgba(255, 255, 255, .20) !important;
    transform: perspective(960px) rotateY(-4deg) translateZ(0) !important;
    transform-origin: left center !important;
    backface-visibility: hidden !important;
    will-change: transform !important;
}
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket::before {
    content: "" !important;
    position: absolute !important;
    top: 4px !important;
    right: -1px !important;
    bottom: 4px !important;
    width: 5px !important;
    z-index: 8 !important;
    border-radius: 0 7px 7px 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .84), rgba(217, 214, 208, .60) 48%, rgba(91, 99, 118, .20)) !important;
    opacity: .86 !important;
    pointer-events: none !important;
}
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket-custom {
    background: #ECEAE6 !important;
}
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket-custom .juf-book-cover-image {
    object-fit: cover !important;
    object-position: center top !important;
}
.showcase-card-item:hover > .juf-book-jacket,
.juf-catalog-book-card:hover .juf-catalog-cover-link > .juf-book-jacket,
.premium-book-card:hover .premium-book-cover > .juf-book-jacket,
.juf-search-book:hover > .juf-book-jacket {
    transform: perspective(960px) rotateY(-2deg) translateY(-7px) translateZ(0) !important;
    box-shadow:
        0 28px 40px rgba(40, 46, 55, .20),
        0 10px 14px rgba(40, 46, 55, .12),
        -5px 7px 10px rgba(40, 46, 55, .10),
        inset -1px 0 rgba(255, 255, 255, .30),
        inset 0 1px rgba(255, 255, 255, .22) !important;
}
.juf-search-book > .juf-book-jacket {
    transform: perspective(900px) rotateY(-3deg) translateZ(0) !important;
    border-left-width: 3px !important;
    box-shadow: 0 10px 16px rgba(40, 46, 55, .14), -2px 4px 6px rgba(40, 46, 55, .08), inset -1px 0 rgba(255, 255, 255, .22) !important;
}
.juf-book-jacket-generated {
    background: linear-gradient(180deg, color-mix(in srgb, var(--cover-paper,#ECEAE6) 93%, white) 0%, var(--cover-paper,#ECEAE6) 86%, color-mix(in srgb, var(--cover-paper,#ECEAE6) 90%, #E4E6EC) 100%) !important;
    border-color: color-mix(in srgb, var(--cover-ink,var(--text-main)) 20%, rgba(59, 66, 86, .16)) !important;
    box-shadow: 0 12px 28px rgba(40, 46, 55, .11), -8px 0 15px rgba(40, 46, 55, .10) inset !important;
}
.juf-book-jacket-generated::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .26), transparent 24%, rgba(40, 46, 55, .04)) !important;
}
.juf-book-jacket-generated .juf-jacket-spine {
    width: 8px !important;
    background: linear-gradient(to right, rgba(40, 46, 55, .26), rgba(40, 46, 55, .08) 56%, transparent) !important;
}
.juf-book-jacket-generated .juf-jacket-content {
    gap: 4px !important;
    padding-top: 10px !important;
}
.juf-book-jacket-generated .juf-jacket-genre {
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: .05em !important;
    opacity: .92 !important;
}
.juf-book-jacket-generated .juf-jacket-title {
    font-size: 19px !important;
    line-height: 1.22 !important;
    letter-spacing: -.01em !important;
}
.juf-book-jacket-generated .juf-jacket-author {
    margin-top: 5px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}
.juf-book-jacket-generated .juf-cover-art {
    inset: 8% 6% 23% 6% !important;
    opacity: .78 !important;
}
.juf-book-jacket-generated .juf-cover-red-sun {
    top: 12% !important;
    right: 12% !important;
    width: 18% !important;
    opacity: .13 !important;
}
.juf-book-jacket-generated .juf-cover-initial {
    opacity: .16 !important;
}
.juf-book-jacket-generated .juf-cover-seal {
    background: rgba(246, 245, 242, .42) !important;
}
.audio-row-cover > .juf-book-jacket,
.audio-cover-sq .juf-book-jacket,
.audio-cover-poster .juf-book-jacket {
    border-radius: 5px 7px 7px 4px !important;
    border: 1px solid rgba(40, 46, 55, .12) !important;
    border-left: 4px solid rgba(40, 46, 55, .16) !important;
    box-shadow: 0 8px 14px rgba(40, 46, 55, .12), -2px 4px 6px rgba(40, 46, 55, .08), inset -1px 0 rgba(255, 255, 255, .18) !important;
    overflow: hidden !important;
}
.audio-row-cover > .juf-book-jacket::before,
.audio-cover-sq .juf-book-jacket::before,
.audio-cover-poster .juf-book-jacket::before {
    content: "" !important;
    position: absolute !important;
    top: 3px !important;
    right: -1px !important;
    bottom: 3px !important;
    width: 3px !important;
    border-radius: 0 5px 5px 0 !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(217, 214, 208, .52) 48%, rgba(91, 99, 118, .18)) !important;
    opacity: .75 !important;
}
@media (max-width: 620px) {
    :where(
      .showcase-card-item,
      .juf-catalog-cover-link,
      .premium-book-cover,
      .juf-search-book
    ) > .juf-book-jacket {
        transform: none !important;
        box-shadow: 0 14px 20px rgba(40, 46, 55, .14), 0 4px 8px rgba(40, 46, 55, .08), -3px 4px 6px rgba(40, 46, 55, .06), inset -1px 0 rgba(255, 255, 255, .22) !important;
    }
    .showcase-card-item:hover > .juf-book-jacket,
    .juf-catalog-book-card:hover .juf-catalog-cover-link > .juf-book-jacket,
    .premium-book-card:hover .premium-book-cover > .juf-book-jacket,
    .juf-search-book:hover > .juf-book-jacket {
        transform: none !important;
    }
}
@container (max-width: 125px) {
    .juf-book-jacket-generated .juf-jacket-title { font-size: 12.5px !important; }
    .juf-book-jacket-generated .juf-jacket-genre { font-size: 8px !important; }
}


/* 2026-09-14 — Placed-book display polish override
   User correction: covers should feel like neatly placed books, not tilted books.
   Remove the crooked/perspective impression; keep them sharp, straight and premium. */
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket {
    transform: none !important;
    transform-origin: center center !important;
    border-radius: 6px !important;
    border: 1px solid rgba(40, 46, 55, .14) !important;
    border-left: 4px solid rgba(40, 46, 55, .16) !important;
    box-shadow:
        0 12px 22px rgba(40, 46, 55, .12),
        0 3px 8px rgba(40, 46, 55, .08),
        inset -1px 0 rgba(255, 255, 255, .24),
        inset 0 1px rgba(255, 255, 255, .18) !important;
    overflow: hidden !important;
}
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket::before {
    width: 3px !important;
    top: 3px !important;
    bottom: 3px !important;
    border-radius: 0 4px 4px 0 !important;
    opacity: .68 !important;
}
:where(
  .showcase-card-item,
  .juf-catalog-cover-link,
  .premium-book-cover,
  .juf-search-book
) > .juf-book-jacket-custom .juf-book-cover-image {
    filter: contrast(1.04) saturate(1.03) !important;
}
.showcase-card-item:hover > .juf-book-jacket,
.juf-catalog-book-card:hover .juf-catalog-cover-link > .juf-book-jacket,
.premium-book-card:hover .premium-book-cover > .juf-book-jacket,
.juf-search-book:hover > .juf-book-jacket {
    transform: translateY(-3px) !important;
    box-shadow:
        0 16px 26px rgba(40, 46, 55, .14),
        0 5px 10px rgba(40, 46, 55, .09),
        inset -1px 0 rgba(255, 255, 255, .26),
        inset 0 1px rgba(255, 255, 255, .18) !important;
}
.juf-search-book > .juf-book-jacket {
    transform: none !important;
    border-left-width: 3px !important;
    box-shadow: 0 8px 14px rgba(40, 46, 55, .12), 0 2px 6px rgba(40, 46, 55, .07), inset -1px 0 rgba(255, 255, 255, .20) !important;
}
.juf-book-jacket-generated {
    box-shadow: 0 10px 22px rgba(40, 46, 55, .10), inset -7px 0 13px rgba(40, 46, 55, .08) !important;
}
.juf-book-jacket-generated .juf-jacket-genre {
    opacity: .96 !important;
}
.juf-book-jacket-generated .juf-jacket-title {
    font-size: 20px !important;
    line-height: 1.18 !important;
    color: color-mix(in srgb, var(--cover-ink,var(--text-main)) 96%, #282E37) !important;
}
.juf-book-jacket-generated .juf-jacket-author {
    color: color-mix(in srgb, var(--cover-ink,var(--text-main)) 80%, transparent) !important;
}
.juf-book-jacket-generated .juf-cover-art {
    inset: 8% 5% 23% 5% !important;
    opacity: .88 !important;
}
.juf-book-jacket-generated .juf-cover-red-sun {
    opacity: .18 !important;
}
.audio-row-cover > .juf-book-jacket,
.audio-cover-sq .juf-book-jacket,
.audio-cover-poster .juf-book-jacket {
    transform: none !important;
    border-radius: 5px !important;
    box-shadow: 0 7px 12px rgba(40, 46, 55, .11), 0 2px 5px rgba(40, 46, 55, .07), inset -1px 0 rgba(255, 255, 255, .18) !important;
}
.audio-row-cover > .juf-book-jacket::before,
.audio-cover-sq .juf-book-jacket::before,
.audio-cover-poster .juf-book-jacket::before {
    width: 2px !important;
    opacity: .62 !important;
}
@media (max-width: 620px) {
  .showcase-card-item:hover > .juf-book-jacket,
  .juf-catalog-book-card:hover .juf-catalog-cover-link > .juf-book-jacket,
  .premium-book-card:hover .premium-book-cover > .juf-book-jacket,
  .juf-search-book:hover > .juf-book-jacket {
      transform: none !important;
  }
}


/* === MERGED: original-public-v23.css === */
/* Custom webfont files intentionally not bundled; licensed/system fallbacks are used. */
:root {
    --bg-cream: #F6F5F2;
    --text-main: #282E37;
    --text-muted: #5B6376;
    --accent-rust: #3B4256;
    --accent-blue: #2F5D9E;

    /* Canonical JUFbook design tokens (Brand Color & Typography Specification). */
    --juf-light-surface: #ECEAE6;
    --juf-surface-muted: #E4E6EC;
    --juf-surface-white: #FFFFFF;
    --juf-surface-paper: #ECEAE6;
    --juf-tan: #D9D6D0;
    --juf-border: #D9D6D0;
    --juf-ink-soft: #282E37;
    --juf-rust-hover: #2C3243;
    --juf-header-footer: #3B4256;
    --juf-hover: #3B4256;
    --juf-card-surface: #ECEAE6;
    --juf-success-green: #2E7A4F;
    --status-danger: #B0392B;
    --status-warning: #7F520C;

    /* Backward-compatible aliases: legacy components must resolve to canonical tokens. */
    --juf-deep-espresso: var(--juf-header-footer);
    --juf-rich-earth: var(--juf-hover);
    --juf-mushroom-beige: var(--juf-border);
    --juf-warm-putty: var(--juf-card-surface);
    --juf-bone-white: var(--juf-light-surface);

    --font-brand: 'Cinzel', Georgia, serif;
    --font-ui: 'Noto Sans Bengali','Kalpurush','SolaimanLipi', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-ui-system: 'Noto Sans Bengali','Kalpurush','SolaimanLipi', 'Noto Sans Bengali','Kalpurush','SolaimanLipi', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Tiro Bangla','Kalpurush','SolaimanLipi', 'Tiro Bangla','Kalpurush','SolaimanLipi', serif;
    --font-traditional: 'Tiro Bangla','Kalpurush','SolaimanLipi', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-main);
    font-family: var(--font-reading, 'SolaimanLipi', serif);
    line-height: 1.6;
    overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, span, a, input, button {
    letter-spacing: normal !important;
    text-transform: none !important;
    font-feature-settings: "kern" 1, "liga" 1;
}

.container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }

/* 1. Header & Navigation */
.juf-header-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(246, 245, 242, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(217, 214, 208, 0.6);
    padding: 12px 0;
    margin-bottom: 25px;
}

.juf-header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.juf-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 1;
}

.juf-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border: 3.5px solid #3B4256;
    border-radius: 14px;
    background: transparent;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.juf-logo-badge .juf-text {
    font-family: 'Avallon Caps', cursive, sans-serif;
    font-size: 30px;
    color: #282E37;
    letter-spacing: 1.5px;
    display: block;
    line-height: 0.9;
    transition: color 0.25s ease;
}

.juf-brand-logo-wrap .book-text {
    font-family: 'Mauritz Sans', sans-serif;
    font-size: 26px;
    color: var(--accent-rust);
    letter-spacing: 0.5px;
    transform: translateY(2px);
}

.juf-brand-logo-wrap:hover .juf-logo-badge {
    transform: scale(1.05);
    border-color: var(--accent-rust);
}

.juf-brand-logo-wrap:hover .juf-logo-badge .juf-text {
    color: var(--accent-rust);
}

.juf-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.juf-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-ui);
    transition: color 0.2s ease;
}

.juf-nav a:hover {
    color: var(--accent-rust);
}

.juf-auth-btn {
    background: var(--accent-rust) !important;
    color: #FFFFFF !important;
    padding: 8px 22px;
    border-radius: 999px;
    font-weight: 600 !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(59, 66, 86, 0.22);
    font-family: var(--font-ui);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.juf-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(59, 66, 86, 0.32);
}

/* 2. Cinematic Hero Carousel */
.hero-cinematic-stage {
    position: relative;
    width: 100%;
    min-height: 480px;
    height: 480px;
    margin: 20px 0 40px;
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid #D9D6D0;
    box-shadow: 0 14px 40px rgba(40, 46, 55, 0.05), 0 2px 10px rgba(0, 0, 0, 0.02);
    background: #3B4256;
}

.hero-cinematic-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 480px;
}

.hero-slide-item {
    position: absolute;
    inset: 0;
    padding: 60px 80px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.hero-slide-item.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-bg-art-layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-art-mesh-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #F6F5F2 0%, #ECEAE6 50%, #E4E6EC 100%);
    opacity: 1;
    transition: background 1s ease;
}

.hero-art-blob-1 {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 580px;
    height: 580px;
    border-radius: 50%;
    background: var(--slide-theme, #3346A8);
    opacity: 0.22;
    filter: blur(80px);
    transform: scale(0.85);
    transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1), background 1s ease;
}

.hero-art-blob-2 {
    position: absolute;
    bottom: -35%;
    left: 25%;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: var(--slide-theme, #3346A8);
    opacity: 0.15;
    filter: blur(70px);
    transform: scale(0.8);
    transition: transform 1.4s cubic-bezier(0.25, 1, 0.5, 1), background 1s ease;
}

.hero-art-grid-lines {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.7;
}

.hero-slide-item.active .hero-art-blob-1 { transform: scale(1.1) rotate(15deg); }
.hero-slide-item.active .hero-art-blob-2 { transform: scale(1) rotate(-10deg); }

.hero-slide-info {
    max-width: 540px;
    z-index: 3;
    position: relative;
}

.hero-slide-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-rust);
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(22px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
    font-family: var(--font-ui);
}

.hero-slide-title {
    font-family: var(--font-display-literary, var(--font-book-title));
    font-size: 38px;
    font-weight: 400;
    color: #282E37;
    line-height: 1.25;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(26px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.hero-slide-author {
    font-size: 15px;
    color: #282E37;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
    font-family: var(--font-ui-system);
    font-weight: 500;
}

.hero-slide-desc {
    font-size: 14px;
    color: #5B6376;
    line-height: 1.7;
    margin-bottom: 26px;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.4s;
    font-family: var(--font-ui-system);
    font-weight: 400;
}

.hero-slide-actions {
    display: flex;
    gap: 14px;
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.5s;
}

.hero-slide-item.active .hero-slide-badge,
.hero-slide-item.active .hero-slide-title,
.hero-slide-item.active .hero-slide-author,
.hero-slide-item.active .hero-slide-desc,
.hero-slide-item.active .hero-slide-actions {
    opacity: 1;
    transform: translateY(0);
}

.btn-hero-cinematic-primary {
    background: var(--accent-rust);
    color: #FFFFFF !important;
    padding: 11px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(51, 70, 168, 0.32);
    transition: all 0.25s ease;
    font-family: var(--font-ui);
}

.btn-hero-cinematic-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(51, 70, 168, 0.45);
}

.btn-hero-cinematic-secondary {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid #D9D6D0;
    color: #282E37;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    font-family: var(--font-ui);
}

.btn-hero-cinematic-secondary:hover {
    background: #FFFFFF;
    border-color: var(--accent-rust);
}

.hero-slide-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.hero-slide-visual .hero-jacket {
    width: 220px;
    height: 310px;
    opacity: 0;
    transform: scale(0.85) rotate(-4deg);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.9s cubic-bezier(0.25, 1, 0.5, 1) 0.15s;
}

.hero-slide-item.active .hero-slide-visual .hero-jacket {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.hero-thumb-queue {
    position: absolute;
    bottom: 24px;
    right: 50px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-thumb-card {
    width: 62px;
    height: 84px;
    border-radius: 8px;
    background: var(--thumb-bg, #3346A8);
    cursor: pointer;
    border: 2px solid transparent;
    padding: 8px 6px;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    transform: translateY(0) scale(0.92);
    opacity: 0.6;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-thumb-card:hover {
    opacity: 0.9;
    transform: translateY(-3px) scale(0.98);
}

.hero-thumb-card.current-thumb {
    border-color: var(--accent-rust);
    opacity: 1;
    transform: translateY(-6px) scale(1.06);
    box-shadow: 0 8px 20px rgba(59, 66, 86, 0.38);
}

.thumb-mini-jacket span {
    font-size: 10px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-heading);
}

.hero-cinematic-arrows {
    position: absolute;
    bottom: 30px;
    left: 80px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-cinematic-arrow-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #D9D6D0;
    color: #282E37;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.hero-cinematic-arrow-btn:hover {
    background: var(--accent-rust);
    color: #FFFFFF;
    border-color: var(--accent-rust);
}

/* 3. Search Bar Row */
.search-pill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    gap: 16px;
    flex-wrap: wrap;
}

.search-input-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 999px;
    padding: 10px 20px;
    width: 340px;
    max-width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #D9D6D0;
}

.search-input-box input {
    border: none;
    outline: none;
    font-family: var(--font-ui-system);
    font-size: 14px;
    width: 100%;
    margin-left: 10px;
}

.search-tags-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.search-tags-nav a {
    color: #282E37;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-ui);
}

/* Returning reader / account gateway — compact editorial strip. */
.home-reading-gateway {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
    min-height: 0;
    margin: 0 0 28px;
    padding: 14px 16px;
    overflow: hidden;
    border: 1px solid #D9D6D0;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(236, 234, 230, .98), rgba(246, 245, 242, .74));
    color: var(--juf-deep-espresso);
    box-shadow: 0 8px 22px rgba(59, 66, 86, .06);
}

.home-reading-gateway.has-continue {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

.home-reading-gateway::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--accent-rust);
    opacity: .9;
}

.home-reading-gateway-art {
    position: relative;
    right: auto;
    bottom: auto;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(59, 66, 86, .2);
    border-radius: 50%;
    background: rgba(59, 66, 86, .07);
    color: var(--accent-rust);
    transform: none;
    pointer-events: none;
}

.home-reading-gateway-art svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-reading-cover {
    display: block;
    width: 58px;
    text-decoration: none;
}

.home-reading-cover .home-reading-cover-image,
.home-reading-cover > .juf-book-jacket {
    width: 58px !important;
    min-height: 82px !important;
    aspect-ratio: 2 / 3;
    border-radius: 4px;
}

.home-reading-gateway-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.home-reading-gateway-kicker {
    display: block;
    margin-bottom: 3px;
    color: var(--accent-rust);
    font-family: var(--font-ui-system);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .035em !important;
}

.home-reading-gateway-copy h2 {
    margin: 0;
    color: var(--juf-deep-espresso);
    font-family: var(--font-heading);
    font-size: clamp(18px, 1.75vw, 23px);
    line-height: 1.28;
}

.home-reading-gateway-copy p {
    max-width: 720px;
    margin: 4px 0 0;
    color: rgba(59, 66, 86, .82);
    font-family: var(--font-ui-system);
    font-size: 12px;
    line-height: 1.55;
}

.home-reading-progress {
    width: min(360px, 100%);
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(91, 99, 118, .5);
}

.home-reading-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-rust);
}

.home-reading-gateway-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.home-reading-primary,
.home-reading-secondary {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-ui-system);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.home-reading-primary {
    background: var(--accent-rust);
    color: #fff;
    box-shadow: 0 5px 14px rgba(59, 66, 86, .14);
}

.home-reading-secondary {
    border-color: rgba(59, 66, 86, .22);
    background: rgba(255, 255, 255, .7);
    color: var(--juf-deep-espresso);
}

.home-reading-primary:hover,
.home-reading-primary:focus-visible,
.home-reading-secondary:hover,
.home-reading-secondary:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(59, 66, 86, .12);
}

@media (max-width: 860px) {
    .home-reading-gateway,
    .home-reading-gateway.has-continue {
        grid-template-columns: 48px minmax(0,1fr);
        gap: 12px 14px;
        padding: 13px 14px;
    }
    .home-reading-gateway.has-continue { grid-template-columns: 54px minmax(0,1fr); }
    .home-reading-cover,
    .home-reading-cover .home-reading-cover-image,
    .home-reading-cover > .juf-book-jacket { width: 54px !important; }
    .home-reading-cover .home-reading-cover-image,
    .home-reading-cover > .juf-book-jacket { min-height: 78px !important; }
    .home-reading-gateway-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 0;
    }
}

@media (max-width: 430px) {
    .home-reading-gateway,
    .home-reading-gateway.has-continue {
        grid-template-columns: 40px minmax(0,1fr);
        gap: 10px 11px;
        margin-bottom: 22px;
        padding: 12px;
        border-radius: 14px;
    }
    .home-reading-gateway-art { width: 38px; height: 38px; }
    .home-reading-gateway-art svg { width: 19px; height: 19px; }
    .home-reading-gateway.has-continue { grid-template-columns: 48px minmax(0,1fr); }
    .home-reading-cover,
    .home-reading-cover .home-reading-cover-image,
    .home-reading-cover > .juf-book-jacket { width: 48px !important; }
    .home-reading-cover .home-reading-cover-image,
    .home-reading-cover > .juf-book-jacket { min-height: 70px !important; }
    .home-reading-gateway-kicker { font-size: 9.5px; }
    .home-reading-gateway-copy h2 { font-size: 17px; }
    .home-reading-gateway-copy p { margin-top: 3px; font-size: 11px; line-height: 1.45; }
    .home-reading-gateway-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
        gap: 7px;
    }
    .home-reading-primary,
    .home-reading-secondary { width: 100%; min-height: 36px; padding-inline: 10px; font-size: 11px; }
}

/* Section Titles & Controls */
.page-section-title {
    font-family: var(--font-heading-editorial, var(--font-heading));
    font-size: 28px;
    font-weight: 500;
    color: #282E37;
    margin-bottom: 16px;
    line-height: 1.35;
}

.section-title-wrap-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}

.section-title-wrap-flex .page-section-title {
    margin-bottom: 0 !important;
}

.slider-nav-ctrl {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.slider-ctrl-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 1px solid var(--juf-surface-muted) !important;
    color: #282E37 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.slider-ctrl-btn:hover {
    background: var(--accent-rust) !important;
    color: #FFFFFF !important;
    border-color: var(--accent-rust) !important;
    transform: scale(1.05) !important;
}

.sub-tabs-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.sub-tab-item {
    font-size: 14px;
    font-weight: 500;
    color: #5B6376;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.25s ease;
    font-family: var(--font-ui);
}

.sub-tab-item:hover {
    color: var(--accent-blue);
    background: rgba(91, 99, 118, 0.06);
}

.sub-tab-item.active {
    color: #FFFFFF;
    background: var(--accent-blue);
    font-weight: 600;
}

/* 4. Authors Pastel Cards */
.pastel-authors-slider-track {
    display: flex !important;
    gap: 20px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    padding: 6px 2px 16px !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
}
.pastel-authors-slider-track::-webkit-scrollbar { display: none !important; }

.pastel-card {
    flex: 0 0 320px !important;
    min-width: 320px !important;
    border-radius: 16px;
    padding: 24px 20px;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pastel-card-mint { background: #E4E6EC; }
.pastel-card-peach { background: #ECEAE6; }
.pastel-card-coral { background: #E4E6EC; }
.pastel-card-lavender { background: #ECEAE6; }

.pastel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.pastel-card h3 {
    font-family: var(--font-heading-editorial, var(--font-heading));
    font-size: 20px;
    font-weight: 500;
    color: #282E37;
    margin-bottom: 4px;
}

.pastel-card p {
    font-size: 13px;
    color: #282E37;
    font-family: var(--font-ui-system);
    font-weight: 400;
}

/* 5. Audiobook Slider */
.audiobook-slider-track {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    padding: 6px 2px 16px !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
}
.audiobook-slider-track::-webkit-scrollbar { display: none !important; }

.audio-pill-card {
    flex: 0 0 290px !important;
    min-width: 290px !important;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #D9D6D0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.audio-pill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.audio-cover-sq {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--font-heading);
}

.audio-details { flex: 1; min-width: 0; }
.audio-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: #282E37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
}
.audio-details p {
    font-size: 12px;
    color: #5B6376;
    margin-top: 2px;
    font-family: var(--font-ui-system);
}

.audio-play-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #3B4256;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 11px;
}

/* 6. Authors by Genres */
.genres-slider-track {
    display: flex !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-behavior: smooth !important;
    scrollbar-width: none !important;
    padding-bottom: 8px !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
}
.genres-slider-track::-webkit-scrollbar { display: none !important; }

.genre-dark-box {
    flex: 0 0 160px !important;
    min-width: 160px !important;
    background: #3B4256;
    border-radius: 12px;
    padding: 20px 14px;
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease;
}

.genre-dark-box:hover {
    transform: translateY(-4px);
    background: #2C3243;
}

.genre-dark-box h4 {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 4px;
    font-family: var(--font-ui);
}

.genre-dark-box span {
    font-size: 12px;
    color: #F6F5F2;
    font-family: var(--font-ui-system);
}

/* 7. Books Showcase */
.books-showcase-wrapper {
    background: #FFFFFF;
    border-radius: 24px;
    padding: 36px 28px;
    margin-bottom: 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #D9D6D0;
}

.grid-5-col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 20px;
}

.showcase-card-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.25s ease;
}

.showcase-card-item:hover {
    transform: translateY(-6px);
}

.juf-book-jacket {
    width: 100%;
    aspect-ratio: 1 / 1.42;
    border-radius: 6px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    box-shadow: none !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-left: 5px solid rgba(0, 0, 0, 0.35) !important;
    background-size: cover;
    background-position: center;
}

.juf-book-jacket::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.28);
    border-radius: 3px;
    pointer-events: none;
    z-index: 1;
}

.juf-book-jacket::after {
    content: "";
    position: absolute;
    top: 15%;
    right: -10%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 20%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.juf-jacket-spine { display: none !important; }

.juf-jacket-genre, .juf-jacket-title {
    position: relative;
    z-index: 2;
}

.juf-jacket-genre {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3px;
    font-family: var(--font-ui);
    font-weight: 600;
}

.juf-jacket-title {
    font-family: var(--font-display-literary, var(--font-book-title));
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.25;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.book-under-meta { margin-top: 10px; }

.book-under-title {
    font-size: 14px;
    font-weight: 600;
    color: #282E37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-heading);
}

.book-under-author {
    font-size: 12px;
    color: #5B6376;
    margin-top: 1px;
    font-family: var(--font-ui-system);
    font-weight: 500;
}

.book-rating-gold {
    color: #A8741A;
    font-size: 11px;
    margin-top: 2px;
}

.pagination-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.page-num-btn {
    padding: 7px 15px;
    border-radius: 6px;
    border: none;
    background: #ECEAE6;
    color: #282E37;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: all 0.2s ease;
}

.page-num-btn.active {
    background: var(--accent-rust);
    color: #fff;
}

.page-num-btn:hover:not(.active) {
    background: #E4E6EC;
}

/* 8. Labels */
.section-overline-label {
    font-size: 13px;
    color: var(--accent-rust);
    margin-bottom: 2px;
    font-weight: 600;
    font-family: var(--font-ui);
}

/* 9. Authors Circular Slider */
.authors-premium-slider-wrapper {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 45px;
}

.authors-circle-slider-track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 14px 10px;
    -webkit-overflow-scrolling: touch;
}
.authors-circle-slider-track::-webkit-scrollbar { display: none; }

.author-circle-unit {
    flex: 0 0 100px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s ease;
}
.author-circle-unit:hover {
    transform: translateY(-4px);
}

.author-circle-disc {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 3px solid #FFFFFF;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.author-circle-unit:hover .author-circle-disc {
    border-color: var(--accent-rust);
    box-shadow: 0 8px 22px rgba(59, 66, 86, 0.25);
}

.author-initial-char {
    color: #FFFFFF;
    font-size: 26px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
}

.author-circle-name {
    font-size: 13px;
    font-weight: 600;
    color: #282E37;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-ui-system);
}

.author-circle-title {
    font-size: 11px;
    color: #5B6376;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-ui-system);
    font-weight: 400;
}

.author-nav-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--juf-surface-muted);
    color: #282E37;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.author-nav-arrow:hover {
    background: var(--accent-rust);
    color: #FFFFFF;
    border-color: var(--accent-rust);
}

.author-nav-arrow.arrow-left { left: 0; }
.author-nav-arrow.arrow-right { right: 0; }

/* 10. Testimonials */
.testimonials-slider-box {
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testimonial-card-white {
    flex: 0 0 calc(50% - 10px);
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid #D9D6D0;
    box-sizing: border-box;
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 30px;
    color: var(--accent-rust);
    line-height: 1;
    margin-bottom: 6px;
}

/* Animations */
.anim-card {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.25s ease;
    will-change: transform, opacity;
}

.anim-card.in-view {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* 11. Newsletter */
.newsletter-premium-wrapper {
    position: relative;
    background: #FFFFFF;
    border-radius: 28px;
    padding: 48px 30px;
    text-align: center;
    max-width: 780px;
    margin: 40px auto 60px;
    box-shadow: 0 10px 35px rgba(40, 46, 55, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid #D9D6D0;
    overflow: hidden;
}

.newsletter-luxury-pill {
    display: flex;
    align-items: center;
    background: #F6F5F2;
    border: 1.5px solid #D9D6D0;
    border-radius: 999px;
    padding: 5px 5px 5px 18px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
}

.newsletter-luxury-pill:focus-within {
    border-color: var(--accent-rust);
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(59, 66, 86, 0.12);
}

.pill-input-wrap {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.newsletter-luxury-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: var(--font-ui-system);
    font-size: 14px;
    color: #282E37;
}

.newsletter-luxury-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--accent-rust), #2C3243);
    color: #FFFFFF;
    border: none;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    font-family: var(--font-ui);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(59, 66, 86, 0.28);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* 12. Footer */
.juf-footer-cream {
    background-color: var(--bg-cream);
    padding: 50px 0 25px;
    margin-top: 40px;
    border-top: 1px solid var(--juf-light-surface);
}

.footer-grid-cream {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 35px;
}

.footer-col-cream h4 {
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    color: #282E37;
    margin-bottom: 14px;
}

.footer-tagline-text {
    font-size: 13px;
    color: #5B6376;
    margin-bottom: 16px;
    line-height: 1.6;
    font-family: var(--font-ui-system);
}

.footer-col-cream ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col-cream ul li { margin-bottom: 8px; }

.footer-col-cream ul li a {
    color: #282E37;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
    font-family: var(--font-ui);
}

.footer-col-cream ul li a:hover { color: var(--accent-rust); }

.footer-contact-mail {
    font-size: 13px;
    color: #282E37;
    font-family: var(--font-ui-system);
}

.footer-copyright-cream {
    text-align: center;
    font-size: 12px;
    color: #5B6376;
    padding-top: 20px;
    border-top: 1px solid var(--juf-light-surface);
    font-family: var(--font-ui-system);
}

/* Responsive Queries */
@media (max-width: 1024px) {
    .grid-5-col {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .hero-slide-item {
        padding: 40px 50px;
        gap: 25px;
    }
    .hero-slide-title {
        font-size: 34px;
    }
    .footer-grid-cream {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .juf-nav {
        gap: 12px;
        flex-wrap: wrap;
    }
    .hero-cinematic-stage {
        height: auto;
        min-height: auto;
        padding-bottom: 40px;
    }
    .hero-cinematic-slider {
        min-height: 520px;
    }
    .hero-slide-item {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        text-align: center;
    }
    .hero-slide-info {
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-slide-actions {
        justify-content: center;
    }
    .hero-slide-visual,
    .hero-thumb-queue {
        display: none;
    }
    .hero-cinematic-arrows {
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
    }
    .testimonial-card-white {
        flex: 0 0 100%;
    }
    .search-pill-row {
        flex-direction: column;
        align-items: stretch;
    }
    .search-input-box {
        width: 100%;
    }
    .search-tags-nav {
        justify-content: space-around;
    }
}

@media (max-width: 640px) {
    .grid-5-col {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px 12px;
    }
    .hero-slide-title {
        font-size: 26px;
    }
    .footer-grid-cream {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .pastel-card {
        flex: 0 0 280px !important;
        min-width: 280px !important;
    }
    .authors-premium-slider-wrapper {
        padding: 0 30px;
    }
}

/* =========================================================
   V23 FINAL BRANDING / COMPATIBILITY OVERRIDES
   Original uploaded public layout remains the visual baseline.
   ========================================================= */
.juf-header-modern .juf-brand-logo-wrap,
.juf-brand-logo-wrap.juf-text-wordmark {
    height: 56px;
    overflow: visible;
    gap: 8px;
    line-height: 1;
}
.juf-text-wordmark .juf-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 7px 13px 6px;
    border: 0;
    border-radius: 13px;
    background: var(--text-main);
    box-shadow: 0 5px 14px rgba(40, 46, 55, .14);
    transition: transform .22s ease, box-shadow .22s ease;
}
.juf-text-wordmark .juf-logo-juf {
    font-family: 'Bahianita', 'Bahiana', 'Avallon Caps', cursive, sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: #FFFFFF;
    letter-spacing: .4px !important;
    line-height: .9;
    white-space: nowrap;
}
.juf-text-wordmark .juf-logo-book {
    font-family: 'Mauritz Sans', 'Outfit', 'Inter', sans-serif;
    font-size: 25px;
    font-weight: 500;
    color: var(--accent-rust);
    letter-spacing: 0 !important;
    line-height: 1;
    white-space: nowrap;
}
.juf-text-wordmark:hover .juf-logo-badge {
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(40, 46, 55, .18);
}
.juf-footer-brand-text {
    display: inline-flex;
    align-items: center;
    font-family: 'Bahianita', 'Bahiana', 'Avallon Caps', cursive, sans-serif;
    font-size: 31px;
    line-height: 1;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 12px;
}
/* The public logo is text-only. Keep image-logo classes hidden only in visible brand slots. */
.juf-header-modern .juf-site-logo,
.juf-footer-cream .juf-site-logo { display:none !important; }
/* Current V22/V23 mobile controls live in the core stylesheet; retain them over legacy desktop layout. */
.juf-mobile-menu-btn { flex: 0 0 auto; }
@media (max-width: 860px) {
    .juf-header-modern { padding: 9px 0; }
    .juf-header-modern .juf-header-wrap { min-height: 56px; }
    .juf-text-wordmark .juf-logo-badge { min-width: 62px; padding: 6px 11px 5px; }
    .juf-text-wordmark .juf-logo-juf { font-size: 27px; }
    .juf-text-wordmark .juf-logo-book { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .juf-text-wordmark .juf-logo-badge { transition:none; }
}

/* ========================================================================
   JUFbook V24 Phase 2 — Global Header + Footer
   Scope intentionally limited to shared chrome. Homepage sections/animations
   are not restructured here.
   ======================================================================== */

.juf-header-v24 {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    background: rgba(59, 66, 86, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 30px rgba(40, 46, 55, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.juf-header-v24 .juf-header-shell {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(128px, 170px) 1fr;
    align-items: center;
    gap: 30px;
}

.juf-brand-v24 {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-width: 0;
    text-decoration: none;
    line-height: 1;
}

.juf-brand-wordmark-v24 {
    display: block;
    width: 132px;
    height: 43px;
    object-fit: contain;
    object-position: left center;
}

.juf-brand-symbol-v24 { display: none; }

.juf-nav-v24 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
}

.juf-nav-primary-v24,
.juf-nav-actions-v24 {
    display: flex;
    align-items: center;
}

.juf-nav-primary-v24 { gap: 3px; }
.juf-nav-actions-v24 { gap: 8px; }

.juf-nav-v24 .juf-nav-link-v24 {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, .76);
    font-family: var(--font-ui-system);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.juf-nav-v24 .juf-nav-link-v24:hover,
.juf-nav-v24 .juf-nav-link-v24:focus-visible,
.juf-nav-v24 .juf-nav-link-v24.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.juf-nav-v24 .juf-premium-nav-v24 {
    gap: 5px;
    color: var(--juf-bone-white);
    border: 1px solid rgba(246, 245, 242, .18);
    background: rgba(246, 245, 242, .06);
}
.juf-nav-v24 .juf-premium-nav-v24 > span { font-size: 10px; }
.juf-nav-v24 .juf-premium-nav-v24:hover,
.juf-nav-v24 .juf-premium-nav-v24:focus-visible,
.juf-nav-v24 .juf-premium-nav-v24.is-active {
    color: #fff;
    border-color: rgba(246, 245, 242, .32);
    background: rgba(246, 245, 242, .13);
}

.juf-nav-v24 .juf-nav-link-v24.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #3B4256;
    transform: translateX(-50%);
}

.juf-header-icon-btn-v24,
.juf-header-logout-v24 button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .88);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.juf-header-icon-btn-v24:hover,
.juf-header-icon-btn-v24:focus-visible,
.juf-header-logout-v24 button:hover,
.juf-header-logout-v24 button:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .11);
    transform: translateY(-1px);
}

.juf-header-icon-btn-v24 svg,
.juf-header-logout-v24 button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.juf-notification-badge-v24 {
    position: absolute;
    top: -4px;
    right: -5px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--juf-deep-espresso);
    border-radius: 999px;
    background: #3B4256;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}

.juf-user-chip-v24 {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    max-width: 190px;
    padding: 4px 12px 4px 5px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .05);
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.juf-user-chip-v24:hover,
.juf-user-chip-v24:focus-visible,
.juf-user-chip-v24.is-active {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .19);
}

.juf-user-avatar-v24 {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--juf-bone-white);
    color: var(--juf-deep-espresso);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.juf-user-copy-v24 {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.juf-user-copy-v24 small {
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
    font-weight: 500;
}

.juf-user-copy-v24 strong {
    max-width: 116px;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.juf-login-btn-v24,
.juf-admin-link-v24 {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.juf-login-btn-v24 {
    background: var(--juf-bone-white);
    color: var(--juf-deep-espresso) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .10);
}

.juf-login-btn-v24:hover,
.juf-login-btn-v24:focus-visible { background: var(--juf-warm-putty); }

.juf-admin-link-v24 {
    color: #F6F5F2 !important;
    background: rgba(59, 66, 86, .11);
    border: 1px solid rgba(59, 66, 86, .24);
}

.juf-header-logout-v24 { margin: 0; display: inline-flex; }
.juf-mobile-action-label { display: none; }

.juf-menu-v24 {
    display: none;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
}

.juf-menu-v24 span { background: #fff; }

/* Footer */
.juf-footer-v24 {
    position: relative;
    margin-top: 76px;
    padding: 68px 0 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 0%, rgba(59, 66, 86, .12), transparent 28%),
        var(--juf-deep-espresso);
    color: rgba(255, 255, 255, .72);
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.juf-footer-v24::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1220px, calc(100% - 40px));
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .15), transparent);
    transform: translateX(-50%);
}

.juf-footer-top-v24 {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.65fr);
    gap: clamp(48px, 8vw, 110px);
    padding-bottom: 48px;
}

.juf-footer-logo-v24 {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 22px;
}

.juf-footer-logo-v24 img {
    width: 154px;
    height: 62px;
    object-fit: contain;
    object-position: left center;
}

.juf-footer-kicker-v24 {
    margin: 0 0 8px;
    color: #F6F5F2;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
}

.juf-footer-tagline-v24 {
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, .55);
    font-family: var(--font-ui-system);
    font-size: 13px;
    line-height: 1.75;
}

.juf-footer-links-v24 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.juf-footer-column-v24 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.juf-footer-column-v24 h2 {
    margin: 0 0 7px;
    color: #F6F5F2;
    font-family: var(--font-ui-system);
    font-size: 13px;
    font-weight: 500;
}

.juf-footer-column-v24 a {
    max-width: 100%;
    color: rgba(255, 255, 255, .54);
    font-family: var(--font-ui-system);
    font-size: 12px;
    line-height: 1.55;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s ease, transform .2s ease;
}

.juf-footer-column-v24 a:hover,
.juf-footer-column-v24 a:focus-visible {
    color: #fff;
    transform: translateX(2px);
}

.juf-footer-bottom-v24 {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.juf-footer-bottom-v24 p {
    margin: 0;
    color: rgba(255, 255, 255, .38);
    font-size: 11px;
}

.juf-footer-socials-v24 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.juf-footer-socials-v24 a {
    color: rgba(255, 255, 255, .46);
    font-size: 11px;
    text-decoration: none;
    transition: color .2s ease;
}

.juf-footer-socials-v24 a:hover,
.juf-footer-socials-v24 a:focus-visible { color: #fff; }

@media (max-width: 1100px) {
    .juf-header-v24 .juf-header-shell { grid-template-columns: minmax(110px, 145px) 1fr; gap: 16px; }
    .juf-brand-wordmark-v24 { width: 116px; }
    .juf-nav-v24 { gap: 12px; }
    .juf-nav-primary-v24 .juf-nav-link-v24 { padding-inline: 9px; font-size: 13px; }
    .juf-user-copy-v24 { display: none; }
    .juf-user-chip-v24 { width: 42px; padding: 4px; justify-content: center; }
}

@media (max-width: 900px) {
    .juf-header-v24 { padding: 8px 0; }
    .juf-header-v24 .juf-header-shell {
        position: relative;
        display: flex;
        min-height: 52px;
        justify-content: space-between;
        gap: 14px;
    }

    .juf-brand-wordmark-v24 { width: 116px; height: 40px; }
    .juf-menu-v24 { display: flex; flex: 0 0 42px; width: 42px; height: 42px; margin-left: auto; }

    .juf-nav-v24 {
        position: absolute;
        top: calc(100% + 8px);
        left: 20px;
        right: 20px;
        width: auto;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        display: none;
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin: 0;
        padding: 15px;
        border: 1px solid var(--juf-mushroom-beige);
        border-radius: 18px;
        background: rgba(246, 245, 242, .99);
        box-shadow: 0 20px 55px rgba(40, 46, 55, .18);
    }

    .juf-nav-v24.is-open { display: flex; }
    .juf-nav-primary-v24,
    .juf-nav-actions-v24 {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 3px;
    }

    .juf-nav-primary-v24 { padding-bottom: 10px; border-bottom: 1px solid var(--juf-mushroom-beige); }

    .juf-nav-v24 .juf-nav-link-v24,
    .juf-header-icon-btn-v24,
    .juf-login-btn-v24,
    .juf-admin-link-v24,
    .juf-user-chip-v24,
    .juf-header-logout-v24 button {
        width: 100%;
        min-height: 44px;
        height: auto;
        justify-content: flex-start;
        border-radius: 11px;
        padding: 10px 12px;
        color: var(--juf-deep-espresso) !important;
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .juf-nav-v24 .juf-nav-link-v24:hover,
    .juf-nav-v24 .juf-nav-link-v24:focus-visible,
    .juf-nav-v24 .juf-nav-link-v24.is-active,
    .juf-header-icon-btn-v24:hover,
    .juf-header-icon-btn-v24:focus-visible,
    .juf-user-chip-v24:hover,
    .juf-user-chip-v24:focus-visible,
    .juf-user-chip-v24.is-active,
    .juf-header-logout-v24 button:hover,
    .juf-header-logout-v24 button:focus-visible {
        color: var(--juf-deep-espresso) !important;
        background: var(--juf-warm-putty);
        border-color: transparent;
        transform: none;
    }

    .juf-nav-v24 .juf-premium-nav-v24 {
        color: var(--juf-deep-espresso) !important;
        border-color: var(--juf-mushroom-beige);
        background: rgba(217, 214, 208, .62);
    }
    .juf-nav-v24 .juf-nav-link-v24.is-active::after { display: none; }
    .juf-header-icon-btn-v24 svg,
    .juf-header-logout-v24 button svg { width: 18px; height: 18px; margin-right: 10px; }
    .juf-mobile-action-label { display: inline; font-size: 13px; font-weight: 600; }
    .juf-notification-badge-v24 { top: 4px; left: 25px; right: auto; border-color: var(--juf-warm-putty); }
    .juf-user-chip-v24 { gap: 10px; max-width: none; }
    .juf-user-copy-v24 { display: flex; }
    .juf-user-copy-v24 small { color: var(--juf-rich-earth); }
    .juf-user-copy-v24 strong { max-width: 240px; color: var(--juf-deep-espresso); }
    .juf-user-avatar-v24 { background: var(--juf-warm-putty); color: var(--juf-deep-espresso); }
    .juf-header-logout-v24 { width: 100%; }
    .juf-login-btn-v24 { background: var(--juf-deep-espresso); color: #fff !important; justify-content: center; margin-top: 4px; }
    .juf-admin-link-v24 { background: #ECEAE6; color: #3B4256 !important; }

    .juf-footer-top-v24 { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 640px) {
    .juf-header-v24 .container { padding-left: 16px; padding-right: 16px; }
    .juf-brand-wordmark-v24 { display: none; }
    .juf-brand-symbol-v24 { display: block; width: 37px; height: 43px; object-fit: contain; }
    .juf-nav-v24 { left: 16px; right: 16px; }

    .juf-footer-v24 { margin-top: 56px; padding-top: 50px; }
    .juf-footer-top-v24 { padding-bottom: 34px; }
    .juf-footer-logo-v24 img { width: 134px; height: 54px; }
    .juf-footer-links-v24 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 30px 20px; }
    .juf-footer-column-v24:last-child { grid-column: 1 / -1; }
    .juf-footer-bottom-v24 { align-items: flex-start; flex-direction: column; gap: 12px; }
    .juf-footer-socials-v24 { justify-content: flex-start; }
}

@media (max-width: 420px) {
    .juf-footer-links-v24 { grid-template-columns: 1fr; }
    .juf-footer-column-v24:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .juf-header-v24 *,
    .juf-footer-v24 * { transition: none !important; }
}

/* ========================================================================
   JUFbook V24 Phase 15 — Reader login/onboarding + minimal auth shell
   ======================================================================== */
.juf-reader-auth-page .juf-header-v24 .juf-header-shell{grid-template-columns:auto 1fr;gap:20px}
.juf-minimal-shell-return{justify-self:end;display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 14px;border:1px solid rgba(255, 255, 255, .13);border-radius:999px;color:rgba(255, 255, 255, .78);font-size:12.5px;font-weight:700;text-decoration:none;transition:background-color .2s ease,color .2s ease,border-color .2s ease}
.juf-minimal-shell-return:hover,.juf-minimal-shell-return:focus-visible{background:rgba(255, 255, 255, .08);border-color:rgba(255, 255, 255, .22);color:#fff}
.juf-footer-minimal-v27{margin-top:0;padding:20px 0;background:#3B4256}
.juf-footer-minimal-v27::before{display:none}
.juf-footer-minimal-inner-v27{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:38px}
.juf-footer-minimal-inner-v27 p{margin:0;color:rgba(255, 255, 255, .42);font-size:10.5px}
.juf-footer-minimal-inner-v27 nav{display:flex;align-items:center;gap:16px}
.juf-footer-minimal-inner-v27 a{color:rgba(255, 255, 255, .58);font-size:11px;text-decoration:none}
.juf-footer-minimal-inner-v27 a:hover,.juf-footer-minimal-inner-v27 a:focus-visible{color:#fff}

/* JUFbook reader login — approved clean book-door reference */
.juf-reader-auth-page{min-height:100vh;background:#E4E6EC;color:#2F5D9E}
.juf-reader-auth-page .juf-header-v24,.juf-reader-auth-page .juf-footer-minimal-v27{display:none!important}
.juf-reader-auth-page .site-main{width:100%;max-width:none!important;min-height:100vh;padding:32px 24px!important;display:grid;align-items:center}
.reader-login-reference-v31{width:min(1180px,100%);margin:0 auto}
.reader-auth-shell-v27{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(400px,.82fr);min-height:610px;overflow:hidden;border:1px solid #E4E6EC;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(40, 46, 55, .10)}
.reader-auth-story-v27{min-width:0;min-height:610px;background-color:#2F5D9E;background-image:url('../images/auth/reader-login-bg-1280.webp');background-repeat:no-repeat;background-size:cover;background-position:left center}
.reader-auth-panel-v27{display:flex;flex-direction:column;justify-content:center;padding:44px clamp(34px,4vw,52px);background:#fff}
.reader-auth-panel-logo-v31{display:block;width:64px;margin:0 auto 14px;text-decoration:none}.reader-auth-panel-logo-v31 img{display:block;width:64px;height:76px;object-fit:contain;margin:auto}
.reader-auth-heading-v27{text-align:center}.reader-auth-heading-v27 h2{margin:0;color:#2F5D9E;font-family:var(--font-ui);font-size:28px;line-height:1.2;font-weight:500}.reader-auth-heading-v27 p{margin:7px 0 0;color:#5B6376;font-size:12px;line-height:1.6}
.reader-auth-alert-v27{margin:18px 0 -2px;padding:11px 13px;border-radius:10px;font-size:12px;line-height:1.55}.reader-auth-alert-v27.is-error{border:1px solid #D9D6D0;background:#F6F5F2;color:#5B6376}.reader-auth-alert-v27.is-success{border:1px solid #2E7A4F;background:#E4E6EC;color:#2E7A4F}
.reader-auth-inline-help-v27{margin:10px 0 0;text-align:center;font-size:11px}.reader-auth-inline-help-v27 a{color:#2F5D9E;font-weight:500}
.reader-auth-form-v27{display:grid;gap:14px;margin-top:24px}.reader-auth-field-v27{display:grid;gap:6px;color:#2F5D9E;font-size:11.5px;font-weight:500}.reader-auth-field-v27>small{color:#5B6376;font-size:9.5px;font-weight:500}
.reader-auth-input-wrap-v31{position:relative;display:block}.reader-auth-field-icon-v31{position:absolute;z-index:2;left:13px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:18px;height:18px;color:#5B6376;font:700 14px/1 var(--font-ui);pointer-events:none}.reader-auth-input-wrap-v31 input{padding-left:42px!important}
.reader-auth-field-v27 input{width:100%;min-height:46px;padding:10px 13px;border:1px solid #E4E6EC;border-radius:8px;background:#fff;color:#2F5D9E;font:600 13px var(--font-ui);outline:none;transition:border-color .18s ease,box-shadow .18s ease}.reader-auth-field-v27 input::placeholder{color:#5B6376;font-weight:500}.reader-auth-field-v27 input:focus{border-color:#1F4478;box-shadow:0 0 0 3px rgba(91, 99, 118, .11)}
.reader-auth-password-wrap-v27 input{padding-right:64px!important}.reader-auth-password-wrap-v27 .juf-password-toggle{position:absolute;z-index:3;right:7px;top:50%;transform:translateY(-50%);min-width:48px;height:32px;border:0;border-radius:6px;background:#E4E6EC;color:#5B6376;font:700 10px var(--font-ui);cursor:pointer}.reader-auth-password-wrap-v27 .juf-password-toggle:hover{background:#E4E6EC;color:#1F4478}
.reader-auth-row-v27{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:-4px;min-height:18px}.reader-auth-row-v27 a{color:#2F5D9E;font-size:10.5px;font-weight:600;text-decoration:none}.reader-auth-row-v27 a:hover{text-decoration:underline}
.reader-auth-submit-v27{display:flex;align-items:center;justify-content:center;width:100%;min-height:47px;margin-top:1px;border:0;border-radius:6px;background:linear-gradient(90deg,#3346A8,#3346A8);color:#fff;font:800 13px var(--font-ui);cursor:pointer;box-shadow:0 9px 18px rgba(91, 99, 118, .17);transition:transform .18s ease,box-shadow .18s ease}.reader-auth-submit-v27:hover{transform:translateY(-1px);box-shadow:0 12px 22px rgba(91, 99, 118, .22)}
.reader-auth-divider-v31{display:flex;align-items:center;gap:12px;margin:2px 0;color:#5B6376;font-size:9.5px}.reader-auth-divider-v31::before,.reader-auth-divider-v31::after{content:"";height:1px;flex:1;background:#E4E6EC}
.reader-auth-socials-v31{display:grid;grid-template-columns:1fr 1fr;gap:9px}.reader-auth-socials-v31 button,.reader-auth-socials-v31 a{min-height:42px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid #E4E6EC;border-radius:7px;background:#fff;color:#2F5D9E;font:750 11px var(--font-ui);opacity:1;text-decoration:none}.reader-auth-socials-v31 a:hover,.reader-auth-socials-v31 a:focus-visible{border-color:#3346A8;box-shadow:0 4px 14px rgba(40, 46, 55, .08);transform:translateY(-1px)}.reader-auth-socials-v31 button:disabled{cursor:not-allowed;opacity:.58}.reader-auth-google-v31{color:#B0392B;font-weight:600}.reader-auth-facebook-v31{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#3346A8;color:#fff;font:600 13px/1 var(--font-ui-system)}
.reader-auth-legal-v27,.reader-auth-switch-v27{color:#5B6376;font-size:10px;line-height:1.65;text-align:center}.reader-auth-legal-v27{margin:0}.reader-auth-switch-v27{margin:18px 0 0;font-size:10.5px}.reader-auth-legal-v27 a,.reader-auth-switch-v27 a{color:#2F5D9E;font-weight:600;text-decoration:none}.reader-auth-legal-v27 a:hover,.reader-auth-switch-v27 a:hover{text-decoration:underline}.reader-auth-verification-v31{margin:8px 0 0;text-align:center;font-size:9.5px}.reader-auth-verification-v31 a{color:#5B6376;text-decoration:none}.reader-auth-verification-v31 a:hover{text-decoration:underline}
.reader-auth-trust-grid-v31{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;width:min(1030px,92%);margin:34px auto 0;padding:0;border:1px solid #E4E6EC;border-radius:12px;background:#fff;box-shadow:0 10px 30px rgba(40, 46, 55, .05)}.reader-auth-trust-grid-v31 li{display:flex;align-items:center;gap:12px;min-width:0;padding:18px 22px}.reader-auth-trust-grid-v31 li+li{border-left:1px solid var(--juf-light-surface)}.reader-auth-trust-grid-v31 li>span{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#E4E6EC;color:#2F5D9E;font-size:22px}.reader-auth-trust-grid-v31 strong,.reader-auth-trust-grid-v31 small{display:block}.reader-auth-trust-grid-v31 strong{color:#2F5D9E;font-size:11px}.reader-auth-trust-grid-v31 small{margin-top:3px;color:#5B6376;font-size:9.5px;line-height:1.45}
.reader-auth-privacy-v31{width:min(560px,92%);display:flex;align-items:flex-start;justify-content:center;gap:12px;margin:28px auto 0;padding:13px 18px;border:1px solid #E4E6EC;border-radius:9px;background:#E4E6EC;color:#5B6376}.reader-auth-privacy-v31>span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#E4E6EC;color:#2E7A4F;font-size:18px}.reader-auth-privacy-v31 p{margin:0;font-size:10px;line-height:1.6}.reader-auth-privacy-v31 a{color:#2F5D9E;font-weight:700;text-decoration:none}
@media(max-width:900px){.juf-reader-auth-page .site-main{padding:24px 18px 32px!important;display:block}.reader-auth-shell-v27{grid-template-columns:1fr;max-width:650px;margin:auto}.reader-auth-story-v27{min-height:340px;background-image:url('../images/auth/reader-login-bg-768.webp');background-size:cover;background-position:center}.reader-auth-panel-v27{padding:38px 34px}.reader-auth-trust-grid-v31{width:min(650px,100%);grid-template-columns:1fr 1fr}.reader-auth-trust-grid-v31 li:nth-child(3){border-left:0;border-top:1px solid var(--juf-light-surface)}.reader-auth-trust-grid-v31 li:nth-child(4){border-top:1px solid var(--juf-light-surface)}}
@media(max-width:560px){.juf-reader-auth-page .site-main{padding:12px!important}.reader-auth-shell-v27{border-radius:18px}.reader-auth-story-v27{min-height:230px;background-position:center 42%}.reader-auth-panel-v27{padding:28px 22px 30px}.reader-auth-panel-logo-v31{width:54px;margin-bottom:10px}.reader-auth-panel-logo-v31 img{width:54px;height:64px}.reader-auth-heading-v27 h2{font-size:24px}.reader-auth-socials-v31{grid-template-columns:1fr}.reader-auth-trust-grid-v31{grid-template-columns:1fr;margin-top:22px}.reader-auth-trust-grid-v31 li+li{border-left:0;border-top:1px solid var(--juf-light-surface)}.reader-auth-privacy-v31{width:100%;margin-top:20px}.reader-auth-privacy-v31 p br{display:none}}


/* =========================================================
   Phase29 homepage screenshot repair — 2026-09-13
   Keeps the approved section order and warm editorial system.
   ========================================================= */

/* Graceful hero when the staging database has no published books yet. */
.hero-cinematic-stage.hero-empty-state {
    min-height: 380px;
    height: 380px;
    padding: 48px clamp(34px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
    gap: 42px;
    align-items: center;
    overflow: hidden;
    border-color: #D9D6D0;
    background:
        radial-gradient(circle at 82% 30%, rgba(59, 66, 86, .12), transparent 26%),
        radial-gradient(circle at 67% 78%, rgba(91, 99, 118, .13), transparent 30%),
        linear-gradient(135deg, #ECEAE6 0%, #E4E6EC 100%);
}
.hero-empty-copy { position: relative; z-index: 2; max-width: 660px; }
.hero-empty-state .hero-slide-title { color: #282E37; max-width: 620px; }
.hero-empty-state .hero-slide-desc { color: #5B6376; max-width: 610px; }
.hero-empty-books {
    position: relative;
    min-height: 270px;
    display: grid;
    place-items: center;
}
.hero-empty-book {
    position: absolute;
    width: 150px;
    aspect-ratio: 2 / 3;
    display: grid;
    place-items: center;
    border: 1px solid rgba(59, 66, 86, .18);
    border-radius: 10px 13px 13px 10px;
    font-family: var(--font-brand);
    font-size: 18px;
    letter-spacing: .04em !important;
    box-shadow: 0 20px 35px rgba(59, 66, 86, .13);
}
.hero-empty-book-back { transform: translateX(-72px) rotate(-12deg); background:#D9D6D0; color:#282E37; }
.hero-empty-book-mid { transform: translateX(5px) rotate(4deg); background:#3B4256; color:#F6F5F2; }
.hero-empty-book-front { transform: translateX(78px) rotate(12deg); background:var(--juf-header-footer); color:#F6F5F2; }

/* Make the desktop search row feel intentional rather than two isolated islands. */
@media (min-width: 900px) {
    .search-pill-row { gap: 28px; }
    .search-input-box { width: min(520px, 48vw); }
    .search-tags-nav {
        margin-left: auto;
        padding: 9px 14px;
        border: 1px solid #D9D6D0;
        border-radius: 999px;
        background: rgba(255, 255, 255, .48);
    }
}

/* Four discovery cards must finish cleanly inside the desktop container. */
@media (min-width: 1080px) {
    .pastel-authors-slider-track { gap: 16px !important; }
    .pastel-card {
        flex: 0 0 calc((100% - 48px) / 4) !important;
        min-width: 0 !important;
    }
}

/* Replace the black/grey genre cards with the approved warm JUFbook palette. */
.genre-dark-box {
    background: linear-gradient(145deg, #ECEAE6, #E4E6EC) !important;
    border: 1px solid #D9D6D0 !important;
    box-shadow: 0 5px 14px rgba(59, 66, 86, .06) !important;
}
.genre-dark-box:nth-child(2n) { background: linear-gradient(145deg, var(--juf-light-surface), #E4E6EC) !important; }
.genre-dark-box:nth-child(3n) { background: linear-gradient(145deg, #ECEAE6, #E4E6EC) !important; }
.genre-dark-box:hover {
    background: #E4E6EC !important;
    border-color: #2C3243 !important;
    box-shadow: 0 10px 22px rgba(59, 66, 86, .11) !important;
}
.genre-dark-box h4 { color: #282E37 !important; }
.genre-dark-box span { color: var(--text-muted) !important; }

/* Keep keyboard focus visible, but in-brand; remove the browser-blue ring seen in the screenshot. */
.slider-ctrl-btn:focus { outline: none; }
.slider-ctrl-btn:focus-visible,
.sub-tab-item:focus-visible,
.search-tags-nav a:focus-visible {
    outline: 3px solid rgba(59, 66, 86, .22) !important;
    outline-offset: 3px !important;
}

/* Zero-content Homepage sections stay visible on a fresh/staging database. */
.grid-5-col.is-empty { display: block !important; }
.home-library-empty,
.home-section-empty {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 34px 22px;
    border: 1px dashed #D9D6D0;
    border-radius: 18px;
    background: #ECEAE6;
    text-align: center;
    color: #5B6376;
    font-family: var(--font-ui-system);
}
.home-library-empty strong,
.home-section-empty strong {
    color: #282E37;
    font-family: var(--font-heading);
    font-size: 20px;
}
.home-library-empty span,
.home-section-empty span { max-width: 620px; font-size: 13px; line-height: 1.65; }
.home-section-empty-compact { min-height: 126px; padding-block: 26px; }

/* Homepage chrome: restore the earlier light, warm editorial header/footer while
   retaining the shared header/footer markup and all navigation/actions. */
.juf-homepage .juf-header-v24 {
    background: rgba(246, 245, 242, .97);
    border-bottom-color: #D9D6D0;
    box-shadow: 0 7px 24px rgba(59, 66, 86, .07);
}
.juf-homepage .juf-nav-v24 .juf-nav-link-v24 { color: #282E37; }
.juf-homepage .juf-nav-v24 .juf-nav-link-v24:hover,
.juf-homepage .juf-nav-v24 .juf-nav-link-v24:focus-visible,
.juf-homepage .juf-nav-v24 .juf-nav-link-v24.is-active { color: var(--juf-ink-soft); background: var(--juf-light-surface); }
.juf-homepage .juf-nav-v24 .juf-premium-nav-v24 { color: var(--juf-header-footer); border-color: #D9D6D0; background: #ECEAE6; }
.juf-homepage .juf-nav-v24 .juf-premium-nav-v24:hover,
.juf-homepage .juf-nav-v24 .juf-premium-nav-v24:focus-visible,
.juf-homepage .juf-nav-v24 .juf-premium-nav-v24.is-active { color: #282E37; border-color: #3346A8; background: #E4E6EC; }
.juf-homepage .juf-header-icon-btn-v24,
.juf-homepage .juf-header-logout-v24 button { border-color: #D9D6D0; background: #ECEAE6; color: var(--juf-header-footer); }
.juf-homepage .juf-header-icon-btn-v24:hover,
.juf-homepage .juf-header-icon-btn-v24:focus-visible,
.juf-homepage .juf-header-logout-v24 button:hover,
.juf-homepage .juf-header-logout-v24 button:focus-visible { color: var(--juf-ink-soft); border-color: #3346A8; background: var(--juf-light-surface); }
.juf-homepage .juf-login-btn-v24 { background: #3346A8; color: #fff !important; box-shadow: 0 5px 14px rgba(51, 70, 168, .18); }
.juf-homepage .juf-login-btn-v24:hover,
.juf-homepage .juf-login-btn-v24:focus-visible { background: #263787; }
.juf-homepage .juf-user-chip-v24 { color: #282E37; background: #ECEAE6; border-color: #D9D6D0; }
.juf-homepage .juf-user-copy-v24 small { color: #5B6376; }
.juf-homepage .juf-user-copy-v24 strong { color: #282E37; }
.juf-homepage .juf-user-avatar-v24 { background: #E4E6EC; color: #282E37; }
.juf-homepage .juf-menu-v24 { border-color: #D9D6D0; background: #ECEAE6; }
.juf-homepage .juf-menu-v24 span { background: var(--juf-header-footer); }

.juf-homepage .juf-footer-v24 {
    margin-top: 58px;
    padding: 46px 0 18px;
    background: linear-gradient(180deg,#ECEAE6 0%,var(--juf-light-surface) 100%) !important;
    color: #5B6376;
    border-top-color: #D9D6D0;
}
.juf-homepage .juf-footer-v24::before { background: linear-gradient(90deg,transparent,#D9D6D0,transparent); }
.juf-homepage .juf-footer-top-v24 { gap: clamp(34px,6vw,76px); padding-bottom: 30px; }
.juf-homepage .juf-footer-kicker-v24,
.juf-homepage .juf-footer-column-v24 h2 { color: #282E37; }
.juf-homepage .juf-footer-tagline-v24,
.juf-homepage .juf-footer-column-v24 a,
.juf-homepage .juf-footer-socials-v24 a { color: var(--text-muted); }
.juf-homepage .juf-footer-column-v24 a:hover,
.juf-homepage .juf-footer-column-v24 a:focus-visible,
.juf-homepage .juf-footer-socials-v24 a:hover,
.juf-homepage .juf-footer-socials-v24 a:focus-visible { color: #2C3243; }
.juf-homepage .juf-footer-bottom-v24 { border-top-color: #D9D6D0; }
.juf-homepage .juf-footer-bottom-v24 p { color: #5B6376; }
@media (max-width: 767px) {
    .juf-homepage .juf-footer-v24 { padding: 30px 0 16px !important; background: linear-gradient(180deg,#ECEAE6,var(--juf-light-surface)) !important; }
    .juf-homepage .juf-footer-collapsible-v30 .juf-footer-column-v24 { border-top-color: #D9D6D0; }
    .juf-homepage .juf-footer-collapsible-v30 .juf-footer-column-v24:last-child { border-bottom-color: #D9D6D0; }
}

@media (max-width: 900px) {
    .hero-cinematic-stage.hero-empty-state {
        min-height: 500px;
        height: auto;
        grid-template-columns: 1fr;
        padding: 38px 28px 34px;
        text-align: center;
    }
    .hero-empty-copy { margin-inline: auto; }
    .hero-empty-state .hero-slide-actions { justify-content: center; }
    .hero-empty-books { min-height: 190px; }
    .hero-empty-book { width: 108px; }
    .hero-empty-book-back { transform: translateX(-48px) rotate(-11deg); }
    .hero-empty-book-mid { transform: translateX(0) rotate(3deg); }
    .hero-empty-book-front { transform: translateX(50px) rotate(11deg); }
}

@media (max-width: 640px) {
    .hero-cinematic-stage.hero-empty-state {
        min-height: 430px;
        padding: 30px 18px 26px;
        border-radius: 20px;
    }
    .hero-empty-books { display: none; }
    .search-tags-nav { gap: 8px; justify-content: space-between; overflow-x: auto; }
    .search-tags-nav a { flex: 0 0 auto; padding: 7px 9px; }
    .pastel-card { flex: 0 0 min(82vw, 292px) !important; min-width: min(82vw, 292px) !important; }
    .genre-dark-box { flex-basis: 150px !important; min-width: 150px !important; }
}


/* =========================================================
   Phase29 homepage mobile viewport repair — 2026-09-13
   Screenshot-driven fixes for 320/360/375/390/430px without
   duplicating any Homepage component or changing desktop order.
   ========================================================= */
@media (max-width: 640px) {
    .juf-homepage { overflow-x: clip; }
    .juf-homepage .container { width: 100%; padding-left: 14px !important; padding-right: 14px !important; }

    /* Keep the requested light editorial chrome on phones as well. */
    .juf-homepage .juf-header-v24 {
        background: rgba(246, 245, 242, .985) !important;
        border-bottom-color: #D9D6D0 !important;
        box-shadow: 0 5px 18px rgba(59, 66, 86, .07) !important;
    }
    .juf-homepage .juf-menu-v24 { background:#ECEAE6 !important; border-color:#D9D6D0 !important; }
    .juf-homepage .juf-menu-v24 span { background:var(--juf-header-footer) !important; }

    /* The cinematic book hero stays visible on mobile instead of becoming text-only. */
    .juf-homepage .hero-cinematic-stage {
        min-height: 350px !important;
        height: 350px !important;
        padding-bottom: 0 !important;
        border-radius: 20px;
        margin-bottom: 20px;
    }
    .juf-homepage .hero-cinematic-slider { min-height: 350px !important; height: 350px; }
    .juf-homepage .hero-slide-item {
        grid-template-columns: minmax(0,1fr) 88px !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 22px 16px 66px !important;
        text-align: left !important;
    }
    .juf-homepage .hero-slide-info { max-width: none !important; margin: 0 !important; min-width: 0; }
    .juf-homepage .hero-slide-badge { margin-bottom: 5px; font-size: 10.5px; }
    .juf-homepage .hero-slide-title { font-size: clamp(24px,7.4vw,30px) !important; line-height: 1.2; margin-bottom: 6px; }
    .juf-homepage .hero-slide-author { font-size: 12px; line-height: 1.45; margin-bottom: 7px; }
    .juf-homepage .hero-slide-desc {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        margin-bottom: 13px;
        font-size: 11.5px;
        line-height: 1.55;
    }
    .juf-homepage .hero-slide-actions { justify-content: flex-start !important; gap: 7px; }
    .juf-homepage .btn-hero-cinematic-primary,
    .juf-homepage .btn-hero-cinematic-secondary { min-height: 38px; padding: 8px 10px; font-size: 11.5px; text-align:center; }
    .juf-homepage .hero-slide-visual { display:flex !important; width:88px; min-width:88px; }
    .juf-homepage .hero-slide-visual .hero-jacket {
        width: 78px !important;
        height: 111px !important;
        min-height: 111px !important;
        padding: 8px 7px !important;
        border-left-width: 3px !important;
        border-radius: 6px !important;
    }
    .juf-homepage .hero-slide-visual .juf-jacket-title { font-size: 10px !important; }
    .juf-homepage .hero-slide-visual .juf-jacket-genre { font-size: 7px !important; }
    .juf-homepage .hero-thumb-queue { display:none !important; }
    .juf-homepage .hero-cinematic-arrows { left:16px !important; bottom:14px !important; transform:none !important; }
    .juf-homepage .hero-cinematic-arrow-btn { width:38px; height:38px; }
    .juf-homepage .hero-cinematic-stage.hero-empty-state {
        min-height: 300px !important;
        height:auto !important;
        display:block !important;
        padding:28px 20px 26px !important;
        text-align:left !important;
    }
    .juf-homepage .hero-empty-state .hero-slide-actions { justify-content:flex-start !important; }
    .juf-homepage .hero-empty-books { display:none !important; }

    /* Search stays one clean phone-width control; discovery links form an even row. */
    .juf-homepage .search-pill-row { gap:10px; margin-bottom:20px; }
    .juf-homepage .search-input-box { width:100% !important; min-height:48px; padding:6px 7px 6px 13px; }
    .juf-homepage .search-input-box input { min-width:0; margin-left:7px; font-size:12.5px; }
    .juf-homepage .search-submit-btn { min-height:38px; padding-inline:13px; }
    .juf-homepage .search-tags-nav {
        width:100%;
        display:grid;
        grid-template-columns:repeat(4,minmax(0,1fr));
        gap:6px !important;
        overflow:visible !important;
    }
    .juf-homepage .search-tags-nav a { min-width:0; padding:7px 3px !important; text-align:center; font-size:11px; white-space:nowrap; }

    /* Returning-reader gateway stays compact at 320–430px. */
    .juf-homepage .home-reading-gateway,
    .juf-homepage .home-reading-gateway.has-continue { min-height:0; margin-bottom:22px; padding:12px; gap:10px 11px; border-radius:14px; }
    .juf-homepage .home-reading-gateway-copy h2 { font-size:17px; line-height:1.28; }
    .juf-homepage .home-reading-gateway-copy p { margin-top:3px; font-size:11px; line-height:1.45; }
    .juf-homepage .home-reading-gateway-actions { gap:7px; }
    .juf-homepage .home-reading-primary,
    .juf-homepage .home-reading-secondary { min-height:36px; padding:7px 8px; font-size:11px; }

    /* Headings/controls fit on one visual row and remain tappable. */
    .juf-homepage .page-section-title { font-size:22px !important; line-height:1.3; }
    .juf-homepage .section-overline-label { font-size:11px; }
    .juf-homepage .section-title-wrap-flex { align-items:flex-end !important; gap:10px; margin-bottom:12px !important; }
    .juf-homepage .section-title-wrap-flex > :first-child { min-width:0; }
    .juf-homepage .section-head-actions { flex:0 0 auto; gap:6px; }
    .juf-homepage .section-view-all { font-size:10.5px; white-space:nowrap; }
    .juf-homepage .slider-nav-ctrl { gap:5px !important; }
    .juf-homepage .slider-ctrl-btn { width:36px !important; height:36px !important; min-width:36px !important; }
    .juf-homepage .sub-tabs-row { gap:6px; margin-bottom:13px; padding-bottom:2px; scroll-snap-type:x proximity; }
    .juf-homepage .sub-tab-item { padding:6px 10px; font-size:11.5px; scroll-snap-align:start; }

    /* One complete author-discovery card at a time: no accidental cut card. */
    .juf-homepage .pastel-authors-slider-track,
    .juf-homepage .audiobook-slider-track,
    .juf-homepage .genres-slider-track,
    .juf-homepage .authors-circle-slider-track {
        scroll-snap-type:x mandatory;
        overscroll-behavior-inline:contain;
    }
    .juf-homepage .pastel-card {
        flex:0 0 100% !important;
        min-width:100% !important;
        min-height:116px;
        padding:19px 17px;
        scroll-snap-align:start;
    }
    .juf-homepage .pastel-card h3 { font-size:18px; }
    .juf-homepage .pastel-card p { font-size:11.5px; line-height:1.55; }

    /* Audio cards use the same clean full-width snap behavior. */
    .juf-homepage .audio-pill-card {
        flex:0 0 100% !important;
        min-width:100% !important;
        padding:12px;
        gap:11px;
        scroll-snap-align:start;
    }
    .juf-homepage .audio-cover-sq { flex-basis:56px; width:56px; height:78px; }

    /* Two complete genre cards per phone screen, with the approved warm palette. */
    .juf-homepage #genres .genre-dark-box {
        flex:0 0 calc((100% - 10px)/2) !important;
        min-width:calc((100% - 10px)/2) !important;
        padding:17px 8px !important;
        border-radius:12px;
        background:linear-gradient(145deg,#ECEAE6,#E4E6EC) !important;
        border:1px solid #D9D6D0 !important;
        scroll-snap-align:start;
    }
    .juf-homepage #genres .genre-dark-box:nth-child(2n) { background:linear-gradient(145deg,var(--juf-light-surface),#E4E6EC) !important; }
    .juf-homepage #genres .genre-dark-box:nth-child(3n) { background:linear-gradient(145deg,#ECEAE6,#E4E6EC) !important; }
    .juf-homepage #genres .genre-dark-box h4 { color:#282E37 !important; font-size:13px; }
    .juf-homepage #genres .genre-dark-box span { color:var(--text-muted) !important; font-size:9.5px; line-height:1.45; }

    /* Showcase no longer becomes a large blank white slab when staging has no books. */
    .juf-homepage .books-showcase-wrapper { padding:21px 14px; margin-bottom:30px; border-radius:20px; }
    .juf-homepage .books-showcase-head { align-items:flex-start !important; gap:12px; margin-bottom:16px !important; }
    .juf-homepage .books-showcase-head > div:first-child { min-width:0; }
    .juf-homepage .books-showcase-head > div:last-child { flex:0 0 auto; padding-top:4px; font-size:10px !important; }
    .juf-homepage .grid-5-col { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:18px 11px !important; }
    .juf-homepage .grid-5-col.is-empty { display:block !important; }
    .juf-homepage .home-library-empty,
    .juf-homepage .home-section-empty { min-height:124px; padding:22px 14px; border-radius:15px; }
    .juf-homepage .home-library-empty strong,
    .juf-homepage .home-section-empty strong { display:block; font-size:17px; line-height:1.35; }
    .juf-homepage .home-library-empty span,
    .juf-homepage .home-section-empty span { display:block; font-size:11px; line-height:1.55; }
    .juf-homepage .home-section-empty-compact { min-height:112px; padding-block:20px; }
    .juf-homepage .showcase-card-item .book-under-title { font-size:12.5px; }
    .juf-homepage .showcase-card-item .book-under-author { font-size:10.5px; }

    /* Follow-author slider uses the whole viewport without side clipping. */
    .juf-homepage .authors-premium-slider-wrapper { padding:0 !important; }
    .juf-homepage .author-nav-arrow { display:none !important; }
    .juf-homepage .authors-circle-slider-track { gap:16px; padding-inline:1px; }
    .juf-homepage .author-circle-unit { flex-basis:92px; scroll-snap-align:start; }

    /* Reviews are timer-driven on phones: one visible card, no manual horizontal swipe.
       The shared review controller owns the track transform; do not override it here. */
    .juf-homepage .testimonials-slider-box { max-width:none; overflow:hidden; }
    .juf-homepage .testimonials-track {
        width:100%;
        gap:12px;
        overflow:visible;
        scroll-snap-type:none;
        overscroll-behavior-x:none;
        padding:2px 1px 8px;
        touch-action:pan-y;
    }
    .juf-homepage .testimonial-card-white {
        flex:0 0 100% !important;
        min-width:100%;
        min-height:152px;
        padding:20px 19px 18px;
        scroll-snap-align:none;
    }

    /* Homepage newsletter: explicit field + CTA stack on narrow phones.
       Keep one real form; only its responsive presentation changes. */
    .juf-homepage .newsletter-premium-wrapper {
        width:100%;
        margin:28px auto 34px;
        padding:26px 16px 18px;
        border-radius:22px;
        box-shadow:0 10px 28px rgba(40, 46, 55, .07);
        overflow:visible;
    }
    .juf-homepage .newsletter-premium-wrapper .page-section-title {
        max-width:290px;
        margin-left:auto;
        margin-right:auto;
        font-size:22px !important;
        line-height:1.35;
    }
    .juf-homepage .newsletter-premium-wrapper > p {
        max-width:300px;
        margin:8px auto 17px !important;
        font-size:12px !important;
        line-height:1.65;
    }
    .juf-homepage .newsletter-luxury-pill {
        width:100%;
        max-width:360px;
        margin:0 auto;
        display:grid;
        grid-template-columns:minmax(0,1fr);
        gap:10px;
        padding:0;
        border:0;
        border-radius:0;
        background:transparent;
        box-shadow:none;
    }
    .juf-homepage .newsletter-luxury-pill:focus-within {
        border:0;
        background:transparent;
        box-shadow:none;
    }
    .juf-homepage .pill-input-wrap {
        display:flex;
        width:100%;
        min-width:0;
        min-height:48px;
        padding:0 13px;
        border:1px solid #D9D6D0;
        border-radius:14px;
        background:#FFFFFF;
        box-shadow:0 2px 8px rgba(40, 46, 55, .035);
    }
    .juf-homepage .pill-input-wrap:focus-within {
        border-color:#2C3243;
        box-shadow:0 0 0 3px rgba(59, 66, 86, .11);
    }
    .juf-homepage .newsletter-luxury-input {
        display:block;
        width:100%;
        min-width:0;
        min-height:46px;
        padding:10px 0;
        border:0;
        background:transparent;
        color:#282E37;
        font-size:13px;
        line-height:1.4;
        opacity:1;
    }
    .juf-homepage .newsletter-luxury-input::placeholder { color:#5B6376; opacity:1; }
    .juf-homepage .newsletter-luxury-btn {
        width:100%;
        min-height:48px;
        padding:11px 18px;
        justify-content:center;
        border-radius:14px;
        font-size:13px;
    }

    /* Homepage footer remains light and much shorter on mobile. */
    .juf-homepage .juf-footer-v24 {
        margin-top:38px !important;
        padding:26px 0 14px !important;
        background:linear-gradient(180deg,#ECEAE6,var(--juf-light-surface)) !important;
        color:#5B6376 !important;
        border-top:1px solid #D9D6D0 !important;
    }
    .juf-homepage .juf-footer-logo-v24 img { width:118px; height:48px; }
    .juf-homepage .juf-footer-kicker-v24 { color:#282E37 !important; font-size:15px; }
    .juf-homepage .juf-footer-tagline-v24 { color:var(--text-muted) !important; font-size:11.5px !important; }
    .juf-homepage .juf-footer-top-v24 { gap:19px !important; padding-bottom:15px !important; }
    .juf-homepage .juf-footer-collapsible-v30 .juf-footer-column-v24 { border-top:1px solid #D9D6D0 !important; }
    .juf-homepage .juf-footer-collapsible-v30 .juf-footer-column-v24:last-child { border-bottom:1px solid #D9D6D0 !important; }
    .juf-homepage .juf-footer-column-v24 h2,
    .juf-homepage .juf-footer-toggle-v30 { color:#282E37 !important; }
    .juf-homepage .juf-footer-column-v24 a,
    .juf-homepage .juf-footer-socials-v24 a { color:var(--text-muted) !important; }
    .juf-homepage .juf-footer-bottom-v24 { padding-top:12px !important; border-top-color:#D9D6D0 !important; }
    .juf-homepage .juf-footer-bottom-v24 p { color:#5B6376 !important; font-size:9.5px; }

    /* Tighten the long Homepage rhythm without changing section order. */
    .juf-homepage .home-authors-discovery,
    .juf-homepage #audiobook,
    .juf-homepage #genres,
    .juf-homepage .home-new-releases,
    .juf-homepage #authors,
    .juf-homepage .home-testimonials { margin-bottom:30px !important; }
}

@media (max-width: 360px) {
    .juf-homepage .hero-slide-item { grid-template-columns:minmax(0,1fr) 76px !important; padding-inline:14px !important; }
    .juf-homepage .hero-slide-visual { width:76px; min-width:76px; }
    .juf-homepage .hero-slide-visual .hero-jacket { width:70px !important; height:100px !important; min-height:100px !important; }
    .juf-homepage .btn-hero-cinematic-primary,
    .juf-homepage .btn-hero-cinematic-secondary { padding-inline:8px; font-size:10.5px; }
    .juf-homepage .search-tags-nav a { font-size:10.5px; }
    .juf-homepage #genres .genre-dark-box { padding-inline:6px !important; }
}

/* ======================================================================
   Homepage visual restoration — 2026-09-13
   Keeps the existing section order/data controls, restores visible hero copy,
   premium author motion and the reader-testimonial carousel treatment.
   ====================================================================== */

/* The no-published-book hero reuses hero text classes that are normally hidden
   until a .hero-slide-item becomes active. In the fallback there is no slide,
   so explicitly reveal the copy instead of leaving a blank left column. */
.juf-homepage .hero-cinematic-stage.hero-empty-state .hero-slide-badge,
.juf-homepage .hero-cinematic-stage.hero-empty-state .hero-slide-title,
.juf-homepage .hero-cinematic-stage.hero-empty-state .hero-slide-desc,
.juf-homepage .hero-cinematic-stage.hero-empty-state .hero-slide-actions {
    opacity: 1 !important;
    transform: none !important;
}
.juf-homepage .hero-cinematic-stage.hero-empty-state {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(280px,.85fr);
    gap: 34px;
    align-items: center;
    min-height: 430px;
    height: auto;
    padding: 54px 64px;
    background:
        radial-gradient(circle at 82% 28%, rgba(91, 99, 118, .18), transparent 28%),
        linear-gradient(135deg,#F6F5F2 0%,#ECEAE6 56%,#E4E6EC 100%);
    border-color: #D9D6D0;
}
.juf-homepage .hero-empty-state .hero-empty-copy { max-width: 680px; }
.juf-homepage .hero-empty-state .hero-slide-title {
    font-size: clamp(32px,4vw,52px);
    line-height: 1.18;
    margin-bottom: 12px;
}
.juf-homepage .hero-empty-state .hero-slide-desc {
    max-width: 600px;
    font-size: 14px;
    line-height: 1.75;
}
.juf-homepage .hero-empty-state .hero-empty-books {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 255px;
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
}
.juf-homepage .hero-empty-state .hero-empty-book {
    position: absolute;
    width: 150px;
    aspect-ratio: 2 / 3;
    height: auto;
    border-radius: 12px 16px 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 22px 46px rgba(40, 46, 55, .20);
    border: 1px solid rgba(255, 255, 255, .42);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: .02em;
    transform-origin: 50% 92%;
    will-change: transform;
}
.juf-homepage .hero-empty-state .hero-empty-book-back {
    transform: translateX(-72px) rotate(-10deg);
    animation: jufHeroStackBack 7s ease-in-out infinite;
}
.juf-homepage .hero-empty-state .hero-empty-book-mid {
    transform: translateX(0) rotate(2deg);
    animation: jufHeroStackMid 7s ease-in-out infinite;
}
.juf-homepage .hero-empty-state .hero-empty-book-front {
    transform: translateX(76px) rotate(10deg);
    animation: jufHeroStackFront 7s ease-in-out infinite;
}
@keyframes jufHeroStackBack {
    0%,100% { transform: translateX(-72px) translateY(4px) rotate(-10deg); }
    33% { transform: translateX(-84px) translateY(-8px) rotate(-13deg); }
    66% { transform: translateX(-66px) translateY(1px) rotate(-8deg); }
}
@keyframes jufHeroStackMid {
    0%,100% { transform: translateX(0) translateY(0) rotate(2deg); }
    33% { transform: translateX(7px) translateY(7px) rotate(4deg); }
    66% { transform: translateX(-6px) translateY(-8px) rotate(0deg); }
}
@keyframes jufHeroStackFront {
    0%,100% { transform: translateX(76px) translateY(2px) rotate(10deg); }
    33% { transform: translateX(66px) translateY(-10px) rotate(7deg); }
    66% { transform: translateX(84px) translateY(6px) rotate(13deg); }
}

/* Author discovery: same database records, richer visual treatment and a
   single reusable auto-rail in main.js. */
.juf-homepage .home-author-premium-rail { padding-top: 10px !important; padding-bottom: 22px !important; }
.juf-homepage .home-author-discovery-card {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    padding: 24px 22px 22px !important;
    border: 1px solid rgba(59, 66, 86, .10);
    box-shadow: 0 10px 24px rgba(40, 46, 55, .05);
    text-decoration: none;
    isolation: isolate;
}
.juf-homepage .home-author-discovery-card::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: 0 !important;
}
.juf-homepage .home-author-discovery-card.is-auto-active {
    transform: translateY(-7px) scale(1.012);
    box-shadow: 0 18px 38px rgba(40, 46, 55, .11);
    border-color: rgba(59, 66, 86, .30);
}
.juf-homepage .home-author-discovery-copy { max-width: 235px; }
.juf-homepage .home-author-mini-stack {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: flex;
    align-items: center;
    padding-left: 18px;
}
.juf-homepage .home-author-mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #ECEAE6;
    border: 3px solid rgba(255, 255, 255, .92);
    box-shadow: 0 5px 14px rgba(40, 46, 55, .13);
    margin-left: -14px;
}
.juf-homepage .home-author-mini-avatar > img,
.juf-homepage .home-author-mini-avatar > .juf-author-art-avatar,
.juf-homepage .home-author-mini-avatar > svg {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    display: block;
}
.juf-homepage .home-author-card-arrow {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .68);
    color: var(--juf-header-footer);
    border: 1px solid rgba(59, 66, 86, .12);
    font-weight: 700;
    transition: transform .3s ease, background .3s ease;
}
.juf-homepage .home-author-discovery-card:hover .home-author-card-arrow,
.juf-homepage .home-author-discovery-card.is-auto-active .home-author-card-arrow {
    transform: translateX(3px);
    background: var(--juf-surface-paper);
}
.juf-homepage .authors-circle-slider-track .author-circle-unit.is-auto-active .author-circle-disc {
    transform: translateY(-5px) scale(1.06);
    border-color: #3B4256;
    box-shadow: 0 12px 26px rgba(59, 66, 86, .18);
}

/* Testimonials retain two cards on desktop, but each review receives a clear
   alternating featured state. With 3+ cards the rail also scrolls. */
.juf-homepage .testimonial-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto 16px;
}
.juf-homepage .testimonial-control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #D9D6D0;
    background: #ECEAE6;
    color: #282E37;
    cursor: pointer;
    font-size: 18px;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(40, 46, 55, .06);
    transition: .25s ease;
}
.juf-homepage .testimonial-control-btn:hover,
.juf-homepage .testimonial-control-btn:focus-visible {
    background: #2C3243;
    color: #fff;
    border-color: #2C3243;
}
.juf-homepage .testimonial-dots { display: flex; gap: 7px; align-items: center; }
.juf-homepage .testimonial-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: #E4E6EC;
    cursor: pointer;
    transition: width .3s ease, background .3s ease, transform .3s ease;
}
.juf-homepage .testimonial-dot.is-active { width: 24px; background: #3B4256; }
.juf-homepage .testimonial-card-white {
    transition: transform .65s cubic-bezier(.22,.8,.22,1), opacity .65s ease, border-color .65s ease, box-shadow .65s ease;
}
.juf-homepage .testimonial-card-white.is-review-active {
    transform: translateY(-6px) scale(1.012);
    opacity: 1;
    border-color: rgba(59, 66, 86, .30);
    box-shadow: 0 16px 36px rgba(40, 46, 55, .09);
}
.juf-homepage .testimonial-card-white.is-review-resting {
    transform: translateY(2px) scale(.985);
    opacity: .74;
}
.juf-homepage .testimonial-card-white.is-review-active .quote-mark {
    transform: scale(1.12);
}
.juf-homepage .quote-mark { transition: transform .45s ease; }

@media (max-width: 900px) {
    .juf-homepage .hero-cinematic-stage.hero-empty-state {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 38px 28px;
        gap: 8px;
    }
    .juf-homepage .hero-empty-state .hero-empty-copy { margin-inline: auto; }
    .juf-homepage .hero-empty-state .hero-slide-actions { justify-content: center; }
    .juf-homepage .hero-empty-state .hero-empty-books { min-height: 210px; }
}
@media (max-width: 640px) {
    .juf-homepage .hero-cinematic-stage.hero-empty-state {
        display: block;
        min-height: 0 !important;
        padding: 24px 18px 22px !important;
        text-align: left;
    }
    .juf-homepage .hero-empty-state .hero-slide-title { font-size: 27px !important; }
    .juf-homepage .hero-empty-state .hero-slide-desc { font-size: 12px; line-height: 1.6; margin-bottom: 16px; }
    .juf-homepage .hero-empty-state .hero-slide-actions { justify-content: flex-start; }
    .juf-homepage .hero-empty-state .hero-empty-books { display: flex !important; min-height: 122px; margin-top: 14px; transform: scale(.72); transform-origin: center top; }
    .juf-homepage .home-author-discovery-card { min-height: 148px; }
    .juf-homepage .home-author-mini-avatar { width: 42px; height: 42px; }
    .juf-homepage .testimonial-carousel-controls { margin-bottom: 12px; }
    .juf-homepage .testimonial-control-btn { width: 34px; height: 34px; }
    .juf-homepage .testimonial-card-white.is-review-resting { opacity: 1; transform: none; }
    .juf-homepage .testimonial-card-white.is-review-active { transform: translateY(-3px); }
}
@media (prefers-reduced-motion: reduce) {
    .juf-homepage .hero-empty-book,
    .juf-homepage .home-author-discovery-card,
    .juf-homepage .testimonial-card-white { animation: none !important; transition: none !important; }
}

