/* Site theme — the blog/article design language applied to the whole public
   site (static/css/series.css is where that language was first written).

   This is a layer, not a rewrite: it is loaded last from
   website/template2.html and retunes the shared primitives the 48 public
   templates already use — buttons, cards, search bars, the category sidebar,
   pagination, the nav and the footer — so every page moves together without
   touching the templates one by one.

   !important appears here only where the rule it replaces used it first -
   including the headings block at the foot, which takes content headings off
   Settings → text colour. See the note there. */

:root {
    --theme-plum: #4E2A74;
    --theme-plum-deep: #2E1846;
    --theme-plum-soft: #F4EEF9;
    --theme-crimson: #C62A47;
    --theme-ink: #2A2035;
    --theme-muted: #6F6577;
    --theme-paper: #FBF7F6;
    --theme-line: #EADFE8;
    --theme-shadow: 0 1px 2px rgba(46, 24, 70, .05), 0 8px 24px rgba(46, 24, 70, .06);
    --theme-radius: 16px;
}

/* ---------------------------------------------------------- the surface --- */

body {
    background-color: var(--theme-paper);
    color: var(--theme-ink);
}

.home,
.min-page-height {
    background-color: var(--theme-paper);
}

p {
    color: #3A3142 !important;
    line-height: 1.6;
}

/* ------------------------------------------------------------------ nav --- */

.nav-bar {
    background-color: #fff;
    box-shadow: none;
    border-bottom: 1px solid var(--theme-line);
}

.nav-menu-items-v2 > a,
.nav-menu-items-v2 > a:visited {
    color: var(--theme-ink);
    font-weight: 500;
    padding: 6px 2px;
    border-radius: 8px;
    transition: color .15s ease;
}

.nav-menu-items-v2 > a:hover,
.nav-menu-items-v2.active > a {
    color: var(--theme-plum);
}

.sub-menu {
    border: 1px solid var(--theme-line);
    border-radius: 12px;
    box-shadow: var(--theme-shadow);
    overflow: hidden;
}

.sub-menu-items-v2 {
    color: var(--theme-ink);
}

.sub-menu-items-v2:hover {
    background-color: var(--theme-plum-soft);
    color: var(--theme-plum);
}

.mobile-nav-bar {
    background-color: #fff;
    border-bottom: 1px solid var(--theme-line);
}

/* -------------------------------------------------------------- buttons --- */

.btn-primary-orange,
.btn-primary-purple,
.btn-primary-blue,
.btn-black {
    background-color: var(--theme-plum);
    border: 1px solid var(--theme-plum);
    border-radius: 999px;
    color: #fff !important;
    font-size: 15px;
    padding: 9px 20px;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-primary-orange:hover,
.btn-primary-purple:hover,
.btn-primary-blue:hover,
.btn-black:hover {
    background-color: var(--theme-plum-deep) !important;
    border-color: var(--theme-plum-deep) !important;
    color: #fff !important;
}

.btn-secondary-orange,
.btn-secondary-purple {
    background-color: #fff;
    border: 1px solid var(--theme-line);
    border-radius: 999px;
    color: var(--theme-plum) !important;
    font-size: 15px;
    padding: 9px 20px;
}

.btn-secondary-orange:hover,
.btn-secondary-purple:hover {
    background-color: var(--theme-plum);
    border-color: var(--theme-plum);
    color: #fff !important;
}

.btn-primary-white {
    border-radius: 999px;
    color: var(--theme-plum) !important;
    padding: 9px 20px;
}

/* ------------------------------------------------- inputs and searching --- */

.search-bar-responsiveness {
    border: 1px solid var(--theme-line) !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: none;
}

.search-bar {
    height: 46px;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--theme-ink);
    background: transparent;
}

.search-bar::placeholder {
    color: #9B8FA4;
}

.search-bar-icon {
    color: var(--theme-muted);
}

.custom-input,
select:not(.series-sort),
input[type="date"],
input[type="search"]:not(.search-bar):not(#series-search),
textarea {
    border: 1px solid var(--theme-line);
    border-radius: 10px;
    background: #fff;
    color: var(--theme-ink);
    font-size: 14px;
}

select:not(.series-sort) {
    padding: 8px 12px;
    cursor: pointer;
}

.custom-label {
    color: var(--theme-ink) !important;
    font-size: 13px;
}

/* ---------------------------------------------------------------- cards --- */

.new-muslim-artilce-card {
    background-color: #fff;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius);
    overflow: hidden;
    padding: 10px;
    box-shadow: var(--theme-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.new-muslim-artilce-card:hover {
    transform: translateY(-2px);
    border-color: #D9C7DE;
    box-shadow: 0 2px 4px rgba(46, 24, 70, .06), 0 14px 32px rgba(46, 24, 70, .1);
}

.new-muslim-article-img {
    border-radius: 12px;
}

.new-muslim-article-title {
    color: var(--theme-ink) !important;
    font-weight: 600;
}

.new-muslim-article-description {
    color: var(--theme-muted) !important;
}

.category-text {
    color: var(--theme-plum) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ------------------------------------------------- the category sidebar --- */

.filters-container {
    background: #fff;
    border: 1px solid var(--theme-line);
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-shadow);
    padding: 16px 14px;
}

.filter-box-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--theme-plum) !important;
    margin-bottom: 10px;
}

#category-list li {
    background-color: transparent !important;
    color: var(--theme-ink) !important;
    border-radius: 8px;
    padding: 2px 4px;
}

#category-list li:hover {
    background-color: var(--theme-plum-soft) !important;
}

#category-list button {
    color: var(--theme-ink) !important;
    font-size: 14px;
    text-align: left;
}

#category-list .bi-caret-right-fill,
#category-list .bi-caret-down-fill {
    color: #B9A9C2;
    font-size: 11px;
}

.custom-show-category {
    color: var(--theme-muted) !important;
    font-size: 13px;
}

.category-hamburger-container {
    color: var(--theme-plum) !important;
}

/* ----------------------------------------------------------- pagination --- */

.pagination-container .btn-primary-orange {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--theme-line);
    color: var(--theme-plum) !important;
}

.pagination-container .btn-primary-orange:hover {
    background: var(--theme-plum) !important;
    border-color: var(--theme-plum) !important;
    color: #fff !important;
}

.pagination-container #prev-page-btn,
.pagination-container #next-page-btn {
    border-radius: 50% !important;
    color: var(--theme-plum) !important;
    font-size: 18px;
}

.pagination-container #prev-page-btn:hover,
.pagination-container #next-page-btn:hover {
    color: #fff !important;
}

.pagination-input {
    border: 1px solid var(--theme-line);
    border-radius: 8px;
    color: var(--theme-ink);
    background: #fff;
    height: 34px;
}

/* --------------------------------------------------------------- footer --- */

footer {
    background-color: var(--theme-plum-deep) !important;
}

.footer-link-v2 {
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
}

.footer-link-v2:hover {
    color: #fff;
}

.newsletterinput {
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 10px;
    font-size: 15px;
}

.newsletterinput::placeholder {
    color: rgba(255, 255, 255, .6);
}

/* ------------------------------------------------------------ the rails --- */

/* The picture band at the top of a detail page, matched to the blog one. */
.thumbnial-bg {
    background-color: var(--theme-plum-deep);
}

.scroll-progress {
    background: var(--theme-plum);
}

/* Tabs above a listing (books / articles and friends). */
.tab {
    border-radius: 999px;
    padding: 8px 18px;
    color: var(--theme-muted);
    border: 1px solid var(--theme-line);
    background: #fff;
}

.tab.active {
    background: var(--theme-plum);
    border-color: var(--theme-plum);
    color: #fff;
}

/* ----------------------------------------------------------- headings --- */

/* website/template2.html paints every h1-h3 with Settings → text colour,
   which is a strong red on this install and fights the new palette. Content
   headings take the ink colour instead; delete this block to hand them back
   to the setting. Headings on a picture keep whatever the page gives them. */
body h1,
body h2,
body h3,
body h4 {
    color: var(--theme-ink) !important;
}

/* Anything sitting on a picture or on the plum keeps its own colour. */
body .image-overlya-container h1,
body .image-overlya-container h2,
body .image-overlya-container h3,
body .thumbnial-bg h1,
body .thumbnial-bg h2,
body .thumbnial-bg h3,
body footer h1,
body footer h2,
body footer h3,
body .series-hero h1 {
    color: #fff !important;
}

/* The accent stays available where a page wants it. */
.customHeading.accent,
.heading-accent {
    color: var(--theme-crimson) !important;
}
