:root {
    --ink: #101214;
    --night: #0a1118;
    --paper: #efe7d8;
    --maple: #d8493c;
    --maple-dark: #7f211a;
    --mist: #d9dde0;
    --hero-image: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--paper);
    background:
        radial-gradient(circle at 10% 10%, #2b3239 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, #1d2630 0%, transparent 35%),
        #070b10;
    font-family: "Libre Baskerville", Georgia, serif;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, #080d14, #111a23);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.4rem, 2vw, 2rem);
    letter-spacing: 0.05em;
    line-height: 1;
}

.brand strong {
    color: var(--maple);
    font-weight: 700;
}

.dotcom {
    color: #f4f1ea;
}

.leaf {
    display: inline-flex;
    align-items: center;
    margin-right: 0.35rem;
}

.leaf img {
    display: block;
}

.main-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.15rem;
}

.topbar-search {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.45rem;
}

.topbar-search input {
    width: min(28rem, 42vw);
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(10, 17, 24, 0.85);
    color: #f4f1ea;
    border-radius: 999px;
    padding: 0.46rem 0.9rem;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.03em;
    font-size: 0.92rem;
}

.topbar-search input::placeholder {
    color: rgba(244, 241, 234, 0.62);
}

.topbar-search input:focus-visible {
    outline: 2px solid rgba(216, 73, 60, 0.9);
    outline-offset: 1px;
}

.topbar-search button {
    border: 1px solid rgba(216, 73, 60, 0.78);
    background: rgba(216, 73, 60, 0.16);
    color: #f9f4eb;
    border-radius: 999px;
    padding: 0.42rem 0.9rem;
    text-transform: uppercase;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
    font-size: 0.86rem;
    cursor: pointer;
}

.topbar-search button:hover,
.topbar-search button:focus-visible {
    background: rgba(216, 73, 60, 0.34);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.main-nav a {
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
    color: rgba(244, 241, 234, 0.84);
    font-size: 0.95rem;
    padding-bottom: 0.2rem;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    text-transform: uppercase;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
    color: rgba(244, 241, 234, 0.84);
    font-size: 0.95rem;
    padding-bottom: 0.2rem;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    content: " ▾";
    font-size: 0.85em;
}

.nav-dropdown[open] summary::after {
    content: " ▴";
}

.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    display: none;
    min-width: 16.5rem;
    max-height: 70vh;
    overflow-y: auto;
    padding: 0.45rem;
    background: rgba(8, 13, 20, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
    z-index: 50;
}

.nav-dropdown[open] .dropdown-menu,
.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.main-nav .nav-dropdown .dropdown-menu a {
    display: block;
    text-transform: none;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.5rem;
    border-bottom: none;
    color: rgba(244, 241, 234, 0.92);
}

.main-nav .nav-dropdown .dropdown-menu a:hover,
.main-nav .nav-dropdown .dropdown-menu a.active-province {
    color: #ffffff;
    background: rgba(174, 47, 36, 0.22);
    border-bottom: none;
}

.main-nav a.active,
.main-nav a:hover,
.nav-dropdown summary:hover,
.nav-dropdown.active summary {
    color: #ffffff;
    border-bottom: 2px solid var(--maple);
}

.nav-dropdown[open] summary,
.nav-dropdown summary:focus-visible {
    color: #ffffff;
    border-bottom: 2px solid var(--maple);
    outline: none;
}

.search-main {
    width: min(1120px, 100% - 2.4rem);
    margin: 1.2rem auto 2.2rem;
    display: grid;
    gap: 1rem;
}

.search-intro-card,
.search-empty {
    background: rgba(8, 13, 20, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 1.05rem 1.2rem;
}

.search-intro-card h1 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.search-intro-card p,
.search-empty p {
    margin: 0.55rem 0 0;
    color: rgba(244, 241, 234, 0.9);
}

.search-meta {
    color: rgba(244, 241, 234, 0.74);
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 1rem;
}

.search-book-card {
    display: grid;
    gap: 0.65rem;
    align-content: start;
}

.search-book-card h2 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.28;
}

.search-book-meta {
    display: grid;
    gap: 0.28rem;
}

.search-book-meta p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(15, 20, 26, 0.9);
}

.search-book-description {
    margin: 0;
    color: #21201d;
    font-size: 0.94rem;
    line-height: 1.43;
}

.breadcrumbs {
    padding: 0.65rem 2rem;
    background: linear-gradient(90deg, #0c141d, #121d28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breadcrumbs ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.breadcrumbs li {
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.04em;
    color: rgba(244, 241, 234, 0.86);
    text-transform: uppercase;
    font-size: 0.88rem;
}

.breadcrumbs li+li::before {
    content: "/";
    color: rgba(244, 241, 234, 0.5);
    margin-right: 0.45rem;
}

.breadcrumbs a {
    text-decoration: none;
    color: rgba(244, 241, 234, 0.86);
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs li[aria-current="page"] {
    color: #ffffff;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: min(50vh, 500px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(7, 10, 14, 0.82) 0%, rgba(7, 10, 14, 0.18) 100%),
        var(--hero-image);
    background-size: cover, cover;
    background-position: center;
    filter: contrast(0.95) saturate(0.9);
    transform: scale(1.03);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(240, 233, 218, 0.35), rgba(240, 233, 218, 0) 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    min-height: inherit;
    padding: clamp(1rem, 3vw, 2.4rem);
}

.hero-message {
    max-width: 40rem;
    color: #15130f;

}

.hero-message h1 {
    margin: 0;
    line-height: 1.05;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(2rem, 5vw, 4.8rem);
}

.hero-message h1 span {
    color: var(--maple);
}

.hero-message p {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 1.7vw, 1.5rem);
    max-width: 30ch;
}

.hero-actions {
    margin-top: 1.35rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn {
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 1.2rem 1.1rem;
}

.btn-primary {
    background: var(--maple);
    color: #fff8f4;
}

.btn-primary:hover {
    background: var(--maple-dark);
}

.btn-secondary {
    background: rgba(17, 20, 24, 0.85);
    color: #f0ece4;
    border: 1px solid rgba(240, 236, 228, 0.25);
}

.btn-secondary:hover {
    background: rgba(10, 12, 15, 0.95);
}

.hero-note {
    max-width: 21rem;
    background: rgba(235, 227, 212, 0.95);
    color: #1b1711;
    border: 1px solid rgba(18, 14, 11, 0.25);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    padding: 1rem 1.15rem;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.15rem;
    line-height: 1.4;
}

.province-page .hero-content {
    padding: clamp(0.5rem, 1.4vw, 1.2rem);
    gap: 0.9rem;
    align-items: center;
}

.province-page .hero-message {
    max-width: 34rem;
    padding: clamp(1.35rem, 3vw, 2.3rem);

    background-image: url('backgrounds/sidebar.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
}

.province-page .hero-message h1 {
    font-size: clamp(1.85rem, 3.8vw, 3rem);
    line-height: 1.03;
}

.province-page .hero-message p {
    margin-top: 0.65rem;
    font-size: clamp(0.95rem, 1.25vw, 1.2rem);
}

.province-page .hero-actions {
    margin-top: 0.85rem;
    gap: 0.55rem;
}

.province-page .hero-actions .btn {
    font-size: 0.9rem;
    padding: 0.68rem 0.95rem;
}

.province-page .hero-note {
    max-width: 18rem;
    background: #000000;
    color: var(--paper);
    border: 1px solid #8f959b;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
    padding: 0.8rem 0.95rem;
    font-size: 1.02rem;
    line-height: 1.3;
}

.province-page .hero-note h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--paper);
}

.province-page .hero-note p {
    margin: 0.45rem 0 0;
}

.province-page .hero-note ul {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
}

.province-page .hero-note li {
    margin-bottom: 0.3rem;
}

.discover-grid {
    padding: clamp(1.2rem, 2.4vw, 2rem);
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1rem;
    background: linear-gradient(180deg, #09111a, #070c12);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.discover-grid h2 {
    margin: 0;
    grid-column: 1 / -1;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(1.4rem, 2.8vw, 2.1rem);
    color: #f2ece0;
}

.discover-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.discover-items article {
    padding: 0.75rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.discover-items h3 {
    margin: 0;
    font-size: 1rem;
    color: #fff7eb;
}

.discover-items p {
    margin: 0.45rem 0 0;
    font-size: 0.91rem;
    line-height: 1.45;
    color: rgba(242, 236, 224, 0.85);
}

.province-grid {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    align-items: start;
}

.home-genre-aside {
    align-self: start;
    background-color: #070c12;
    background-image: url('backgrounds/sidebar.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center top;
    color: #111111;
    padding: 1rem;
}

.home-genre-aside h3 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.45rem;
}

.home-genre-aside p {
    margin: 0.55rem 0 0.8rem;
    color: #111111;
}

.home-genre-aside ol {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(17, 17, 17, 0.18);
}

.home-genre-aside li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.home-genre-aside .genre-name {
    font-weight: 700;
    color: #111111;
    text-decoration: none;
}

.home-genre-aside .genre-name:hover {
    text-decoration: underline;
}

.home-genre-aside .genre-count {
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-spotlight-column {
    min-width: 0;
    display: grid;
    gap: 0.9rem;
}

.province-spotlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.8rem;
}

.province-spotlight-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    width: 100%;
    height: 100%;
}

.province-spotlight-card h3 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.02rem;
    color: #fff7eb;
    text-align: center;
}

.province-spotlight-body {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    flex: 1;
}

.province-spotlight-cover {
    width: 92px;
    margin-inline: 0;
}

.province-spotlight-cover .book-cover-placeholder {
    max-height: 138px;
}

.province-spotlight-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 100%;
}

.province-spotlight-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    width: 100%;
}

.province-spotlight-card h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #f2ece0;
}

.province-spotlight-card p {
    margin: 0;
    line-height: 1.45;
    color: rgba(242, 236, 224, 0.88);
}

.province-spotlight-card .btn {
    width: 100%;
    text-align: center;
    padding: 0.78rem 0.95rem;
}

.province-spotlight-link {
    align-self: center;
    text-align: center;
    color: #f6efe2;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.province-spotlight-empty {
    display: inline-block;
    color: rgba(242, 236, 224, 0.72);
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.genre-content-column {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.genre-row {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.genre-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.genre-row-header h3 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.45rem;
    color: #f2ece0;
}

.genre-row-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.genre-row-controls .sort-control {
    color: #f2ece0;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.genre-row-controls .sort-control select {
    min-width: 118px;
    padding: 0.3rem 0.4rem;
}

.genre-arrow {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(9, 17, 26, 0.9);
    color: #f6efe2;
    width: 2.2rem;
    height: 2.2rem;
    cursor: pointer;
}

.genre-arrow:hover {
    background: rgba(174, 47, 36, 0.25);
}

.genre-track {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
}

.genre-book-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.7rem;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.65rem;
    flex: 0 0 320px;
}

.genre-card-cover {
    width: 84px;
}

.genre-card-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.genre-card-copy h4 {
    margin: 0;
    color: #f2ece0;
    font-size: 1.08rem;
}

.genre-card-meta {
    margin: 0;
    color: rgba(242, 236, 224, 0.84);
    font-size: 0.9rem;
}

.genre-card-teaser {
    margin: 0;
    color: rgba(242, 236, 224, 0.9);
    line-height: 1.4;
}

.genre-card-copy .btn {
    margin-top: auto;
    text-align: center;
}

.genre-row-empty {
    margin: 0.7rem 0 0;
    color: rgba(242, 236, 224, 0.85);
    display: none;
}

.genre-filter-panel select {
    width: 100%;
    border: 1px solid rgba(17, 17, 17, 0.3);
    background: rgba(255, 255, 255, 0.85);
    color: #111111;
    padding: 0.45rem 0.55rem;
}

.genre-filter-panel .btn {
    width: 100%;
}

.featured-pick {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem;
}

.refine-panel {
    border: 0px solid #8f959b;
    background-color: black;
    background-image: url('backgrounds/sidebar.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center top;
    padding: 1rem;
    align-self: start;
    color: #111111;
}

.refine-panel h3 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.35rem;
    color: #111111;
}

.refine-group {
    margin-top: 0.9rem;
    border-top: 1px solid rgba(17, 17, 17, 0.18);
    padding-top: 0.75rem;
}

.refine-group h4 {
    margin: 0 0 0.45rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #111111;
}

.refine-group label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.38rem;
    font-size: 0.92rem;
    color: #111111;
}

.refine-group input[type="checkbox"] {
    accent-color: var(--maple);
}

.refine-panel .btn-outline {
    color: #111111;
    border-color: #8f959b;
    background: rgba(255, 255, 255, 0.28);
}

.refine-panel .btn-outline:hover {
    background: rgba(255, 255, 255, 0.42);
}

.refine-panel .btn {
    margin-top: 0.85rem;
}

.province-page .discover-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
}

.province-page .genre-content-column {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

.genre-page {
    overflow-x: hidden;
}

.genre-page .discover-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: start;
}

.genre-page .genre-content-column {
    min-width: 0;
    overflow-x: hidden;
}

.genre-page .genre-track {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.genre-page .genre-filter-panel {
    position: relative;
    z-index: 1;
}

.province-page .discover-items {
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.9rem;
}

.province-page .discover-items .featured-pick {
    grid-template-columns: 96px minmax(0, 1fr);
}

.province-page .discover-items .featured-copy {
    min-width: 0;
}

.province-page .discover-items .featured-copy h4 {
    font-size: 1.45rem;
}

.province-page .refine-panel {
    min-width: 0;
}

.book-cover-placeholder {
    width: 100%;
    aspect-ratio: 2 / 3;
    min-height: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 0;
    font-size: 0.85rem;
    color: #15171a;
    background:
        repeating-linear-gradient(45deg, #a8adb2 0 12px, #c2c8ce 12px 24px);
    border: 1px solid rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-copy h3 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.45rem;
}

.featured-copy h4 {
    margin: 0.35rem 0;
    font-size: 1.8rem;
}

.featured-copy p {
    margin: 0.25rem 0;
    color: rgba(241, 237, 229, 0.9);
}

.featured-copy .teaser {
    margin-top: 0.55rem;
    margin-bottom: 1rem;
    line-height: 1.45;
}

.btn-outline {
    border: 1px solid var(--maple);
    color: #f6efe2;
    display: inline-block;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(174, 47, 36, 0.18);
}

.local-library-button {
    background: transparent;
    border: 1px solid var(--maple);
    color: #f6efe2;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.local-library-button:hover {
    background: rgba(174, 47, 36, 0.18);
}

.site-footer {
    background: linear-gradient(180deg, #f4e4cc 0%, #e6d2b2 100%);
    color: #1a130f;
    padding: 1.1rem clamp(1rem, 3vw, 2rem) 1.35rem;
    border-top: 1px solid rgba(94, 43, 24, 0.22);
}

.site-shell>.site-footer {
    margin-top: auto;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.site-footer-nav a {
    color: #2b1f17;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.82rem;
}

.site-footer-nav a:hover {
    color: var(--maple);
}

.site-footer-disclosures {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    max-width: 1320px;
    margin: 0 auto;
}

.site-footer-block {
    background: rgba(255, 252, 247, 0.66);
    border: 1px solid rgba(94, 43, 24, 0.2);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
}

.site-footer-block h3 {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    font-family: "Barlow Condensed", Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #311f15;
}

.site-footer-block p {
    margin: 0;
    font-size: 0.93rem;
    line-height: 1.42;
}

.site-footer-block p+p {
    margin-top: 0.5rem;
}

.site-footer-social {
    margin: 0;
    padding-left: 1rem;
}

.site-footer-social li+li {
    margin-top: 0.15rem;
}

.site-footer-block a {
    color: var(--maple-dark);
    font-weight: 700;
}

.site-footer-legal-link,
.site-footer-legal-link:visited,
.site-footer-legal-link:hover,
.site-footer-legal-link:focus {
    color: #000;
}

.site-footer-tagline {
    margin: 0.9rem 0 0;
    text-align: center;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
}

.info-page {
    padding: clamp(1.1rem, 3vw, 2rem);
}

.info-page-card {
    max-width: 820px;
    margin: 0 auto;
    background: rgba(255, 254, 249, 0.92);
    border: 1px solid rgba(90, 46, 24, 0.18);
    border-radius: 12px;
    padding: clamp(1.2rem, 2.6vw, 2rem);
    color: #000;
}

.info-page-card h1 {
    margin-top: 0;
    color: #000;
}

.info-page-card p {
    color: #000;
}

.info-page-intro {
    font-weight: 700;
}

.wishlist-card .btn {
    display: inline-block;
    cursor: pointer;
}

.wishlist-card .btn-outline {
    color: #000;
    border-color: rgba(0, 0, 0, 0.45);
}

.wishlist-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 2px solid #000;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
}

.wishlist-header h1 {
    margin-bottom: 0.2rem;
}

.wishlist-subtitle {
    margin: 0;
    font-size: 0.9rem;
}

.wishlist-actions {
    align-items: center;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.wishlist-sort {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #000;
    font-size: 0.9rem;
}

.wishlist-sort select {
    padding: 0.45rem 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 6px;
    background: #fff;
    color: #000;
    font: inherit;
}

.wishlist-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wishlist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.18);
    break-inside: avoid;
}

.wishlist-checkbox {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    border: 2px solid #000;
    border-radius: 3px;
}

.wishlist-item-info {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wishlist-item-title {
    color: #000;
    font-weight: 700;
    text-transform: capitalize;
    text-decoration: none;
}

.wishlist-item-author {
    color: #000;
}

.wishlist-item-meta {
    color: #444;
    font-size: 0.85rem;
}

.wishlist-remove {
    background: none;
    border: 0;
    color: #8c1f1f;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    text-decoration: underline;
}

.wishlist-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #555;
}

@media print {
    body.wishlist-page {
        background: #fff;
        color: #000;
    }

    .wishlist-page .topbar,
    .wishlist-page .site-footer,
    .wishlist-actions,
    .wishlist-remove,
    .wishlist-note {
        display: none !important;
    }

    .wishlist-page .info-page {
        padding: 0;
    }

    .wishlist-page .info-page-card {
        max-width: none;
        border: 0;
        border-radius: 0;
        background: #fff;
        padding: 0;
    }
}

@media (max-width: 1100px) {
    .discover-grid {
        grid-template-columns: 1fr;
    }

    .discover-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .province-spotlights {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .province-grid {
        grid-template-columns: 1fr;
    }

    .province-spotlight-cover {
        width: 88px;
    }

    .province-spotlight-body {
        grid-template-columns: 88px minmax(0, 1fr);
    }

    .province-page .discover-grid {
        grid-template-columns: 1fr;
    }

    .province-page .genre-content-column {
        grid-column: 1 / -1;
    }

    .genre-page .discover-grid {
        grid-template-columns: 1fr;
    }

    .province-page .discover-items {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .genre-track {
        gap: 0.7rem;
    }

    .genre-book-card {
        flex-basis: 300px;
    }

    .site-footer-disclosures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .site-footer-disclosures {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }

    .topbar-search {
        width: 100%;
    }

    .topbar-search input {
        width: 100%;
    }
}

@media (max-width: 860px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
    }

    .topbar-search {
        width: 100%;
        margin-left: 0;
    }

    .topbar-search input {
        width: 100%;
    }

    .hero-content {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-note {
        max-width: none;
    }

    .discover-items {
        grid-template-columns: 1fr;
    }

    .province-spotlights {
        grid-template-columns: 1fr;
    }

    .province-spotlight-cover {
        width: min(100%, 170px);
    }

    .province-spotlight-body {
        grid-template-columns: 1fr;
    }

    .province-spotlight-cover {
        width: min(100%, 170px);
        margin-inline: auto;
    }

    .genre-book-card {
        grid-template-columns: 1fr;
    }

    .genre-card-cover {
        width: min(100%, 170px);
        margin-inline: auto;
    }

    .breadcrumbs {
        padding: 0.6rem 1rem;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        min-width: 100%;
        margin-top: 0.35rem;
    }
}

/* Authors Template */
.authors-page .authors-hero {
    position: relative;
    overflow: hidden;
    min-height: min(46vh, 430px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.authors-page .authors-hero .hero-bg {
    filter: contrast(0.92) saturate(0.86);
}

.authors-hero-inner {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: clamp(0.8rem, 2.2vw, 1.8rem);
}

.authors-hero-paper {
    width: min(45rem, 100%);
    background-image: url('backgrounds/sidebar.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    color: #1a1712;
    padding: clamp(1rem, 2.4vw, 2rem);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
}

.authors-page .authors-hero-paper .breadcrumbs {
    padding: 0;
    background: none;
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.authors-page .authors-hero-paper .breadcrumbs li,
.authors-page .authors-hero-paper .breadcrumbs a,
.authors-page .authors-hero-paper .breadcrumbs li[aria-current="page"] {
    color: rgba(25, 21, 16, 0.9);
}

.authors-page .authors-hero-paper h1 {
    margin: 0;
    line-height: 1.03;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.authors-page .authors-hero-paper h1 span {
    color: var(--maple-dark);
}

.authors-page .authors-hero-paper p {
    margin: 0.7rem 0 0;
    max-width: 34ch;
    font-size: clamp(1rem, 1.5vw, 1.45rem);
}

.author-site-link {
    display: inline-block;
    margin-top: 0.95rem;
    color: #1d1611;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.authors-main {
    background: linear-gradient(180deg, #09111a 0%, #070c12 100%);
    color: var(--paper);
    padding: clamp(1rem, 2.3vw, 1.8rem);
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(220px, 300px);
    gap: 1rem;
}

.author-profile-card {
    align-self: start;
    background-color: black;
    background-image: url('backgrounds/sidebar.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center top;
    color: #111111;
    border: 0px solid #8f959b;
    padding: 1rem;
}

.author-avatar-placeholder {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: #181a1d;
    margin-bottom: 0.85rem;
    background: repeating-linear-gradient(45deg, #a8adb2 0 12px, #c2c8ce 12px 24px);
    border: 1px solid rgba(0, 0, 0, 0.35);
}

.author-profile-card h2 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.8rem;
    color: #111111;
}

.author-profile-card p {
    margin: 0.65rem 0 0;
    line-height: 1.5;
    color: #111111;
}

.profile-link {
    margin-top: 0.7rem;
    display: inline-block;
    color: var(--maple-dark);
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.author-facts {
    margin: 1rem 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(17, 17, 17, 0.18);
    border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.author-facts li {
    padding: 0.5rem 0;
    color: #111111;
}

.author-profile-card blockquote {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    line-height: 1.45;
    color: #2a2018;
}

.authors-books-area {
    min-width: 0;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.8rem;
}

.authors-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.authors-toolbar h2 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #f2ece0;
}

.sort-control {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #f2ece0;
}

.sort-control select {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(9, 17, 26, 0.9);
    color: #f2ece0;
    padding: 0.45rem 0.55rem;
    font-family: inherit;
}

.book-series {
    margin-top: 1rem;
}

.series-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding-bottom: 0.35rem;
}

.series-header h3 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    color: var(--maple);
    font-size: clamp(1.25rem, 2.5vw, 1.9rem);
}

.series-header span {
    color: #f2ece0;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.06em;
}

.series-grid {
    margin-top: 0.85rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.8rem;
}

.authors-page .series-grid,
.authors-page .short-row {
    grid-template-columns: repeat(auto-fill, 170px);
    justify-content: start;
}

.authors-page .book-card {
    width: 170px;
}

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

.book-card .book-cover-placeholder {
    min-height: 0;
}

.book-card h4 {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
    color: #f2ece0;
}

.book-card p {
    margin: 0.2rem 0 0;
    color: rgba(242, 236, 224, 0.86);
}

.short-row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.authors-explore {
    align-self: start;
    background: linear-gradient(180deg, rgba(247, 240, 226, 0.94), rgba(237, 226, 202, 0.94));
    border: 1px solid rgba(18, 14, 11, 0.2);
    padding: 1rem;
    color: #17120f;
}

.authors-explore h3 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.5rem;
}

.authors-explore ul {
    margin: 0.6rem 0 1rem;
    padding-left: 1.1rem;
}

.authors-explore li {
    margin-bottom: 0.4rem;
}

.authors-explore a {
    color: #1b1612;
}

.authors-explore p {
    margin: 0.5rem 0 0.9rem;
    color: #31261d;
}

.authors-page .authors-explore .btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
}

@media (max-width: 1200px) {
    .authors-main {
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    }

    .authors-explore {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .authors-main {
        grid-template-columns: 1fr;
    }

    .authors-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .authors-page .series-grid,
    .authors-page .short-row {
        grid-template-columns: repeat(auto-fill, 145px);
    }

    .authors-page .book-card {
        width: 145px;
    }
}

/* Series Template */
.series-page .series-hero {
    position: relative;
    overflow: hidden;
    min-height: min(46vh, 430px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.series-page .series-hero .hero-bg {
    filter: contrast(0.92) saturate(0.86);
}

.series-hero-inner {
    position: relative;
    z-index: 2;
    min-height: inherit;
    display: flex;
    align-items: center;
    padding: clamp(0.8rem, 2.2vw, 1.8rem);
}

.series-hero-paper {
    width: min(45rem, 100%);
    background-image: url('backgrounds/sidebar.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center;
    color: #1a1712;
    padding: clamp(1rem, 2.4vw, 2rem);

}

.series-page .series-hero-paper .breadcrumbs {
    padding: 0;
    background: none;
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.series-page .series-hero-paper .breadcrumbs li,
.series-page .series-hero-paper .breadcrumbs a,
.series-page .series-hero-paper .breadcrumbs li[aria-current="page"] {
    color: rgba(25, 21, 16, 0.9);
}

.series-page .series-hero-paper h1 {
    margin: 0;
    line-height: 1.03;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.series-page .series-hero-paper p {
    margin: 0.7rem 0 0;
    max-width: 36ch;
    font-size: clamp(1rem, 1.5vw, 1.45rem);
}

.series-author-link {
    display: inline-block;
    margin-top: 0.95rem;
    color: #1d1611;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 700;
}

.series-main {
    background: linear-gradient(180deg, #09111a 0%, #070c12 100%);
    color: var(--paper);
    padding: clamp(1rem, 2.3vw, 1.8rem);
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr) minmax(220px, 300px);
    gap: 1rem;
}

.series-profile-card {
    align-self: start;
    background-color: black;
    background-image: url('backgrounds/sidebar.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center top;
    color: #111111;
    padding: 1rem;
}

.series-profile-card h2 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.8rem;
    color: #111111;
}

.series-profile-card p {
    margin: 0.65rem 0 0;
    line-height: 1.5;
    color: #111111;
}

.series-profile-card blockquote {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    line-height: 1.45;
    color: #2a2018;
}

.series-facts {
    margin: 1rem 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(17, 17, 17, 0.18);
    border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}

.series-facts li {
    padding: 0.5rem 0;
    color: #111111;
}

.series-books-area {
    min-width: 0;
    background: rgba(0, 0, 0, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.8rem;
}

.series-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.7rem;
}

.series-toolbar h2 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    color: #f2ece0;
}

.series-template-grid {
    grid-template-columns: repeat(auto-fill, 170px);
    justify-content: start;
}

.series-page .series-book-card {
    width: 170px;
}

.series-book-card {
    min-width: 0;
    color: #f2ece0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.series-book-card .book-cover-placeholder {
    min-height: 0;
}

.series-book-card h4 {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
    color: #f2ece0;
}

.series-book-card p {
    margin: 0.2rem 0 0;
    color: rgba(242, 236, 224, 0.86);
}

.series-book-card .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

.series-explore {
    align-self: start;
    background: linear-gradient(180deg, rgba(247, 240, 226, 0.94), rgba(237, 226, 202, 0.94));
    border: 1px solid rgba(18, 14, 11, 0.2);
    padding: 1rem;
    color: #17120f;
}

.series-explore h3 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.5rem;
}

.series-explore ul {
    margin: 0.6rem 0 1rem;
    padding-left: 1.1rem;
}

.series-explore li {
    margin-bottom: 0.4rem;
}

.series-explore a {
    color: #1b1612;
}

.series-explore p {
    margin: 0.5rem 0 0.9rem;
    color: #31261d;
}

/* Book Detail Page */
.book-detail {
    background: linear-gradient(180deg, #09111a 0%, #070c12 100%);
    color: var(--paper);
    padding: clamp(1rem, 2.3vw, 1.8rem);
    display: grid;
    grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
    align-items: start;
    gap: 1.1rem;
}

.book-detail-cover {
    width: 100%;
    max-width: 240px;
}

.book-detail-cover .book-cover-placeholder {
    max-height: min(55vh, 360px);
}

.book-detail-cover .book-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-detail-content h1 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    color: #f2ece0;
}

.book-detail-authors {
    margin: 0.45rem 0 0;
    color: rgba(242, 236, 224, 0.92);
    font-size: 1.08rem;
}

.book-detail-description {
    margin: 1rem 0 0;
    line-height: 1.6;
    max-width: 68ch;
}

.book-buy-links {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.book-buy-links .btn {
    text-align: center;
}

.book-buy-links .tbm_shop_local {
    background: transparent;
    border: 1px solid var(--maple);
    color: #f6efe2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
    box-sizing: border-box;
}

.book-buy-links .tbm_shop_local .tbm-locator-dropdown {
    display: contents;
}

.book-buy-links .tbm-style,
.book-buy-links .tbm_shop_local .tbm-style,
.book-buy-links .tbm_shop_local button,
.book-buy-links .tbm_shop_local a {
    background: transparent !important;
    border: 0 !important;
    color: inherit !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    text-decoration: none !important;
    text-transform: inherit !important;
    font-family: inherit !important;
    letter-spacing: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    vertical-align: middle;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
    box-shadow: none;
    outline: 0;
    box-sizing: border-box;
}

/* Keep the Bookmanager dialog visually aligned with the local-library dialog. */
.book-page .tbm-style .tbm-locator-modal {
    background: rgba(17, 17, 17, 0.72) !important;
    backdrop-filter: blur(2px);
}

.book-page .tbm-style .tbm-locator-modal-content {
    box-sizing: border-box;
    width: min(460px, calc(100vw - 2rem)) !important;
    max-width: calc(100vw - 2rem) !important;
    min-height: 0;
    margin: min(10vh, 5rem) auto !important;
    padding: 1.5rem !important;
    border: 1px solid rgba(31, 28, 26, 0.12) !important;
    border-radius: 18px !important;
    background: #f3ead8 !important;
    color: #1d1a17 !important;
    box-shadow: 0 24px 72px rgba(10, 10, 10, 0.3) !important;
    line-height: 1.5 !important;
}

.book-page .tbm-style .tbm-locator-modal-content,
.book-page .tbm-style .tbm-locator-modal-content * {
    font-family: "Libre Baskerville", Georgia, serif !important;
}

.book-page .tbm-style .tbm-locator-modal-content label,
.book-page .tbm-style .tbm-locator-modal-content .ant-form-item-label {
    height: auto;
    color: #30271f !important;
    font-weight: 700;
}

.book-page .tbm-style .tbm-locator-modal-content input,
.book-page .tbm-style .tbm-locator-modal-content textarea,
.book-page .tbm-style .tbm-locator-modal-content select {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.7rem 0.8rem !important;
    border: 1px solid rgba(33, 27, 22, 0.2) !important;
    border-radius: 10px !important;
    background: #fffdf8 !important;
    color: #1c1a17 !important;
    font: inherit !important;
}

.book-page .tbm-style .tbm-locator-modal-content input:focus,
.book-page .tbm-style .tbm-locator-modal-content textarea:focus,
.book-page .tbm-style .tbm-locator-modal-content select:focus {
    outline: 2px solid rgba(140, 77, 25, 0.35) !important;
    outline-offset: 1px;
}

.book-page .tbm-style .tbm-locator-modal-content button:not(.tbm-locator-close) {
    min-height: 2.75rem;
    padding: 0.7rem 1rem !important;
    border: 1px solid #5b3c16 !important;
    border-radius: 10px !important;
    background: #5b3c16 !important;
    color: #fffaf2 !important;
    font: inherit !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.book-page .tbm-style .tbm-locator-modal-content button:not(.tbm-locator-close):hover {
    background: #754d20 !important;
}

.book-page .tbm-style .tbm-locator-close {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(29, 26, 23, 0.08) !important;
    color: #1d1a17 !important;
    text-decoration: none;
}

.book-page .tbm-style .tbm-locator-close svg {
    fill: currentColor !important;
}

.book-page .tbm-style .tbm-locator-modal-content .ant-form-item-explain-error small {
    color: #8f1f1f;
}

@media (max-width: 640px) {
    .book-page .tbm-style .tbm-locator-modal-content {
        margin: 1rem auto !important;
        padding: 1.15rem !important;
    }
}

.book-detail-meta {
    margin: 0.8rem 0 0;
    color: rgba(242, 236, 224, 0.78);
}

.book-detail-line {
    margin: 0.55rem 0 0;
}

.book-author-about {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(242, 236, 224, 0.25);
}

.book-author-about h2 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: 1.3rem;
    color: #f2ece0;
}

.book-author-about p {
    margin: 0.6rem 0 0;
    line-height: 1.55;
}

.book-author-about .btn {
    margin-top: 0.75rem;
}

.book-author-about .author-more-btn {
    display: table;
    margin: 0.75rem auto 0;
}

.book-detail-links {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.book-detail-links a {
    color: #f6efe2;
    font-family: "Barlow Condensed", "Trebuchet MS", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.book-related {
    background: linear-gradient(180deg, #070c12 0%, #070c12 100%);
    color: var(--paper);
    padding: 0 1.8rem 1.6rem;
}

.book-related h2 {
    margin: 0;
    font-family: "Special Elite", "Courier New", monospace;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    color: #f2ece0;
}

.book-related .series-grid {
    margin-top: 0.85rem;
}

@media (max-width: 860px) {
    .book-detail {
        grid-template-columns: 1fr;
    }

    .book-detail-cover {
        max-width: 210px;
    }
}

.series-page .series-explore .btn-primary {
    display: inline-block;
    width: 100%;
    text-align: center;
}

@media (max-width: 1200px) {
    .series-main {
        grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    }

    .series-explore {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .series-main {
        grid-template-columns: 1fr;
    }

    .series-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .series-template-grid {
        grid-template-columns: repeat(auto-fill, 145px);
    }

    .series-page .series-book-card {
        width: 145px;
    }
}

h4 {
    text-transform: capitalize !important;
}

h2 {
    text-transform: capitalize !important;
}