/* Salafiyyah Search v1.1.2 — search-specific layer over the exact homepage shell. */
@font-face {
    font-family: mv_faseyha;
    src: url('/assets/fonts/mv_faseyha.otf') format('opentype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0780-07BF;
}
@font-face {
    font-family: mv_waheed;
    src: url('/assets/fonts/mv_waheed.otf') format('opentype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0780-07BF;
}
@font-face {
    font-family: Traditional_Arabic;
    src: url('/assets/fonts/Traditional_arabic.TTF') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

body.sms-search-modern {
    background: var(--smh-bg, #f4f7f6) !important;
    color: var(--smh-text, #394740) !important;
}

/* Search component becomes the same white-card language as the homepage. */
body.sms-search-modern #system,
body.sms-search-modern #content,
body.sms-search-modern .search,
body.sms-search-modern .sms-search-shell {
    background: transparent !important;
    color: var(--smh-text, #394740) !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.sms-search-modern .sms-search-shell > h1,
body.sms-search-modern .sms-search-shell > h2,
body.sms-search-modern .sms-search-heading,
body.sms-search-modern #system > h1,
body.sms-search-modern #system > h2 {
    margin: 0 0 18px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--smh-ink, #17231f) !important;
    text-shadow: none !important;
    box-shadow: none !important;
    font-size: 27px !important;
    line-height: 1.5 !important;
}

body.sms-search-modern form#searchForm,
body.sms-search-modern .sms-search-form {
    margin: 0 0 22px !important;
    padding: 22px !important;
    border: 1px solid var(--smh-line, #dfe8e4) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 12px 34px rgba(15,42,34,.055) !important;
    color: var(--smh-text, #394740) !important;
    text-shadow: none !important;
}

body.sms-search-modern form#searchForm fieldset,
body.sms-search-modern .sms-search-form fieldset {
    margin: 0 0 14px !important;
    padding: 14px 0 0 !important;
    border: 0 !important;
    border-top: 1px solid #edf2f0 !important;
    background: transparent !important;
}
body.sms-search-modern form#searchForm fieldset:first-child,
body.sms-search-modern .sms-search-form fieldset:first-child { border-top: 0 !important; padding-top: 0 !important; }

body.sms-search-modern form#searchForm label,
body.sms-search-modern .sms-search-form label,
body.sms-search-modern form#searchForm legend,
body.sms-search-modern .sms-search-form legend {
    color: #43524c !important;
    background: transparent !important;
    text-shadow: none !important;
}

body.sms-search-modern .sms-search-input,
body.sms-search-modern form#searchForm input[type="text"],
body.sms-search-modern form#searchForm input[type="search"] {
    width: min(100%, 560px) !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 8px 16px !important;
    border: 1px solid #d8e4df !important;
    border-radius: 13px !important;
    outline: 0 !important;
    background: #fbfdfc !important;
    color: #17231f !important;
    box-shadow: inset 0 1px 0 rgba(15,42,34,.025) !important;
    font-size: 18px !important;
}
body.sms-search-modern .sms-search-input:focus,
body.sms-search-modern form#searchForm input[type="text"]:focus,
body.sms-search-modern form#searchForm input[type="search"]:focus {
    border-color: #9fcfc4 !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(11,136,121,.075) !important;
}

body.sms-search-modern .sms-search-button,
body.sms-search-modern form#searchForm button,
body.sms-search-modern form#searchForm input[type="submit"] {
    min-height: 43px !important;
    margin: 3px 4px !important;
    padding: 8px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #0b8b7b, #087165) !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: 0 8px 20px rgba(11,136,121,.16) !important;
    cursor: pointer !important;
}
body.sms-search-modern .sms-search-button:hover,
body.sms-search-modern form#searchForm button:hover,
body.sms-search-modern form#searchForm input[type="submit"]:hover {
    background: linear-gradient(135deg, #087d70, #065e56) !important;
    transform: translateY(-1px);
}

body.sms-search-modern .sms-search-select,
body.sms-search-modern form#searchForm select {
    min-height: 39px !important;
    padding: 6px 34px 6px 10px !important;
    border: 1px solid #d8e4df !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #394740 !important;
    box-shadow: none !important;
}

body.sms-search-modern form#searchForm input[type="radio"],
body.sms-search-modern form#searchForm input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 5px !important;
    accent-color: #0b8879;
}

body.sms-search-modern .searchintro,
body.sms-search-modern .sms-search-intro {
    margin: 0 0 18px !important;
    padding: 13px 16px !important;
    border: 1px solid #d9e8e3 !important;
    border-radius: 14px !important;
    background: #eef7f4 !important;
    color: #426159 !important;
    box-shadow: none !important;
}

/* Result cards */
body.sms-search-modern dl.search-results { display: none; }
body.sms-search-modern .sms-results-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.sms-search-modern .sms-result-card {
    position: relative;
    margin: 0 !important;
    padding: 18px 20px !important;
    border: 1px solid var(--smh-line, #dfe8e4) !important;
    border-radius: 17px !important;
    background: #fff !important;
    color: var(--smh-text, #394740) !important;
    box-shadow: 0 10px 28px rgba(15,42,34,.05) !important;
    overflow: hidden;
}
body.sms-search-modern .sms-result-card:hover {
    border-color: #cbded8 !important;
    box-shadow: 0 14px 34px rgba(15,42,34,.075) !important;
    transform: translateY(-1px);
}
body.sms-search-modern .sms-result-card dt,
body.sms-search-modern .sms-result-card dd {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    text-shadow: none !important;
}
body.sms-search-modern .sms-result-card dt {
    margin-bottom: 8px !important;
    font-size: 21px !important;
    line-height: 1.55 !important;
}
body.sms-search-modern .sms-result-card dt a {
    color: var(--smh-ink, #17231f) !important;
    text-decoration: none !important;
}
body.sms-search-modern .sms-result-card dt a:hover { color: var(--smh-teal-dark, #075f56) !important; }
body.sms-search-modern .sms-result-card dd {
    color: #53635c !important;
    line-height: 1.85 !important;
}
body.sms-search-modern .sms-result-card .result-created,
body.sms-search-modern .sms-result-card .small,
body.sms-search-modern .sms-result-card small {
    display: block !important;
    margin-top: 10px !important;
    color: #83908a !important;
    font-size: 12px !important;
}

body.sms-search-modern .highlight {
    padding: 0 3px !important;
    border-radius: 4px !important;
    background: #fff1a8 !important;
    color: #17231f !important;
}

/* Pagination uses homepage chips/cards instead of old Warp bars. */
body.sms-search-modern .pagination,
body.sms-search-modern .sms-search-pagination {
    margin: 22px 0 0 !important;
    padding: 14px !important;
    border: 1px solid var(--smh-line, #dfe8e4) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(15,42,34,.045) !important;
    color: #53635c !important;
}
body.sms-search-modern .pagination ul {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
body.sms-search-modern .pagination li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
body.sms-search-modern .pagination a,
body.sms-search-modern .pagination span {
    display: inline-flex !important;
    min-width: 36px !important;
    min-height: 36px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 10px !important;
    border: 1px solid #dce7e3 !important;
    border-radius: 10px !important;
    background: #f9fbfa !important;
    color: #365048 !important;
    text-decoration: none !important;
}
body.sms-search-modern .pagination a:hover,
body.sms-search-modern .pagination .active span,
body.sms-search-modern .pagination span.pagenav {
    border-color: #bcd8d0 !important;
    background: #eef7f4 !important;
    color: #075f56 !important;
}

/* Old template utilities must stay readable on the light shell. */
body.sms-search-modern #system .search *:not(.sms-search-button),
body.sms-search-modern #content .search *:not(.sms-search-button) {
    text-shadow: none !important;
}
body.sms-search-modern #system hr,
body.sms-search-modern #content hr { border-color: #e4ece9 !important; }

/* Mixed typography: ordinary Thaana, strong/title Thaana, Arabic. */
body.sms-search-modern #system,
body.sms-search-modern #content,
body.sms-search-modern .search,
body.sms-search-modern .search input,
body.sms-search-modern .search select,
body.sms-search-modern .search button {
    font-family: mv_faseyha, Arial, sans-serif !important;
}
body.sms-search-modern .sms-search-heading,
body.sms-search-modern .sms-result-card dt,
body.sms-search-modern .sms-result-card dt a,
body.sms-search-modern .search strong,
body.sms-search-modern .search b,
body.sms-search-modern .search legend {
    font-family: mv_waheed, mv_faseyha, Arial, sans-serif !important;
}
body.sms-search-modern :lang(ar),
body.sms-search-modern [dir="rtl"]:lang(ar) {
    font-family: Traditional_Arabic, "Traditional Arabic", serif !important;
}

@media (max-width: 960px) {
    body.sms-search-modern form#searchForm,
    body.sms-search-modern .sms-search-form { padding: 16px !important; border-radius: 16px !important; }
    body.sms-search-modern .sms-search-input,
    body.sms-search-modern form#searchForm input[type="text"],
    body.sms-search-modern form#searchForm input[type="search"] { width: 100% !important; }
    body.sms-search-modern .sms-result-card { padding: 15px !important; border-radius: 14px !important; }
    body.sms-search-modern .sms-result-card dt { font-size: 19px !important; }
}
