.nt-reader-owned-action{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:10px 0 14px}.nt-reader-owned-action .nt-reader-read-now{background:#c69a3e!important;border-color:#c69a3e!important;color:#17130d!important;font-weight:800}.nt-reader-owned-action span{font-size:12px;color:#766e61}.nt-reader-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:24px}.nt-reader-library-card{min-width:0}.nt-reader-library-card img{display:block;width:100%;height:auto;aspect-ratio:2/3;object-fit:cover;border-radius:8px;box-shadow:0 10px 30px rgba(0,0,0,.12)}.nt-reader-library-card h3{font-family:Georgia,'Times New Roman',serif;font-size:18px;line-height:1.2;margin:11px 0 3px}.nt-reader-library-card p{font-size:13px;margin:0 0 10px;color:#756d62}.nt-reader-library-card .button{border-radius:7px}.nt-reader-library-empty,.nt-reader-library-login{padding:28px;border:1px solid #e4dccb;border-radius:12px;background:#faf7ef}


.nt-reader-unified-library{display:grid;gap:28px}
.nt-reader-library-section>h2{margin:0 0 14px;font:700 24px/1.2 Georgia,serif}
.nt-reader-fixed-library .ntmr-library-grid{margin-top:0}


/* Post-purchase reading handoff */
.nt-reader-book-purchase-complete .woocommerce-order>p.woocommerce-notice,
.nt-reader-book-purchase-complete .woocommerce-order .woocommerce-order-overview,
.nt-reader-book-purchase-complete .woocommerce-order .woocommerce-order-details,
.nt-reader-book-purchase-complete .woocommerce-order .woocommerce-customer-details{display:none!important}
.nt-purchase-ready{max-width:980px;margin:24px auto 42px;padding:34px;border:1px solid #dfd2bd;border-radius:24px;background:#fffaf1;box-shadow:0 18px 50px rgba(45,34,18,.08);color:#17130d}
.nt-purchase-kicker{display:block;margin-bottom:8px;color:#a87618;font:850 11px/1.2 Inter,system-ui,sans-serif;letter-spacing:.16em}
.nt-purchase-ready h2{margin:0 0 10px;font:700 clamp(34px,5vw,54px)/1.03 Georgia,serif}
.nt-purchase-lead{max-width:720px;margin:0 0 26px;color:#6f6558;font:400 16px/1.65 Inter,system-ui,sans-serif}
.nt-purchase-books{display:grid;gap:16px}
.nt-purchase-book{display:grid;grid-template-columns:110px 1fr;gap:20px;align-items:center;padding:16px;border:1px solid #e5dac8;border-radius:17px;background:#fff}
.nt-purchase-cover{display:block}.nt-purchase-cover img,.nt-purchase-cover-placeholder{display:block;width:110px;aspect-ratio:2/3;object-fit:cover;border-radius:9px;background:#e9dfce;box-shadow:0 8px 22px rgba(0,0,0,.12)}
.nt-purchase-book h3{margin:0 0 4px;font:700 24px/1.15 Georgia,serif}.nt-purchase-book-copy>p{margin:0 0 15px;color:#746a5d;font:400 13px/1.4 Inter,system-ui,sans-serif}
.nt-purchase-ready .button.nt-purchase-read,.nt-purchase-ready .button.nt-purchase-library{display:inline-flex;align-items:center;justify-content:center;border:1px solid #17130d!important;border-radius:10px!important;background:#17130d!important;color:#fff!important;font:800 14px/1 Inter,system-ui,sans-serif!important;text-decoration:none!important;padding:13px 19px!important}
.nt-purchase-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin-top:22px}.nt-purchase-receipt{color:#6d6255;text-decoration:underline;font:700 13px/1.4 Inter,system-ui,sans-serif}
.nt-reader-book-purchase-complete .woocommerce-order{font-family:Inter,system-ui,sans-serif}

/* Library is the digital bookshelf; every owned cover/title opens the Reader. */
.nt-reader-library-cover{display:block;text-decoration:none}.nt-reader-library-card h3 a{color:inherit;text-decoration:none}.nt-reader-library-card h3 a:hover{text-decoration:underline}
.nt-reader-library-cover-placeholder{display:block;width:100%;aspect-ratio:2/3;border-radius:8px;background:#e9dfce}
.nt-library-progress{height:5px;margin:4px 0 5px;overflow:hidden;border-radius:999px;background:#e5dccd}.nt-library-progress span{display:block;height:100%;border-radius:inherit;background:#b98524}
.nt-library-progress-label{display:block;margin:0 0 9px;color:#756d62;font:700 11px/1.2 Inter,system-ui,sans-serif}
.nt-reader-library-card .button{background:#17130d!important;border-color:#17130d!important;color:#fff!important;font-weight:800!important}
@media(max-width:620px){.nt-purchase-ready{padding:24px 18px}.nt-purchase-book{grid-template-columns:82px 1fr;gap:14px}.nt-purchase-cover img,.nt-purchase-cover-placeholder{width:82px}.nt-purchase-book h3{font-size:20px}}

/* Canonical public My Library page */
.nt-reader-library-page{padding:58px 0 76px}
.nt-reader-library-shell{width:min(1180px,calc(100% - 40px));margin:0 auto}
.nt-reader-library-heading{margin:0 0 30px}
.nt-reader-library-heading>span{display:block;margin-bottom:8px;color:#a87618;font:850 11px/1.2 Inter,system-ui,sans-serif;letter-spacing:.16em}
.nt-reader-library-heading h1{margin:0 0 9px;font:700 clamp(42px,6vw,68px)/1 Georgia,serif;color:inherit}
.nt-reader-library-heading p{max-width:720px;margin:0;color:#756d62;font:400 15px/1.65 Inter,system-ui,sans-serif}
.nt-reader-library-page .nt-reader-library-section{margin-top:24px}
.nt-reader-library-page .nt-reader-library-grid{grid-template-columns:repeat(auto-fill,minmax(180px,220px));gap:26px}
@media(max-width:600px){.nt-reader-library-page{padding:38px 0 58px}.nt-reader-library-shell{width:min(100% - 28px,1180px)}.nt-reader-library-page .nt-reader-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}

/* Library reading actions — explicit styling so theme/Woo link rules cannot collapse them. */
.nt-reader-library-page .nt-reader-library-card>a.button{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:92px!important;
    min-height:40px!important;
    margin-top:3px!important;
    padding:10px 16px!important;
    border:1px solid #17130d!important;
    border-radius:10px!important;
    background:#17130d!important;
    color:#fff!important;
    font:800 13px/1 Inter,system-ui,sans-serif!important;
    text-decoration:none!important;
    box-shadow:none!important;
    appearance:none!important;
}
.nt-reader-library-page .nt-reader-library-card>a.button:hover,
.nt-reader-library-page .nt-reader-library-card>a.button:focus{
    background:#b98524!important;
    border-color:#b98524!important;
    color:#17130d!important;
    text-decoration:none!important;
}
.nt-reader-library-page .nt-reader-library-card>a.button:focus-visible{
    outline:3px solid rgba(185,133,36,.28)!important;
    outline-offset:2px!important;
}

/* Dark-mode library reading actions: invert the primary CTA for contrast. */
html.nt-theme-dark .nt-reader-library-page .nt-reader-library-card>a.button{
    background:#f5f0e8!important;
    border-color:#f5f0e8!important;
    color:#17130d!important;
}
html.nt-theme-dark .nt-reader-library-page .nt-reader-library-card>a.button:hover,
html.nt-theme-dark .nt-reader-library-page .nt-reader-library-card>a.button:focus{
    background:#b98524!important;
    border-color:#b98524!important;
    color:#17130d!important;
}
