
* {
box-sizing: border-box;
}
html {
font-size: 16px;
}
body {
margin: 0;
background: #fff;
color: #202124;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Helvetica,
Arial,
sans-serif;
}




a {
color: inherit;
}

.account-btn {
color: #202124;
background: #fff;
}

#teacher-btn {
    margin-left: 10px;
}

#sign-in-btn{

    margin-left: 2px;
}

#menu-btn {
    margin-left: 2x;
}

body.inverted .account-btn {
color: #fff;
background: #000;
}

.account-btn:hover {
color: ;
}

body.inverted .account-btn:hover {
color: #fff;
}
.sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-form label {
    white-space: nowrap;
    font-size: 18px;
    font-weight: 600;
    color: #202124;
}

.sort-form select {
    appearance: none;
    -webkit-appearance: none;

    border: none;
    outline: none;

    background-color: transparent;

    color: #30343b;

    font-family: inherit;
    font-size: 18px;
    font-weight: 400;

    padding: 0 18px 0 0;
    width: auto;

    cursor: pointer;

    background-image:
        linear-gradient(45deg, transparent 50%, #30343b 50%),
        linear-gradient(135deg, #30343b 50%, transparent 50%);

    background-position:
        calc(100% - 8px) 50%,
        calc(100% - 3px) 50%;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;
}

.sort-form .invert-button {
    flex: 0 0 38px;
}

.facet-group {
margin-bottom: 30px;
}

.facet-group h3 {
margin: 0 0 12px;
font-size: 14px;
font-weight: 600;
color: grey;
}

.facet-option,
.facet-current {
display: flex;
align-items: center;
justify-content: space-between;

width: 100%;
padding: 7px 0;

font-size: 13px;

}
.facet-option {
color: grey;
text-decoration: none;
}

.facet-option:hover {
color: #1a4f8b;
text-decoration: underline;
}

.facet-option span:last-child,
.facet-current span {
color: #8a9098;
font-size: 12px;
}

.facet-current {
color: #30343b;
}

.facet-current strong {
font-weight: 600;
}

.book-page {
position: relative;
padding: 35px 0 80px;
}

.book-top-bar {
display: flex;
align-items: center;
gap: 10px;

margin-bottom: 30px;

}
/* Back + bookmark buttons */
.book-top-bar .back-link,
.book-top-bar .save-book-button {
display: inline-flex;
align-items: center;
justify-content: center;

height: 36px;

padding: 8px 12px;

border: 1px solid #e1e4e8;
border-radius: 5px;

background: #fafafa;

color: lightgrey;

font-size: 20px;
text-decoration: none;

cursor: pointer;

}
/* Back button */
.book-top-bar .back-link {
gap: 4px;
}

/* Bookmark button */
.book-top-bar .save-book-button {
width: 36px;
padding: 6px;
}

.save-book-button img {
width: 22px;
height: 22px;
display: block;
}

.book-top-bar .back-link:hover,
.book-top-bar .save-book-button:hover {
background: #f1f3f5;
border-color: #d5d9de;
}

.book-top-bar .back-link {
margin-bottom: 0;
line-height: 1;
}

body.inverted .book-top-bar .back-link,
body.inverted .book-top-bar .save-book-button {
background: #111;
border-color: #333;
color: #fff;
}

body.inverted .book-top-bar .back-link:hover,
body.inverted .book-top-bar .save-book-button:hover {
background: #222;
border-color: #444;
}

.page-ellipsis {
display: inline-flex;
align-items: center;
line-height: 1;
}

.advanced-search-link {
margin-left: 10px;
color: #888;
font-size: 13px;
line-height: 42px;
text-decoration: none;
white-space: nowrap;
}

.advanced-search-link:hover {
color: #555;
text-decoration: none;
}

.field-links a {
display: inline-flex;
align-items: center;
gap: 5px;
}

.field-icon {

height: 25px;

flex-shrink: 0;
}

#field-icon-med {
width: 13px;
height: 13px;
}

#field-icon-sci {
width: 14px;
height: 14px;
}

.site-header {

background: #fff;
}

.top-nav {
background: #fff;
}

.top-nav-inner {
width: min(1180px, calc(100% - 40px));
min-height: 34px;
margin: 0 auto;

display: flex;
align-items: center;
justify-content: space-between;

}
.top-nav-left,
.top-nav-right {
display: flex;
align-items: center;
gap: 22px;
}

.top-nav a {
color: #59636f;
text-decoration: none;

font-size: 12px;

}
.top-nav a:hover {
color: #1a4f8b;
text-decoration: underline;
}

.header-inner {
width: min(1180px, calc(100% - 40px));
min-height: 60px;
margin: 0 auto;

margin-top:20px;

display: flex;
align-items: center;
gap: 0px;

    position: relative;


}
.brand {
flex: 0 0 auto;

color: #1f2937;
text-decoration: none;

/* font-family: Georgia, "Times New Roman", serif;
font-size: 25px;
font-weight: 700;*/
}

.header-search {
position: relative;

flex: 1 1 auto;
min-width: 0;

display: flex;
align-items: center;

margin: 0;
margin-left: 15px;

width: 100%;

gap:0px;
}

.search-input-wrapper {
position: relative;

width: 100%;
min-width: 0;
flex: 1 1 auto;

}

/* Search input */
.header-search input[type="search"] {
display: block;

width: 100%;
height: 42px;

padding: 0 52px 0 16px;

border: 1px solid #cfd3d8;
border-radius: 999px;

outline: none;

background: #fff;
color: #202124;

font-size: 15px;

appearance: none;
-webkit-appearance: none;

}

.header-search input[type="search"]:focus {
border-color: #7c8795;
box-shadow: 0 0 0 1px #7c8795;
}

/* Circular search button inside input */
.header-search .search-submit {
position: absolute;

right: 5px;
top: 50%;

transform: translateY(-50%);

width: 32px;
height: 32px;

padding: 7px;

border: none;
border-radius: 50%;

background: #30343b;

display: flex;
align-items: center;
justify-content: center;

cursor: pointer;

transition:
    background 0.15s ease,
    transform 0.15s ease;

}

.header-search .search-submit:hover {
background: #1f2329;
}

.header-search .search-submit:active {
transform: translateY(-50%) scale(0.94);
}

.header-search .search-submit img {
width: 17px;
height: 17px;

display: block;

filter: brightness(0) invert(1);

}

/* Advanced search link */
.header-search .advanced-search-link {

margin-left: 0px;

line-height: 42px;

}

/* Field navigation */

.field-nav {
width: 100%;
border-bottom: 1px solid #e5e7eb;
background: #fff;
}

.field-nav-inner {
width: min(1180px, calc(100% - 40px));
min-height: 40px;
margin: 0 auto;

display: flex;
align-items: center;
gap: 18px;

}
.field-nav-label {
flex: 0 0 auto;

color: black;
font-size: 13px;
font-weight: 600;

}
/*.field-links {
display: flex;
align-items: center;
gap: 10px;

overflow-x: auto;
white-space: nowrap;

scrollbar-width: none;

padding: 7px 3px;

}
.field-links::-webkit-scrollbar {
display: none;
}

.field-links a {
    color: #30343b;
    text-decoration: none;
    font-size: 13px;

    margin-left: 10px;
}

.field-links a:hover {
    color: #1a4f8b;

}*/

.main-content {
width: min(1180px, calc(100% - 40px));
margin: 0 auto;
}

.search-page {
padding: 42px 0 70px;
}

.results-header {
width: 70%;
margin-left: 13%;
margin-bottom: 30px;

padding-left: 0px;
box-sizing: border-box;

}
.results-header h1 {
margin: 0 0 5px;
font-size: 21px;
font-weight: 600;
}

.results-header p {
margin: 0;
color: #6b7280;
font-size: 14px;
}

.welcome {
padding: 75px 20px;
text-align: center;
}

.welcome h1 {
margin: 0 0 10px;

font-family: Georgia, "Times New Roman", serif;
font-size: 34px;

}
.welcome p {
margin: 0;
color: #6b7280;
}

.results {
width: 100%;
max-width: none;
margin: 0 auto;
}

.book-result {
padding-bottom: 27px;
margin-bottom: 27px;
border-bottom: 1px solid #eeeeee;
}

.book-result:last-child {
border-bottom: 0;
}

.book-result-link {
display: flex;
align-items: flex-start;
gap: 25px;

text-decoration: none;

}
.result-details {
order: 1;
flex: 1;
min-width: 0;
}

.result-cover {
order: 2;
flex: 0 0 110px;
width: 110px;
display: flex;
justify-content: flex-start;
}

.result-title {
margin: 0 0 4px;

color: #1a4f8b;

font-size: 19px;
line-height: 1.35;
font-weight: 600;

}
.book-result-link:hover .result-title {
text-decoration: underline;
}

.result-author {
margin-top: 6px;

margin-bottom: 7px;
color: #4b5563;
font-size: 16px;

}
.ratings {
display: flex;
align-items: center;
gap: 17px;

margin-bottom: 5px;
margin-top: 10px;

color: #4b5563;
font-size: 12px;

}
.ratings > span {
position: relative;
}

.ratings > span:not(:last-child)::after {
content: "·";
position: absolute;
right: -11px;
color: #b6bbc2;
}

.rating-label {
margin-right: 4px;
color: #7b818a;
}

.ratings strong {
color: #343941;
}

.result-description {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;

overflow: hidden;

color: #3f444b;

font-size: 14px;
line-height: 1.55;

}
.result-meta {
display: flex;
flex-wrap: wrap;
gap: 8px;

margin-top: 9px;

color: #777d85;
font-size: 12px;

}
.result-cover img {
display: block;

width: 110px;
height: auto;

object-fit: cover;
object-position: top;

background: #f3f4f6;

box-shadow: 0 2px 9px rgba(0, 0, .14);

}

/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;

    margin-top: 35px;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;
}

.page-number,
.page-current {
    width: 24px;
    height: 24px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    text-decoration: none;

    font-size: 16px;
    line-height: 1;

    transition:
        color 0.15s ease,
        background 0.15s ease,
        border-color 0.15s ease;
}

.page-number {
    color: #202124;

    background: transparent;

    border: 2px solid transparent;
}

.page-number:hover {
    color: #0b55e5;
}

.page-current {
    width: 48px;
    height: 48px;

    color: #111;

    background: #fff;

    border: 3px solid #0b55e5;

    font-size: 16px;
    font-weight: 700;
}

.page-ellipsis {
    width: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #111;

    font-size: 16px;
    line-height: 1;
}

/* =========================================================
   PAGINATION ARROW BUTTONS
   ========================================================= */

.pagination-arrow {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #c7c9cc;
    border-radius: 50%;

    background: #fff;

    text-decoration: none;

    transition:
        border-color 0.15s ease,
        background 0.15s ease;
}

.pagination-arrow:hover {
    border-color: #0b55e5;
    background: #fafcff;
}

.arrow {
    width: 13px;
    height: 13px;

    display: block;

border-top: 2px solid #0758df;
border-right: 2px solid #0758df;

    transition: border-color 0.15s ease;
}

.arrow-left {
    transform: rotate(-135deg);
    margin-left: 9px;
}

.arrow-right {
    transform: rotate(45deg);
    margin-right: 9px;
}

.pagination-arrow-disabled {
    cursor: default;
    opacity: 0.45;
}

.pagination-arrow-disabled:hover {
    border-color: #c7c9cc;
    background: #fff;
}

.no-results {
padding: 45px 0;
}

.no-results h2 {
margin: 0 0 8px;
font-size: 20px;
}

.no-results p {
margin: 0;
color: #6b7280;
}

.book-page {
padding: 35px 0 80px;
}

.back-link {
display: inline-block;

color: lightgray;
text-decoration: none;
font-size: 14px;

}
.back-link:hover {
color: #1a4f8b;
}

.book-layout {
display: grid;
grid-template-columns: 220px minmax(0, 1fr);

gap: 45px;

max-width: 900px;
margin: 0 auto;

}
.book-cover {
width: 190px;
}

.book-cover img {
display: block;

width: 190px;
max-height: 290px;

object-fit: contain;

background: #f3f4f6;

box-shadow: 0 2px 9px rgba(0, .14);

}
.book-main {
min-width: 0;
}

.book-main h1 {
margin: 0 0 8px;

font-family: Georgia, "Times New Roman", serif;
font-size: 34px;
line-height: 1.2;

}
.book-author {
margin-bottom: 22px;
color: #555e69;
font-size: 17px;
}

.book-ratings {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 35px;
}

.rating {
display: flex;
align-items: center;
gap: 8px;

padding: 8px 12px;

border: 1px solid #e1e4e8;
border-radius: 5px;

background: #fafafa;

}
.rating span {
color: #6b7280;
font-size: 12px;
}

.rating strong {
color: #252a31;
font-size: 15px;
}

.book-section {
margin-top: 35px;
padding-top: 28px;
border-top: 1px solid #e5e7eb;
}

.book-section h2 {
margin: 0 0 15px;
color: #30343b;
font-size: 18px;
font-weight: 650;
}

.book-description {
color: #3f444b;
font-size: 15px;
line-height: 1.7;
}

.book-description p {
margin: 0 0 12px;
}

.book-details {
margin: 0;
}

.book-details > div {
display: grid;
grid-template-columns: 150px minmax(0, 1fr);

padding: 10px 0;

border-bottom: 1px solid #f0f1f2;

}
.book-details dt {
color: #707780;
font-size: 13px;
font-weight: 500;
}

.book-details dd {
margin: 0;
color: #30343b;
font-size: 14px;
}

.book-text,
.book-links {
color: #3f444b;
font-size: 14px;
line-height: 1.65;
overflow-wrap: anywhere;
}

/* Color inversion */

.header-actions {
display: flex;
align-items: center;
gap: 3px;
margin-left: 0;
}

.invert-button,
.menu-button {
display: flex;
align-items: center;
justify-content: center;
padding: 0;
border: none;
background: transparent;
cursor: pointer;

}

.invert-button img{
/* width: 24px;*/
height: 22px;
display: block;

}


.menu-button img {
/* width: 24px;*/
height: 18px;
display: block;

}

.menu-button {
margin-left: 0;
}

.invert-button , .menu-button{
flex: 0 0 auto;

width: 38px;
height: 38px;
padding: 8px;

/*
border: 1px solid #cfd3d8;
border-radius: 5px;*/
background: #fff;
color: #30343b;

cursor: pointer;

display: flex;
align-items: center;
justify-content: center;

}
.invert-button:hover , .menu-button:hover {
background: #f1f3f5;
}

.invert-button img {
display: block;
/* width: 25px; */
height: 22px;
}

.invert-button img , .menu-button img, .field-icon{
filter: none;
}

body.inverted .invert-button img,
body.inverted .menu-button img , body.inverted .field-icon{
filter: invert(1);
}

body.inverted {
background: #000;
color: #fff;
}

body.inverted .site-header,
body.inverted .field-nav {
background: #000;
border-color: #333;
}

body.inverted .brand,
body.inverted .field-nav-label,
body.inverted .field-links a,
body.inverted .top-nav a,
body.inverted .back-link {
color: #fff;
}

body.inverted .field-links a {
background: #111;
border-color: #333;
color: #fff;

box-shadow: 0 2px 7px rgba(0, 0, 0, 0.45);

}
body.inverted .field-links a:hover {
background: #1c1c1c;
border-color: #555;
color: #fff;

box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);

}
body.inverted .field-links a:hover,
body.inverted .back-link:hover {
color: #fff;
}
body.inverted .header-search input[type="search"] {
background: #000;
color: #fff;
border-color: #666;
}

body.inverted .header-search input[type="search"]::placeholder {
color: #aaa;
}

body.inverted .header-search .search-submit {
background: #fff;
}

body.inverted .header-search .search-submit:hover {
background: #ddd;
}

body.inverted .header-search .search-submit img {
filter: none;
}

body.inverted .invert-button,
body.inverted .menu-button {
background: #000;
color: #fff;
border-color: #666;
}

body.inverted .invert-button:hover,
body.inverted .menu-button:hover {
background: #222;
}

body.inverted .result-title {
color: #fff;
}

body.inverted .result-author,
body.inverted .ratings,
body.inverted .result-description,
body.inverted .result-meta,
body.inverted .results-header p,
body.inverted .no-results p,
body.inverted .book-author,
body.inverted .book-description,
body.inverted .book-text,
body.inverted .book-links {
color: #ddd;
}

body.inverted .book-result {
border-color: #333;
}

body.inverted .book-section {
border-color: #333;
}

body.inverted .book-section h2,
body.inverted .book-main h1,
body.inverted .book-details dd {
color: #fff;
}

body.inverted .book-details > div {
border-color: #333;
}

body.inverted .book-details dt {
color: #aaa;
}

body.inverted .rating {
background: #111;
border-color: #333;
}

body.inverted .rating span {
color: #aaa;
}

body.inverted .rating strong {
color: #fff;
}

/* Pagination - inverted mode */

body.inverted .page-number {
color: #ddd;
}

body.inverted .page-number:hover {
color: #fff;
}

body.inverted .page-current {
background: #000;
color: #fff;
border-color: #2f6fff;
}

body.inverted .page-ellipsis {
color: #fff;
}

body.inverted .pagination-arrow {
background: #000;
border-color: #555;
}

body.inverted .pagination-arrow:hover {
background: #111;
border-color: #2f6fff;
}

body.inverted .pagination-arrow-disabled:hover {
border-color: #555;
background: #000;
}

body.inverted .arrow {
border-color: #4d7fff;
}

body.inverted .result-cover img,
body.inverted .book-cover img {
background: #111;
}

body.inverted .advanced-search-link {
color: #aaa;
}

body.inverted .advanced-search-link:hover {
color: #fff;
}

@media (max-width: 700px) {




    #teacher-btn,
#sign-in-btn, .brand {
    position: relative;
    top: 0px;
}





#menu-btn{

/* Reset fixed sizing and padding */
    width: auto;
    min-width: 0;
    padding: 0;
    margin: 0;

    justify-self:center;
}





    .menu-wrapper {
        display: inline-flex;
        width: max-content;
        justify-self: end;
    }




.top-nav-inner {
    width: calc(100% - 28px);
}

.top-nav-left,
.top-nav-right {
    gap: 14px;
}

.top-nav a {
    font-size: 11px;
}

.header-inner {
    width: calc(100% - 28px);
    padding: 14px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 0px;
}

.brand { margin-right: auto; }


.advanced-search-link{
    display: none;
}

#teacher-btn,
#sign-in-btn,
#menu-btn {
    margin: 0;
    padding:0;
    line-height: normal;
    white-space: nowrap;
}



#sign-in-btn{
    margin-left: 12px;
}


#menu-btn{
    margin-right: 10px;
    margin-left: 15px;
    
}

.header-search {
        width: 100%;
        order: 10;
        margin: 0;
        padding: 0;
        
    }



.main-content {
    width: calc(100% - 28px);
}

.search-page {
    padding-top: 28px;
}

.book-layout {
    grid-template-columns: 1fr;
    gap: 25px;
}

.book-cover,
.book-cover img {
    width: 150px;
}

.book-main h1 {
    font-size: 29px;
}

.book-details > div {
    grid-template-columns: 115px minmax(0, 1fr);
}

.pagination {
    gap: 8px;
    margin-top: 28px;
}

.page-numbers {
    gap: 6px;
}

.page-number,
.page-current {
    width: 38px;
    height: 38px;

    font-size: 16px;
}

.page-current {
    width: 58px;
    height: 58px;

    border-width: 3px;

    font-size: 20px;
}

.page-ellipsis {
    width: 18px;
    font-size: 20px;
}

.pagination-arrow {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
}

.arrow {
    width: 17px;
    height: 17px;

    border-width: 2px;
}

.arrow-left {
    margin-left: 6px;
}

.arrow-right {
    margin-right: 6px;
}

.field-nav-inner {
    width: calc(100% - 28px);
    min-height:;
    gap: 18px;
}

.field-links {
    gap: 8px;
    padding: 0;
}

.field-links a,
.field-nav-label {
    font-size: 12px;
}

.field-links a {
    padding: 0;
    min-height: 15px;
}

}
/* Advanced search */

.advanced-search-page {
padding: 42px 0 70px;
}

.advanced-search-header {
max-width: 780px;
margin: 0 auto 30px;
}

.advanced-search-header h1 {
margin: 0 0 6px;

font-family: Georgia, "Times New Roman", serif;
font-size: 30px;
line-height: 1.2;

}
.advanced-search-header p {
margin: 0;
color: #6b7280;
font-size: 14px;
}

.advanced-search-form {
max-width: 780px;
margin: 0 auto;
}

.advanced-search-section {
margin-bottom: 30px;
padding-bottom: 28px;

border-bottom: 1px solid #e5e7eb;

}
.advanced-search-section h2 {
margin: 0 0 20px;

color: #30343b;
font-size: 18px;
font-weight: 650;

}
.advanced-field {
margin-bottom: 18px;
}

.advanced-field:last-child {
margin-bottom: 0;
}

.advanced-field label {
display: block;
margin-bottom: 7px;

color: #30343b;
font-size: 13px;
font-weight: 600;

}
.advanced-field input,
.advanced-field textarea {
width: 100%;

padding: 10px 12px;

border: 1px solid #cfd3d8;
border-radius: 5px;

background: #fff;
color: #202124;

font-family: inherit;
font-size: 14px;

outline: none;

}
.advanced-field textarea {
resize: vertical;
min-height: 100px;
}

.advanced-field input:focus,
.advanced-field textarea:focus {
border-color: #7c8795;
box-shadow: 0 0 0 1px #7c8795;
}

.advanced-field small {
display: block;
margin-top: 5px;

color: #777d85;
font-size: 12px;

}
.advanced-field-range {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 18px;
}

.advanced-search-actions {
display: flex;
align-items: center;
gap: 15px;

margin-bottom: 45px;

}
.advanced-search-submit {
padding: 11px 20px;

border: 1px solid #30343b;
border-radius: 5px;

background: #30343b;
color: #fff;

font-family: inherit;
font-size: 14px;
font-weight: 600;

cursor: pointer;

}
.advanced-search-submit:hover {
background: #1f2329;
}

.advanced-search-clear {
color: #59636f;
font-size: 14px;
text-decoration: none;
}

.advanced-search-clear:hover {
color: #1a4f8b;
text-decoration: underline;
}

.advanced-results-header {
max-width: 780px;
margin: 0 auto 20px;
}

.advanced-results-header h2 {
margin: 0;
font-size: 20px;
font-weight: 600;
}

body.inverted .advanced-search-section {
border-color: #333;
}

body.inverted .advanced-search-section h2,
body.inverted .advanced-field label {
color: #fff;
}

body.inverted .advanced-field input,
body.inverted .advanced-field textarea {
background: #000;
color: #fff;
border-color: #666;
}

body.inverted .advanced-field small {
color: #aaa;
}

body.inverted .advanced-search-submit {
background: #fff;
color: #000;
border-color: #fff;
}

body.inverted .advanced-search-submit:hover {
background: #ddd;
}

body.inverted .advanced-search-clear {
color: #ddd;
}

@media (max-width: 700px) {

.advanced-search-page {
    padding-top: 28px;
}

.advanced-field-range {
    grid-template-columns: 1fr;
    gap: 0;
}

}
.search-results-layout {
display: grid;
grid-template-columns: 13% 75% 12%;
gap: 0;
align-items: start;
}

.search-facets {
margin-top: 2rem;
width: 100%;
grid-column: 1;
padding-right: 1.5rem;
}

.results-column {
grid-column: 2;
width: 100%;
min-width: 0;
}

.search-filters {
width: 100%;
min-width: 0;
overflow-wrap: anywhere;
word-break: break-word;

margin-bottom: 1rem;

}
.search-filters a {
overflow-wrap: anywhere;
word-break: break-word;

}

.facet-item.facet-hidden {
display: none;
}

.facet-options-list.facet-expanded .facet-item.facet-hidden {
display: block;
}

.facet-show-more {
margin-top: 5px;
padding: 4px 8px;

border: 1px solid #d8dce1;
border-radius: 4px;

background: #f5f6f7;
color: #6b7280;

font-family: inherit;
font-size: 11px;

cursor: pointer;

}
.facet-show-more:hover {
background: #eceef0;
color: #4b5563;
}

.facet-filter{

    padding:0px;
    display:block;
    margin-bottom:5px;
    text-decoration: none;

}

.facet-option {
    text-decoration: none;
}

.facet-option:hover {
    text-decoration: none;
}





/* ========================================
   RUBIN BOOKS — ACCOUNT PAGE
   Modern, minimal, single-column design
   ======================================== */

/* Centered page container */
.account-page {
    width: min(100% - 40px, 440px);
    margin: 0 auto;
    padding: 55px 0 75px;
    color: #202124;
}

/* Sign-in and create-account sections */
.account-page > div {
    width: 100% !important;
    margin: 0 auto !important;
    text-align: left;
}


.account-page > div:last-child {
    padding-top: 32px;
    border-top: 1px solid #e8eaed;
}

/* Headings */
.account-page h1 {
    margin: 0 0 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.6px;
}

.account-page h3 {
    margin: 26px 0 14px;
    font-size: 14px;
    font-weight: 650;
}

/* Form spacing */
.account-page form > div {
    margin-bottom: 15px;
}

.account-page form br {
    display: none;
}

/* Text inputs */
.account-page input[type="text"],
.account-page input[type="email"],
.account-page input[type="password"],
.account-page input[type="tel"] {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid #dfe3e8;
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: #202124;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.18s ease,
                box-shadow 0.18s ease;

                margin-bottom: 15px;
}

.account-page input::placeholder {
    color: #9aa1ab;
}

.account-page input[type="text"]:focus,
.account-page input[type="email"]:focus,
.account-page input[type="password"]:focus {
    border-color: #1a4f8b;
    box-shadow: 0 0 0 3px rgba(26, 79, 139, 0.09);
}

/* Subscription radio options */
.account-page input[type="radio"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: #1a4f8b;
    cursor: pointer;
}

.account-page label {
    color: #30343b;
    font-size: 13px;
    cursor: pointer;
}

/* Stripe logo */
.account-page img[alt="Stripe"] {
    width: auto;
    height: 45px !important;
    margin: 4px 0 18px !important;
    object-fit: contain;
}

/* Submit buttons */
.account-page button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 47px;
    margin-top: 22px;
    padding: 12px 18px;
    border: 1px solid #1a4f8b;
    border-radius: 7px;
    background: #1a4f8b;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease,
                transform 0.18s ease;
}

.account-page button[type="submit"]:hover {
    background: #153e6e;
}

.account-page button[type="submit"]:active {
    transform: scale(0.99);
}

.account-page button[type="submit"]:focus-visible {
    outline: 3px solid rgba(26, 79, 139, 0.25);
    outline-offset: 3px;
}

/* Error message */
.account-page p[style*="color: red"] {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #f0cccc;
    border-radius: 7px;
    background: #fff6f6;
    color: #b42318 !important;
    font-size: 13px;
    line-height: 1.5;
}

/* Dark / inverted mode */
body.inverted .account-page {
    color: #f3f4f6;
}

body.inverted .account-page h1,
body.inverted .account-page h3,
body.inverted .account-page label {
    color: #f3f4f6;
}

body.inverted .account-page > div:last-child {
    border-color: #333;
}

body.inverted .account-page input[type="text"],
body.inverted .account-page input[type="email"],
body.inverted .account-page input[type="password"] {
    background: #111;
    border-color: #444;
    color: #fff;
}

body.inverted .account-page input::placeholder {
    color: #999;
}

body.inverted .account-page button[type="submit"] {
    background: #fff;
    border-color: #fff;
    color: #111;
}

body.inverted .account-page button[type="submit"]:hover {
    background: #e5e5e5;
}

body.inverted .account-page p[style*="color: red"] {
    background: #271313;
    border-color: #663333;
    color: #ffb6b6 !important;
}

/* Mobile */
@media (max-width: 700px) {
    .account-page {
        width: calc(100% - 36px);
        max-width: 440px;
        padding: 35px 0 55px;
    }

    .account-page > div:first-child {
        padding-bottom: 30px;
    }

    .account-page > div:last-child {
        padding-top: 28px;
    }

    .account-page h1 {
        font-size: 27px;
    }
}


.account-page label {
    font-size: 16px;
}

.account-page label input[type="radio"] {
    flex-shrink: 0;
}

.account-page label {
    line-height: 1.5;
}

/* ========================================
    END - RUBIN BOOKS — ACCOUNT PAGE
   Modern, minimal, single-column design
   ======================================== */





/* ========================================
   RUBIN BOOKS — DASHBOARD
   ======================================== */

.dashboard-page {
    width: min(100% - 40px, 820px);
    margin: 0 auto;
    padding: 58px 0 75px;
    color: #202124;
}

/* Page heading */

.dashboard-header {
    margin-bottom: 32px;
}

.dashboard-eyebrow {
    margin: 0 0 9px;
    color: #7b8490;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

.dashboard-header h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

.dashboard-welcome {
    margin: 10px 0 0;
    color: #737b86;
    font-size: 14px;
    line-height: 1.6;
}

/* Main cards */

.dashboard-card {
    margin-bottom: 22px;
    padding: 28px 30px;
    border: 1px solid #e6e9ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(20, 32, 50, 0.025);
}

.dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.dashboard-section-header .dashboard-eyebrow {
    margin-bottom: 7px;
}

.dashboard-section-header h2 {
    margin: 0;
    color: #202124;
    font-size: 19px;
    font-weight: 650;
    letter-spacing: -0.35px;
}

/* Subscription status */

.subscription-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45px;
    text-align: center;
    overflow-wrap: anywhere;
}

.status-active {
    color: #216747;
    background: #edf7f1;
    border-color: #d7ecdf;
}

.status-access {
    color: #805b16;
    background: #fbf5e8;
    border-color: #efe2c5;
}

.status-inactive {
    color: #616975;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

/* Subscription details */

.dashboard-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #edf0f2;
}

.dashboard-info-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    min-height: 84px;
    padding: 17px 12px 17px 0;
}

.dashboard-info-item:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid #edf0f2;
}

.dashboard-info-item span,
.dashboard-account-row > span {
    color: #7b8490;
    font-size: 12px;
    line-height: 1.5;
}

.dashboard-info-item strong {
    color: #252a31;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Plan selection */

.dashboard-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #edf0f2;
}

.dashboard-actions form {
    width: 100%;
    margin: 0;
}

.dashboard-subscribe-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.plan-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.plan-option {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #e0e5eb;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s ease,
                background 0.18s ease;
}

.plan-option:has(input:checked) {
    border-color: #1a4f8b;
    background: #f6f9fd;
}

.plan-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
    accent-color: #1a4f8b;
    cursor: pointer;
}

.plan-option-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.plan-option-content strong {
    color: #202124;
    font-size: 17px;
    font-weight: 650;
}

.plan-option-content span {
    color: #7b8490;
    font-size: 11px;
}

/* Buttons */

.dashboard-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 42px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease,
                border-color 0.18s ease,
                color 0.18s ease;
}

.dashboard-subscribe-form .dashboard-button {
    width: 100%;
}

.button-primary {
    border-color: #1a4f8b;
    background: #1a4f8b;
    color: #fff;
}

.button-primary:hover {
    border-color: #153e6e;
    background: #153e6e;
}

.button-secondary {
    border-color: #dfe3e8;
    background: #fff;
    color: #30343b;
}

.button-secondary:hover {
    border-color: #b8c3d0;
    background: #f7f9fb;
}

.button-danger {
    border-color: #eadada;
    background: #fff;
    color: #a33d3d;
}

.button-danger:hover {
    border-color: #dcbaba;
    background: #fff7f7;
}

.button-disabled {
    border-color: #e5e7eb;
    background: #f5f6f7;
    color: #999;
    cursor: not-allowed;
}

.dashboard-button:focus-visible,
.dashboard-signout:focus-visible,
.plan-option:has(input:focus-visible) {
    outline: 3px solid rgba(26, 79, 139, 0.2);
    outline-offset: 3px;
}

/* Billing notices */

.dashboard-notice {
    width: 100%;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid #efe2c5;
    border-radius: 7px;
    background: #fbf7ed;
    color: #76591e;
    font-size: 12px;
    line-height: 1.7;
}

/* Account details */

.dashboard-account-list {
    border-top: 1px solid #edf0f2;
}

.dashboard-account-row {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 18px;
    padding: 17px 0;
    border-bottom: 1px solid #edf0f2;
}

.dashboard-account-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dashboard-account-row strong {
    min-width: 0;
    color: #30343b;
    font-size: 13px;
    font-weight: 550;
    line-height: 1.6;
    overflow-wrap: anywhere;
    text-align: right;
}

.dashboard-account-row .dashboard-technical-value {
    color: #6b7280;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    font-weight: 400;
}

/* Footer */

.dashboard-footer {
    display: flex;
    justify-content: flex-end;
    padding: 8px 2px 0;
}

.dashboard-signout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #737b86;
    font-size: 12px;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.18s ease;
}

.dashboard-signout:hover {
    color: #1a4f8b;
}

.dashboard-signout span {
    font-size: 16px;
}

/* Dark / inverted mode */

body.inverted .dashboard-page {
    color: #f3f4f6;
}

body.inverted .dashboard-card {
    border-color: #333;
    background: #090909;
    box-shadow: none;
}

body.inverted .dashboard-header h1,
body.inverted .dashboard-section-header h2,
body.inverted .dashboard-info-item strong,
body.inverted .dashboard-account-row strong,
body.inverted .plan-option-content strong {
    color: #f3f4f6;
}

body.inverted .dashboard-eyebrow,
body.inverted .dashboard-welcome,
body.inverted .dashboard-info-item span,
body.inverted .dashboard-account-row > span {
    color: #aaa;
}

body.inverted .dashboard-info-grid,
body.inverted .dashboard-account-list,
body.inverted .dashboard-actions {
    border-color: #333;
}

body.inverted .dashboard-info-item:nth-child(even) {
    border-left-color: #333;
}

body.inverted .dashboard-account-row {
    border-bottom-color: #333;
}

body.inverted .dashboard-account-row .dashboard-technical-value {
    color: #aaa;
}

body.inverted .status-active {
    color: #a8e2c0;
    background: #10281c;
    border-color: #254c36;
}

body.inverted .status-access {
    color: #eed39a;
    background: #292112;
    border-color: #4b3c21;
}

body.inverted .status-inactive {
    color: #ddd;
    background: #1c1c1c;
    border-color: #383838;
}

body.inverted .plan-option {
    border-color: #444;
    background: #111;
}

body.inverted .plan-option:has(input:checked) {
    border-color: #82aee0;
    background: #152130;
}

body.inverted .plan-option-content span {
    color: #aaa;
}

body.inverted .button-primary {
    border-color: #fff;
    background: #fff;
    color: #111;
}

body.inverted .button-primary:hover {
    background: #e5e5e5;
}

body.inverted .button-secondary {
    border-color: #444;
    background: #111;
    color: #f3f4f6;
}

body.inverted .button-secondary:hover {
    border-color: #666;
    background: #222;
}

body.inverted .button-danger {
    border-color: #583434;
    background: #170d0d;
    color: #ffb6b6;
}

body.inverted .button-danger:hover {
    background: #271313;
}

body.inverted .button-disabled {
    border-color: #333;
    background: #181818;
    color: #777;
}

body.inverted .dashboard-notice {
    border-color: #4b3c21;
    background: #211b10;
    color: #eed39a;
}

body.inverted .dashboard-signout {
    color: #aaa;
}

body.inverted .dashboard-signout:hover {
    color: #fff;
}

/* Responsive layout */

@media (max-width: 700px) {
    .dashboard-page {
        width: calc(100% - 32px);
        padding: 35px 0 50px;
    }

    .dashboard-header {
        margin-bottom: 24px;
    }

    .dashboard-header h1 {
        font-size: 32px;
    }

    .dashboard-card {
        margin-bottom: 16px;
        padding: 21px 18px;
        border-radius: 10px;
    }

    .dashboard-section-header {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }

    .dashboard-section-header h2 {
        font-size: 18px;
    }

    .subscription-status {
        max-width: 48%;
        padding: 6px 8px;
        font-size: 9px;
    }

    .dashboard-info-item {
        min-height: 78px;
        padding: 14px 8px 14px 0;
    }

    .dashboard-info-item:nth-child(even) {
        padding-left: 12px;
    }

    .dashboard-info-item strong {
        font-size: 13px;
    }

    .plan-options {
        gap: 8px;
    }

    .plan-option {
        gap: 8px;
        padding: 12px 9px;
    }

    .plan-option-content strong {
        font-size: 16px;
    }

    .dashboard-actions {
        gap: 10px;
        margin-top: 20px;
        padding-top: 20px;
    }

    .dashboard-actions > form:not(.dashboard-subscribe-form) .dashboard-button,
    .dashboard-actions > .dashboard-button {
        width: 100%;
    }

    .dashboard-account-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
        padding: 13px 0;
    }

    .dashboard-account-row strong {
        text-align: left;
        font-size: 13px;
    }

    .dashboard-account-row .dashboard-technical-value {
        font-size: 11px;
    }
}

@media (max-width: 360px) {
    .dashboard-page {
        width: calc(100% - 24px);
    }

    .dashboard-card {
        padding: 18px 14px;
    }

    .plan-option {
        gap: 6px;
        padding: 10px 7px;
    }

    .dashboard-info-item span {
        font-size: 11px;
    }
}

/* ========================================
   END — RUBIN BOOKS DASHBOARD
   ======================================== */







/* policy styles */ 



/* Simple informational pages */

.policy-page {
    width: min(100% - 40px, 820px);
    margin: 0 auto;
    padding: 48px 0 72px;
    color: #55514b;
    font-family: "Wix Madefor Display", sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.policy-page h1 {
    margin: 0 0 8px;
    color: #292723;
    font-size: clamp(30px, 5vw, 40px);
    font-weight: 600;
    line-height: 1.25;
}

.policy-page h1 + p {
    margin-top: 8px;
    color: #99958e;
    font-size: 13px;
}

.policy-page h2 {
    margin: 32px 0 8px;
    color: #38352f;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.4;
}

.policy-page p {
    margin: 12px 0;
}

.policy-page a {
    color: #55514b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.policy-page a:hover {
    color: #171613;
}

@media (max-width: 600px) {
    .policy-page {
        width: calc(100% - 32px);
        padding: 32px 0 48px;
        font-size: 15px;
    }

    .policy-page h2 {
        font-size: 19px;
    }
}


/* end policy */


