/* Visitor-selected theme. Images and book covers retain their original colors. */
:root{color-scheme:light}html[data-theme="dark"]{color-scheme:dark;--ed-ink:#e4edf8;--ed-muted:#a4b5c9;--ed-blue:#85baff;--ed-line:#34455a;--ed-paper:#101b2b}
.phd-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;order:3;min-width:44px;height:44px;padding:0 11px;border:1px solid #52657e;border-radius:7px;background:#ffffff08;color:#e6f0ff;font:600 11px/1 Arial,sans-serif;cursor:pointer}
.phd-theme-toggle:hover{background:#ffffff18}.phd-theme-symbol{font:23px/1 Arial,sans-serif}.phd-theme-toggle:focus-visible{outline:3px solid #8ebdff;outline-offset:3px}
.phd-nav-frame>.phd-nav-logo{order:0}.phd-nav-frame>.phd-navigation{order:2}
@media(min-width:1051px) and (max-width:1280px){.phd-theme-caption{display:none}.phd-nav-frame{gap:12px}.phd-nav-logo{flex-basis:175px}.phd-navigation{gap:12px}.phd-navigation>a,.phd-nav-group>summary{font-size:11px}.phd-nav-account{gap:9px;padding-left:12px}}
@media(max-width:1050px){.phd-nav-frame>.phd-nav-logo{margin-right:auto}.phd-theme-toggle{order:1;margin-right:8px;padding:0;width:40px;min-width:40px}.phd-theme-caption{display:none}.phd-menu-toggle{order:2}.phd-nav-frame>.phd-navigation{order:3}.phd-nav-logo{flex-basis:200px}}
@media(max-width:390px){.phd-nav-logo{flex-basis:170px}.phd-menu-toggle{padding:10px}.phd-menu-label{display:none}}
@media(max-width:340px){.phd-nav-logo{flex-basis:165px}}
html[data-theme="dark"] body,html[data-theme="dark"] body.layout-v3,html[data-theme="dark"] #wrap{background:#101b2b!important;color:#d5e2f2}
html[data-theme="dark"] body :is(h1,h2,h3,h4,h5,h6){color:#e4edf8}
html[data-theme="dark"] :is(.ed-hero,.events-banner,.library-banner,.page-banner){background:#17263b;border-color:#33465f;color:#e4edf8}
html[data-theme="dark"] .blue-hero{background:radial-gradient(ellipse at 80% 35%,#294872 0,transparent 48%),linear-gradient(115deg,#101d30,#192e49);border-color:#33465f;color:#e4edf8}
html[data-theme="dark"] :is(.blue-hero h1,.ed-hero h1,.phd-story h2,.phd-shelf-heading h2,.hr-section h2,.hr-section h3,.hp-event-body h3){color:#e4edf8!important}
html[data-theme="dark"] :is(.blue-hero h1 em,.ed-hero h1 em,.phd-story h2 em,.hp-events h2 em,.hp-social h2 em){color:#8abbff}
html[data-theme="dark"] :is(.ed-lead,.ed-muted,.ed-small,.ed-crumb,.blue-hero-description,.blue-hero-note,.blue-hero-note strong,.phd-story p,.phd-story .phd-story-lead,.hr-section .hr-intro,.hr-person-copy p,.hr-quote blockquote,.hr-quote figcaption,.hp-event-location,.hp-event-details p){color:#a7bad0!important}
html[data-theme="dark"] :is(.ed-eyebrow,.blue-eyebrow,.blue-showcase-caption,.phd-overline,.hr-section .hr-eyebrow,.hr-section .hr-role,.hp-event-type,.library-kicker,.phd-art-caption,.phd-art-bottom){color:#95b9e2!important}
html[data-theme="dark"] :is(.ed-panel,.ed-service,.ed-account-panel,.library-card,.library-detail,.library-sidebar>div,.journal-card,.journal-article,.journal-comments,.journal-comment,.event-card,.event-detail,.events-sidebar>section,.ed-event,.hr-post,.hr-quote,.hp-event-card,.hp-social-card,.spin-dialog){background:#17263a;border-color:#34465e;color:#d8e5f5}
html[data-theme="dark"] :is(.ed-order-summary,.ed-featured,.ed-account-art,.ed-service:nth-child(2n),.library-description,.journal-question,.event-detail-meta,.event-empty,.ed-empty,.ed-note,.ed-faq details,.book-detail-bibliography){background:#1d3048;border-color:#3d5570;color:#b8cce4}
html[data-theme="dark"] :is(.ed-hero,.ed-account-art,.ed-service,.ed-featured-copy,.ed-event-body,.ed-contact-layout,.ed-process,.ed-account-panel) h2{color:#e4edf8}
html[data-theme="dark"] :is(.ed-account-art,.ed-service,.ed-featured-copy,.ed-event-body,.ed-event-intro,.ed-account-panel,.ed-process) p{color:#aec2d9}
html[data-theme="dark"] :is(.ed-hero-books,.blue-book,.blue-orbit){filter:none}
html[data-theme="dark"] :is(.library-cover,.home-book-shelf .library-cover,.library-detail-cover,.ed-post-image,.ed-featured-visual,.ed-event-art,.event-cover,.journal-cover,.journal-hero,.phd-story-art,.hr-portrait,.hr-post-image,.hp-event-photo){background:#24374c}
html[data-theme="dark"] :is(.hr-team,.hr-blog,.hr-readers,.hp-events,.hp-social,.hp-newsletter,.home-book-shelf,.library-collection,.library-detail-page,.journal-page){background:#101b2b;border-color:#34465e;color:#d8e5f5}
html[data-theme="dark"] :is(.phd-story,.home-book-shelf,.hr-section){color:#d8e5f5;--hr-ink:#e4edf8;--hr-muted:#a8bbd1;--hr-line:#34465e}
html[data-theme="dark"] :is(.hr-avatar,.hr-pill,.hp-event-date,.blue-showcase-label){background:#263e5a;border-color:#466286;color:#dcecff}
html[data-theme="dark"] :is(.hp-event-date strong,.blue-showcase-label strong,.hp-social-card strong,.hr-section .hr-quote blockquote){color:#e4edf8}
html[data-theme="dark"] :is(.blue-showcase-label>span,.hp-social-card small,.hr-post-author,.hr-post-copy>p,.hp-event-details summary,.hp-event-location,.hp-event-details p){color:#a8bed7}
html[data-theme="dark"] :is(.ed-chips button,.library-collection-filters a,.home-book-shelf .library-collection-filters a,.event-filters a,.ed-pagination a,.library-pagination a,.blue-search){background:#172a41;border-color:#405875;color:#c4dcf8}
html[data-theme="dark"] :is(.ed-chips button[aria-pressed=true],.ed-pagination a[aria-current=page],.event-filters a[aria-current=true]){background:#366caf;color:#fff;border-color:#7bace8}
html[data-theme="dark"] :is(.ed-field label,.ed-field,.ed-check,.events-search label,.blue-search label){color:#afc9e6}
html[data-theme="dark"] body :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select,.library-native-select){background:#122238!important;color:#e0edfc!important;border-color:#415a78!important;box-shadow:none}
html[data-theme="dark"] body :is(input,textarea)::placeholder{color:#91a7c2}
html[data-theme="dark"] :is(.ed-button,.blue-primary,.blue-search button,.library-button,.home-book-shelf .library-button,.event-button,.events-search button,.journal-button){background:#2a69b0;color:#fff!important;border-color:#548ad0}
html[data-theme="dark"] :is(.ed-button:hover,.blue-primary:hover,.library-button:hover,.event-button:hover,.journal-button:hover){background:#337bcc;color:#fff!important}
html[data-theme="dark"] :is(.ed-secondary,.library-secondary){background:#1c344f;color:#bfddff!important;border-color:#56779b}
html[data-theme="dark"] :is(.ed-text-link,.blue-story-link,.phd-story-link,.phd-shelf-heading>a,.hr-link,.hp-event-contact,.ed-contact-method,.ed-account-shortcuts a,.journal-read,.journal-back,.events-back,.events-layout a,.library-sidebar a,.library-card-actions>a:not(.library-button),.library-description>a){color:#a0caff!important}
html[data-theme="dark"] :is(.library-card h3 a,.home-book-shelf .library-card h3 a,.library-detail-info h2,.journal-card h2 a,.journal-article h1,.event-card h2 a,.events-layout h1,.events-layout h2,.events-layout h3){color:#e1edfc!important}
html[data-theme="dark"] :is(.library-card-content>p,.home-book-shelf .library-card-content>p,.library-author,.library-note,.library-sidebar p,.library-description p,.journal-card-content>p,.journal-prose p,.journal-intro,.journal-byline,.events-layout p,.product-name small){color:#a4bad4}
html[data-theme="dark"] .library-card .book-card-synopsis{color:#aec2d9!important}
html[data-theme="dark"] :is(.library-card-price strong,.home-book-shelf .library-card-price strong,.library-detail-price,.library-stock,.ed-summary-total strong){color:#9bc8ff}
html[data-theme="dark"] :is(.library-card-price span,.library-card .book-availability,.physical-book-mark,.home-book-shelf .physical-book-mark,.event-state,.event-note){color:#a9bfd8}
html[data-theme="dark"] :is(.library-card .book-card-facts,.library-card .book-facts>div,.library-detail .book-facts>div,.shop_table td,.ed-cart-table,.ed-contact-method,.ed-account-shortcuts a,.ed-steps,.ed-post,.ed-checkout-item,.ed-faq details,.hp-event-details,.hp-event-contact){border-color:#344c68}
html[data-theme="dark"] :is(.library-card .book-card-facts summary,.library-card .book-facts dd,.library-detail .book-facts dd,.library-detail .book-detail-bibliography h3){color:#d2e6ff}
html[data-theme="dark"] :is(.library-card .book-facts dt,.library-detail .book-facts dt,.library-detail .book-detail-synopsis){color:#a1b8d2}
html[data-theme="dark"] :is(.library-card .book-facts-note,.library-detail .book-facts-note){color:#91a7c1!important}
html[data-theme="dark"] .library-detail .book-detail-bibliography{background:#1a2c43;border-color:#3b5573}
html[data-theme="dark"] :is(.ed-contact-method strong,.ed-account-shortcuts a,.shop_table td,.cart-empty h2){color:#dbe9fb}
html[data-theme="dark"] :is(.remove-cart-item,.ed-icon,.ed-event-status){background:#243d59;color:#c0daf9;border-color:#496583}
html[data-theme="dark"] :is(.phd-nav-dropdown,.phd-nav-account .phd-nav-dropdown){background:#1c304a;border-color:#435d7c}
html[data-theme="dark"] .phd-nav-dropdown a{color:#d0e5ff}html[data-theme="dark"] .phd-nav-dropdown a:hover{background:#2b486b;color:#fff}html[data-theme="dark"] .phd-nav-dropdown p{color:#9cb4d2}
html[data-theme="dark"] :is(.phd-footer,#header.phd-header){background:#0c1828!important;border-color:#2b405a}
html[data-theme="dark"] :is(.ed-callout,.hp-newsletter-panel,.spin-promo.spin-promo-modern){background:#132942;border-color:#3c5572}
html[data-theme="dark"] :is(.hp-subscribe-row,.hp-letter-art,.spin-preview-tag){background:#253a53;border-color:#516b86;color:#d0e2f7}
html[data-theme="dark"] .hp-subscribe-row input:disabled{-webkit-text-fill-color:#c0d3ea}html[data-theme="dark"] .hp-subscribe-row button{background:#385776;color:#e1edfa}
html[data-theme="dark"] .ed-toast{background:#d3e7ff;color:#102a45}
/* Legacy templates that remain reachable from older links. */
html[data-theme="dark"] :is(.bg-light,.bg-white,.book-list-icon,.post-detail,.post-center-content,.blog-page,.news-events-list-view,.booksmedia-fullwidth,.books-list,.books-gird,.services-page,.contact-page){background-color:#17263a!important;color:#d3e3f6}
html[data-theme="dark"] :is(.breadcrumb,.entry-title,.post-title,.section-title,.filter-result,.library-empty){color:#cadff8}
html[data-theme="dark"] :is(.journal-discussion,.journal-related,.journal-comment-form,.journal-discussion form,.journal-comment){background:#17263a;color:#c3d9f3;border-color:#3b526f}
html[data-theme="dark"] :is(.journal-prose h2,.journal-discussion h2,.journal-related h2,.library-related-books>h2,.library-description h2){color:#e1edfc}
/* Contrast refinements for legacy detail-page typography and small controls. */
#header .phd-theme-toggle .phd-theme-symbol,#header .phd-theme-toggle .phd-theme-caption{color:#e6f0ff!important}
html[data-theme="dark"] :is(.library-banner p,.library-banner a,.library-mini small,.library-sidebar small,.phd-story-more summary,.hr-more>summary,.hr-more>summary span,.hp-event-date span,.hp-letter-seal,.hp-letter-caption){color:#acc9ec!important}
html[data-theme="dark"] .library-sidebar h2{color:#e2edfc!important}
html[data-theme="dark"] :is(.journal-kicker,.journal-hero figcaption,.journal-question>span,.journal-question a,.journal-note,.journal-reply-to,.journal-comment small,.journal-comment time,.journal-reply-button,.events-back){color:#b3d3f9!important}
html[data-theme="dark"] :is(.journal-reply-button,.journal-socials a){background:#213a55;border-color:#55728e;color:#d1e6ff!important}
html[data-theme="dark"] :is(.ed-steps strong,.ed-steps a,.event-books small,.event-recent small,.journal-comment-header small){color:#b3d3f9!important}
html[data-theme="dark"] .journal-comment-meta span{color:#b3d3f9!important}

/* Paper mode: same theme system and existing variables; no changes to Light/Dark. */
html[data-theme="paper"]{color-scheme:light;--ed-ink:#2c2925;--ed-muted:#6a6258;--ed-blue:#385549;--ed-line:#d8c9b5;--ed-paper:#f4ebdd}
html[data-theme="paper"] body,html[data-theme="paper"] body.layout-v3,html[data-theme="paper"] #wrap{background:#f4ebdd!important;color:#2c2925}
html[data-theme="paper"] :is(.phd-story,.home-book-shelf,.hr-section){--hr-ink:#2c2925;--hr-muted:#6a6258;--hr-line:#d8c9b5;color:#2c2925}
html[data-theme="paper"] .article-page .journal{--ink:#2c2925;--muted:#6a6258;--accent:#385549;background:transparent}
html[data-theme="paper"] :is(.ed-hero,.events-banner,.library-banner,.page-banner,.blue-hero){background:#efe3d1;border-color:#d8c9b5;color:#2c2925}
html[data-theme="paper"] :is(.ed-hero h1,.blue-hero h1,.phd-story h2,.phd-shelf-heading h2,.hr-section h2,.hr-section h3,.homebook-heading h2,.hp-event-body h3){color:#2c2925!important}
html[data-theme="paper"] :is(.ed-hero h1 em,.blue-hero h1 em,.phd-story h2 em,.hp-events h2 em,.hp-social h2 em){color:#385549}
html[data-theme="paper"] :is(.ed-lead,.ed-muted,.ed-small,.ed-crumb,.blue-hero-description,.blue-hero-note,.blue-hero-note strong,.phd-story p,.hr-section .hr-intro,.hr-person-copy p,.hr-quote blockquote,.hr-quote figcaption,.hp-event-location,.hp-event-details p){color:#6a6258!important}
html[data-theme="paper"] :is(.ed-eyebrow,.blue-eyebrow,.blue-showcase-caption,.phd-overline,.hr-section .hr-eyebrow,.hr-section .hr-role,.hp-event-type,.library-kicker,.homebook-eyebrow){color:#796344!important}
html[data-theme="paper"] :is(.ed-panel,.ed-service,.ed-account-panel,.library-card,.library-detail,.library-sidebar>div,.journal-card,.journal-article,.journal-comments,.journal-comment,.event-card,.event-detail,.events-sidebar>section,.ed-event,.hr-post,.hr-quote,.hp-event-card,.hp-social-card,.spin-dialog,.wishlist-book,.ed-post,.flipbook-modal,.phd-mini-cart,.cart-mini-preview){background:#faf5ea;border-color:#d8c9b5;color:#2c2925}
html[data-theme="paper"] :is(.library-card,.wishlist-book,.journal-card,.hp-event-card){box-shadow:0 5px 18px #715a3610}
html[data-theme="paper"] :is(.ed-order-summary,.ed-featured,.ed-account-art,.ed-service:nth-child(2n),.library-description,.journal-question,.event-detail-meta,.event-empty,.ed-empty,.ed-note,.ed-faq details,.book-detail-bibliography,.article-page .journal-question){background:#efe3d1;border-color:#d8c9b5;color:#2c2925}
html[data-theme="paper"] :is(.library-cover,.home-book-shelf .library-cover,.library-detail-cover,.ed-post-image,.ed-featured-visual,.ed-event-art,.event-cover,.journal-cover,.journal-hero,.phd-story-art,.hr-portrait,.hr-post-image,.hp-event-photo,.article-page .journal-hero,.article-page .journal-cover){background:#efe3d1}
html[data-theme="paper"] :is(.hr-team,.hr-blog,.hr-readers,.hp-events,.hp-social,.hp-newsletter,.home-book-shelf,.library-collection,.library-detail-page,.journal-page,.article-page,.homebook-section){background:#f4ebdd;border-color:#d8c9b5;color:#2c2925}
html[data-theme="paper"] :is(.ed-chips button,.library-collection-filters a,.home-book-shelf .library-collection-filters a,.event-filters a,.ed-pagination a,.library-pagination a,.blue-search,.hr-avatar,.hr-pill,.hp-event-date,.blue-showcase-label){background:#faf5ea;border-color:#d8c9b5;color:#385549}
html[data-theme="paper"] :is(.ed-chips button[aria-pressed=true],.ed-pagination a[aria-current=page],.event-filters a[aria-current=true]){background:#385549;border-color:#385549;color:#faf5ea}
html[data-theme="paper"] :is(.ed-field,.ed-check,.events-search label,.blue-search label){color:#6a6258}
html[data-theme="paper"] body :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]),textarea,select){background:#faf5ea!important;color:#2c2925!important;border-color:#d8c9b5!important}
html[data-theme="paper"] body :is(input,textarea)::placeholder{color:#6a6258}
html[data-theme="paper"] :is(.ed-button,.blue-primary,.blue-search button,.library-button,.home-book-shelf .library-button,.event-button,.events-search button,.journal-button){background:#385549;color:#faf5ea!important;border-color:#385549}
html[data-theme="paper"] :is(.ed-button:hover,.blue-primary:hover,.library-button:hover,.event-button:hover,.journal-button:hover){background:#294237}
html[data-theme="paper"] :is(.ed-secondary,.library-secondary,.homebook-controls button,.flipbook-control,.cart-mini-link,.wishlist-toggle,.book-cover-gallery .book-gallery-option){background:#efe3d1;border-color:#d8c9b5;color:#385549!important}
html[data-theme="paper"] :is(.ed-text-link,.blue-story-link,.phd-story-link,.phd-shelf-heading>a,.hr-link,.hp-event-contact,.ed-contact-method,.ed-account-shortcuts a,.journal-read,.journal-back,.events-back,.library-sidebar a,.library-card-actions>a:not(.library-button),.library-description>a,.homebook-link,.book-read-more){color:#385549!important}
html[data-theme="paper"] :is(.library-card h3 a,.home-book-shelf .library-card h3 a,.library-detail-info h2,.journal-card h2 a,.journal-article h1,.event-card h2 a,.library-description h2,.library-related-books>h2,.library-sidebar h2,.ed-account-panel h2,.ed-account-art h2,.wishlist-book h2,.flipbook-title,.flipbook-indicator){color:#2c2925!important}
html[data-theme="paper"] :is(.library-card-content>p,.home-book-shelf .library-card-content>p,.library-author,.library-note,.library-sidebar p,.library-description p,.journal-card-content>p,.journal-prose p,.journal-intro,.journal-byline,.homebook-description,.homebook-count,.homebook-hint,.homebook-status,.flipbook-author,.flipbook-note,.wishlist-book p,.ed-account-art p,.ed-account-panel p,.cart-mini-price){color:#6a6258}
html[data-theme="paper"] .library-card .book-card-synopsis{color:#6a6258!important}
html[data-theme="paper"] :is(.library-card-price strong,.home-book-shelf .library-card-price strong,.library-detail-price,.library-stock,.ed-summary-total strong){color:#385549}
html[data-theme="paper"] :is(.library-card-price span,.library-card .book-availability,.physical-book-mark,.home-book-shelf .physical-book-mark,.book-facts dt,.book-facts-note,.book-detail-synopsis){color:#6a6258}
html[data-theme="paper"] :is(.book-card-facts summary,.book-facts dd,.book-detail-bibliography h3,.ed-contact-method strong,.shop_table td,.cart-empty h2){color:#2c2925}
html[data-theme="paper"] :is(.book-card-facts,.book-facts>div,.shop_table td,.ed-cart-table,.ed-contact-method,.ed-account-shortcuts a,.ed-steps,.ed-post,.ed-checkout-item,.hp-event-details,.hp-event-contact,.flipbook-header,.phd-mini-cart-row,.phd-mini-cart-heading,.article-breadcrumb){border-color:#d8c9b5}
html[data-theme="paper"] .homebook-viewer{background:radial-gradient(ellipse at 50% 35%,#faf5ea,#efe3d1);border-color:#d8c9b5}
html[data-theme="paper"] :is(.journal-discussion,.journal-related,.journal-comment-form,.journal-discussion form){background:#faf5ea;color:#2c2925;border-color:#d8c9b5}
html[data-theme="paper"] :is(.bg-light,.bg-white,.book-list-icon,.post-detail,.post-center-content,.blog-page,.news-events-list-view,.booksmedia-fullwidth,.books-list,.books-gird,.services-page,.contact-page){background-color:#faf5ea!important;color:#2c2925}
html[data-theme="paper"] :is(.breadcrumb,.entry-title,.post-title,.section-title,.filter-result,.library-empty){color:#2c2925}
html[data-theme="paper"] .wishlist-toggle[aria-pressed=true]{background:#e5dbc7;color:#385549}
html[data-theme="paper"] :is(.phd-mini-cart-copy,.phd-mini-cart-name,.phd-mini-cart-copy p,.phd-mini-cart-copy strong,.phd-mini-cart-total){color:#2c2925!important}
html[data-theme="paper"] #header .phd-effects-control select{background:transparent!important;color:#e6f0ff!important;border-color:#52657e!important}
html[data-theme="paper"] #header .phd-effects-control option{background:#172f4a;color:#e6f0ff}
/* No filters on covers or photos; wooden shelves and the dark header retain their colors. */

html[data-theme="paper"] .discover-books{--gold:#796344;--discover-title:#2c2925;--discover-text:#6a6258;--discover-muted:#6a6258;--discover-line:#d8c9b5;--discover-button:#385549;--discover-button-text:#faf5ea;background:radial-gradient(ellipse at 50% 24%,#faf5ea,#f4ebdd 55%,#efe3d1);color:var(--discover-title)}
html[data-theme="paper"] .discover-books .discover-shelf{background:linear-gradient(#c6af8e,#a58a66 23%,#806648 28%,#967b58);border-color:#d8c9b5;box-shadow:0 16px 22px #715a3626}
html[data-theme="paper"] .discover-books .discover-shelf:before{background:linear-gradient(#d8c9b580,#c6b18f)}
html[data-theme="paper"] .discover-books .discover-cover{box-shadow:10px 12px 24px #715a3635}
html[data-theme="paper"] .discover-books .discover-cover[aria-pressed=true]{box-shadow:0 0 38px #c4a77f2b,12px 18px 28px #59483155}
html[data-theme="paper"] .discover-books .discover-thumb[aria-pressed=true]{background:#a58a6620}
