﻿/* ==========================================================================
   responsive.css
   كل قواعد التجاوب مع أحجام الشاشات في مكان واحد. يُحمَّل آخر ملف في كل Layout.

   Breakpoints (same as the Bootstrap 4 build inside style.css):
     phone   < 576px
     tablet  576px – 991px
     laptop  992px – 1199px   (menu is still collapsed here)
     desktop >= 1200px
     wide    >= 1600px

   Every selector starts with :root so it wins over style.css even when a view
   links style.css a second time inside <body>, and over the <style> blocks
   that many views carry. !important is used only against inline style="".
   ========================================================================== */

:root {
    --rsp-gold: #b7872e;
    --rsp-green: #00522a;
    --rsp-sand: #f6efe2;
    --rsp-ink: #231f1a;
    --rsp-header-h: 72px;
    --rsp-gutter: 40px;
}

@media (max-width: 1199.98px) {
    :root {
        --rsp-header-h: 64px;
        --rsp-gutter: 24px;
    }
}

@media (max-width: 575.98px) {
    :root {
        --rsp-gutter: 16px;
    }
}


/* --------------------------------------------------------------------------
   1. Foundation
   -------------------------------------------------------------------------- */

/* Footer sticks to the bottom of short pages without floating over content. */
:root body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

    :root body > #main-wrapper,
    :root body > .intro,
    :root body > form {
        flex: 1 0 auto;
    }

    /* the theme gives #main-wrapper z-index: 1, which did nothing while it was
       unpositioned; as a flex item it now makes a stacking context, and a modal
       inside it would sit under the backdrop Bootstrap appends to body */
    :root body > #main-wrapper {
        z-index: auto;
    }

    /* the footer now follows .intro, so .intro fills what is left instead of a fixed 100vh */
    :root body > .intro {
        min-height: 0;
    }

:root img,
:root video,
:root iframe {
    max-width: 100%;
}

:root .firtpage-footer {
    position: static;
    flex: 0 0 auto;
    margin-top: auto;
    width: 100%;
    padding: 10px var(--ui-inset, var(--rsp-gutter)) 6px;
    text-align: left;
    background-image: linear-gradient(to left, rgba(183, 135, 46, 0), var(--rsp-gold));
    z-index: 1;
}

    :root .firtpage-footer a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 36px;
        min-height: 36px;
        color: #fff;
    }

        :root .firtpage-footer a i,
        :root .firtpage-footer a svg {
            margin: 0 !important;
            font-size: 18px;
        }

        :root .firtpage-footer a:focus-visible,
        :root .navbar-toggler:focus-visible,
        :root .btn:focus-visible,
        :root .nav-link:focus-visible {
            outline: 3px solid var(--rsp-green);
            outline-offset: 2px;
        }

:root .pager nav {
    max-width: 100%;
}

/* Wide tables scroll inside their own box instead of pushing the page. */
:root .table-responsive {
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1600px) {
    :root .container {
        max-width: 1560px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root *,
    :root *::before,
    :root *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    :root [data-aos] {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* --------------------------------------------------------------------------
   2. Header and main menu (collapsed below 1200px)
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    :root .header.landing_page {
        height: auto;
        min-height: var(--rsp-header-h);
        padding: 8px 0;
        z-index: 1030;
    }

        :root .header.landing_page > .container {
            max-width: 100%;
            padding: 0 var(--rsp-gutter) !important;
        }

            :root .header.landing_page > .container > .row {
                flex-wrap: nowrap;
                align-items: center;
                margin: 0;
            }

        /* logo column: always visible, sized by height */
        :root .header.landing_page .hidden-sm {
            display: block;
            flex: 0 0 auto;
            width: auto;
            max-width: none;
            padding: 0;
            margin: 0 !important;
        }

            :root .header.landing_page .hidden-sm img {
                display: block;
                width: auto;
                height: 44px;
                max-width: 46vw !important;
                object-fit: contain;
            }

        :root .header.landing_page .navbar-contaner {
            position: static;
            flex: 1 1 auto;
            max-width: none;
            min-width: 0;
            padding: 0;
            background: none;
        }

        :root .header.landing_page .navbar {
            flex-wrap: nowrap;
            justify-content: flex-end;
            min-height: 48px;
        }

        :root .header.landing_page button.navbar-toggler {
            position: static;
            order: 3;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            min-width: 44px;
            height: 44px;
            padding: 0;
            margin-right: 8px;
            border: 1px solid var(--ui-line, var(--rsp-gold));
            border-radius: var(--ui-r-ctl) !important;
            background: #fff;
            transition: background-color .16s ease, border-color .16s ease;
        }

            :root .header.landing_page button.navbar-toggler:focus:not(:focus-visible) {
                outline: 0;
            }

            :root .header.landing_page button.navbar-toggler[aria-expanded="true"] {
                background: var(--rsp-sand);
                border-color: var(--rsp-gold);
            }

        /* three bars that fold into a cross while the sheet is open */
        :root .header.landing_page .navbar-toggler-icon {
            position: relative;
            width: 20px;
            height: 2px;
            border-radius: 2px;
            background: var(--rsp-green);
            transition: background-color .16s ease;
        }

            :root .header.landing_page .navbar-toggler-icon::before,
            :root .header.landing_page .navbar-toggler-icon::after {
                content: "";
                position: absolute;
                right: 0;
                left: 0;
                height: 2px;
                border-radius: 2px;
                background: var(--rsp-green);
                transition: transform .22s ease;
            }

            :root .header.landing_page .navbar-toggler-icon::before {
                top: -6px;
            }

            :root .header.landing_page .navbar-toggler-icon::after {
                top: 6px;
            }

        :root .header.landing_page [aria-expanded="true"] > .navbar-toggler-icon {
            background-color: transparent;
        }

            :root .header.landing_page [aria-expanded="true"] > .navbar-toggler-icon::before {
                transform: translateY(6px) rotate(45deg);
            }

            :root .header.landing_page [aria-expanded="true"] > .navbar-toggler-icon::after {
                transform: translateY(-6px) rotate(-45deg);
            }

        :root .header.landing_page .dashboard_log {
            position: static !important;
            order: 2;
            flex: 0 1 auto;
            margin: 0;
        }

        :root .header.landing_page .header_auth {
            display: flex;
            align-items: center;
        }

            :root .header.landing_page .header_auth .btn {
                min-width: 0 !important;
                min-height: 44px;
                padding: 8px 14px;
                margin: 0 0 0 8px !important;
                line-height: 24px;
                white-space: nowrap;
            }

        /* the menu drops down as a sheet under the header */
        :root .header.landing_page .navbar-collapse {
            position: fixed;
            top: calc(var(--rsp-header-h) + 8px);
            right: var(--rsp-gutter);
            left: var(--rsp-gutter);
            z-index: 1031;
            max-height: calc(100vh - var(--rsp-header-h) - 24px);
            max-height: calc(100dvh - var(--rsp-header-h) - 24px);
            overflow-y: auto;
            overscroll-behavior: contain;
            background: #fff;
            border: 1px solid var(--rsp-gold);
            border-radius: var(--ui-r-box);
            box-shadow: 0 18px 40px rgba(35, 31, 26, .2);
        }

        :root .header.landing_page .navbar-nav {
            margin: 0;
            padding: 6px;
            background: none;
            border-radius: 0;
        }

            :root .header.landing_page .navbar-nav .nav-item {
                border-left: 0 !important;
                border-bottom: 1px solid var(--rsp-sand);
            }

                :root .header.landing_page .navbar-nav .nav-item:last-child {
                    border-bottom: 0;
                }

            /* menu entries must be readable the moment the sheet opens */
            :root .header.landing_page .navbar-nav [data-aos] {
                opacity: 1 !important;
                transform: none !important;
                transition: none !important;
            }

            :root .header.landing_page .navbar-nav .nav-item .nav-link {
                display: flex;
                align-items: center;
                min-height: 48px;
                padding: 10px 16px !important;
                color: var(--rsp-green);
                font-size: 17px;
                border-radius: var(--ui-r-ctl);
            }

                :root .header.landing_page .navbar-nav .nav-item .nav-link:hover,
                :root .header.landing_page .navbar-nav .nav-item .nav-link:focus,
                :root .header.landing_page .navbar-nav .nav-item .nav-link.active {
                    color: var(--rsp-green);
                    background: var(--rsp-sand);
                }

                /* the current page: gold bar on the leading (right) edge */
                :root .header.landing_page .navbar-nav .nav-item .nav-link.active {
                    font-weight: 700;
                    box-shadow: inset -3px 0 0 var(--rsp-gold);
                }

                /* one icon column, so the words line up under each other */
                :root .header.landing_page .navbar-nav .nav-item .nav-link > i {
                    flex: 0 0 26px;
                    margin-left: 10px;
                    color: var(--rsp-gold);
                    font-size: 22px;
                    line-height: 1;
                    text-align: center;
                }

                :root .header.landing_page .navbar-nav .nav-item .nav-link > .nav-ico {
                    display: block;
                }

            :root .header.landing_page .navbar-nav .dropdown-menu {
                position: static !important;
                float: none;
                width: auto;
                margin: 0 12px 8px;
                padding: 4px;
                border: 0;
                border-radius: var(--ui-r-box);
                background: var(--rsp-sand);
                box-shadow: none;
                transform: none !important;
            }

                :root .header.landing_page .navbar-nav .dropdown-menu .dropdown-item {
                    min-height: 44px;
                    padding: 10px 14px;
                    white-space: normal;
                    border-radius: var(--ui-r-ctl);
                }

        /* notification and profile menus span the screen instead of 350px */
        :root .header.landing_page .notification,
        :root .header.landing_page .profile_log {
            position: static;
        }

            :root .header.landing_page .notification > .user,
            :root .header.landing_page .profile_log > .user {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-width: 44px;
                min-height: 44px;
            }

            :root .header.landing_page .notification .dropdown-menu,
            :root .header.landing_page .profile_log .dropdown-menu {
                position: fixed !important;
                top: calc(var(--rsp-header-h) + 8px) !important;
                right: var(--rsp-gutter) !important;
                left: var(--rsp-gutter) !important;
                width: auto;
                max-width: 420px;
                margin-right: auto;
                transform: none !important;
                border: 1px solid var(--rsp-gold);
                border-radius: var(--ui-r-box);
                overflow: hidden;
            }

        :root .header.landing_page .notification .la-bell {
            font-size: 26px;
        }

        :root .header.landing_page .notification-menu {
            height: auto;
            max-height: 50vh;
        }

    /* content starts right under the fixed header */
    :root .intro {
        align-items: flex-start;
        min-height: 0 !important;
        margin-top: 0;
        padding: calc(var(--rsp-header-h) + 18px) 0 24px !important;
    }

        :root .intro > .container {
            max-width: 100%;
            padding-right: var(--rsp-gutter);
            padding-left: var(--rsp-gutter);
        }

    :root body > .page-title {
        margin-top: calc(var(--rsp-header-h) + 14px) !important;
    }
}

@media (max-width: 359.98px) {
    :root .header.landing_page .hidden-sm img {
        height: 36px;
        max-width: 34vw !important;
    }

    :root .header.landing_page .header_auth .btn {
        gap: 4px;
        padding: 8px 10px;
        font-size: 14px;
    }
}

@media (max-width: 575.98px) {
    :root .header.landing_page .header_auth .btn.header-lang {
        padding-right: 10px;
        padding-left: 10px;
    }
}


@media (min-width: 1200px) and (max-width: 1499.98px) {
    :root .header.landing_page .navbar-nav .nav-item .nav-link {
        padding: 0 8px;
        font-size: 16px;
        white-space: nowrap;
    }

    :root .header.landing_page .header_auth .btn {
        min-width: 110px;
    }
}


/* --------------------------------------------------------------------------
   3. Page bar and area shells (User / CP / Committee)
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    :root body > .page-title {
        margin-right: var(--rsp-gutter) !important;
        margin-left: var(--rsp-gutter) !important;
        padding: 8px 12px !important;
        border-radius: var(--ui-r-box) !important;
    }

        /* a page without a breadcrumb keeps the spacing but shows no bar */
        :root body > .page-title:not(:has(*)) {
            padding: 0 !important;
            background: none !important;
        }

        :root body > .page-title > .container {
            max-width: 100%;
            padding: 0 12px;
        }

        :root body > .page-title h4 {
            margin: 0;
            font-size: 17px;
            line-height: 1.7;
        }

    :root #main-wrapper > .section-padding {
        padding: 18px 0 32px !important;
    }

    :root #main-wrapper .container {
        max-width: 100%;
    }

    /* registration pages have no page bar: the form itself clears the fixed header */
    :root body > form > #main-wrapper > .section-padding,
    :root body > #main-wrapper.signin > .section-padding {
        padding-top: calc(var(--rsp-header-h) + 16px) !important;
    }

    :root body > form > #main-wrapper > .section-padding > .container {
        padding-right: var(--rsp-gutter);
        padding-left: var(--rsp-gutter);
    }

    /* public pages: .intro > .container already carries the gutter */
    :root .intro > .container #main-wrapper .container {
        padding-right: 0;
        padding-left: 0;
    }

    /* area shells: the outer container carries the page gutter */
    :root body > #main-wrapper > .section-padding > .container {
        padding-right: var(--rsp-gutter) !important;
        padding-left: var(--rsp-gutter) !important;
    }

        :root body > #main-wrapper > .section-padding > .container .container {
            padding-right: 0;
            padding-left: 0;
        }

}

/* member shell: profile card + shortcut tiles */
@media (max-width: 991.98px) {
    :root .rsp-user-shell > .signin,
    :root .rsp-user-shell > .signin + [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    :root .rsp-user-shell > .signin .card-body {
        min-height: 0 !important;
        padding: 14px 16px;
        border-radius: var(--ui-r-box);
    }

    /* avatar on the right, name and counter beside it */
    :root .rsp-profile {
        display: grid;
        grid-template-columns: 84px 1fr;
        grid-template-areas: "avatar name" "avatar flag" "count count";
        align-items: center;
        column-gap: 14px;
        row-gap: 2px;
    }

        :root .rsp-profile > .row {
            display: block;
            margin: 0 !important;
        }

            :root .rsp-profile > .row > [class*="col-"] {
                max-width: none;
                padding: 0;
            }

        :root .rsp-profile > .row:nth-child(1) {
            grid-area: avatar;
        }

        :root .rsp-profile > .row:nth-child(2) {
            grid-area: name;
        }

        :root .rsp-profile > .row:nth-child(3) {
            grid-area: flag;
        }

        :root .rsp-profile > .row:nth-child(4) {
            grid-area: count;
            display: flex;
            margin-top: 24px !important;
        }

            :root .rsp-profile > .row:nth-child(4) > .col-9 {
                flex: 1 1 auto;
                padding-left: 1px !important;
            }

            :root .rsp-profile > .row:nth-child(4) > .col-3 {
                flex: 0 0 84px;
                padding-right: 1px !important;
            }

        :root .rsp-profile label {
            margin: 0;
            font-size: 17px !important;
            text-align: right !important;
        }

        :root .rsp-profile > .row:nth-child(4) label {
            text-align: center !important;
            line-height: 38px !important;
        }

        :root .rsp-profile > .row:nth-child(3) > [class*="col-"] {
            text-align: right !important;
        }

        :root .rsp-profile .contact .top-contacts-image {
            width: 84px;
            height: 84px;
            min-width: 84px;
            min-height: 84px;
        }

        :root .rsp-profile .contact .top-contacts-number {
            left: auto;
            right: 22px;
            bottom: -16px;
        }

    /* shortcut tiles: one swipeable row, so the page content stays near the top */
    :root .rsp-tiles {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start !important;
        gap: 10px;
        margin: 14px 0 6px;
        padding: 6px 2px 10px !important;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        text-align: right !important;
    }

        :root .rsp-tiles::-webkit-scrollbar {
            display: none;
        }

        :root .rsp-tiles .custom-btn-bid {
            flex: 0 0 92px;
            width: 92px;
            min-width: 92px;
            height: 96px;
            margin: 0;
            padding-top: 8px;
            scroll-snap-align: start;
        }

            :root .rsp-tiles .custom-btn-bid:hover {
                transform: none;
            }

            :root .rsp-tiles .custom-btn-bid img {
                width: 42px;
                height: 42px;
            }

            :root .rsp-tiles .custom-btn-bid .title {
                width: auto !important;
                padding: 0 4px;
                font-size: 14px;
                line-height: 1.25;
                color: var(--rsp-ink);
            }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    :root .rsp-user-shell > .signin .card-body {
        min-height: 0 !important;
    }
}


/* --------------------------------------------------------------------------
   4. Shared grid patterns used across many views
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    /* "sidebar | divider | content" (auctions, market, auction details) */
    :root .row > .col-xl-2.col-md-4,
    :root .row > .col-xl-9.col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    :root .row > .col-xl-1.col-md-8 {
        display: none;
    }

    /* sign-in cards: "spacer | card | spacer" */
    :root .row > .col-xl-1.col-md-1.hidden-xs,
    :root .row > .col-xl-8.col-md-8.hidden-xs {
        display: none;
    }

    :root .row > .col-xl-2_5.col-md-2_5 {
        flex: 0 0 100%;
        max-width: 440px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 991.98px) {
    /* "search card | results" (reserved names, member home) */
    :root .row > .col-xl-3.col-md-3.signin,
    :root .row > .col-xl-9.col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
    /* result chips: two per row on tablets instead of three squeezed ones */
    :root .col-xl-9.col-md-9 > .row > .col-md-4.col-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/* --------------------------------------------------------------------------
   5. Category filter (auctions and market): a chip row below 1200px
   -------------------------------------------------------------------------- */

@media (max-width: 1199.98px) {
    :root .col-xl-2.col-md-4 > br {
        display: none;
    }

    :root .col-xl-2.col-md-4 > .card {
        margin-bottom: 14px;
        border: 0;
        box-shadow: none;
    }

        :root .col-xl-2.col-md-4 > .card > .card-header {
            display: none !important;
        }

        :root .col-xl-2.col-md-4 > .card > .card-body {
            display: flex;
            gap: 8px;
            padding: 2px 0 8px !important;
            border: 0 !important;
            background: #fff;
            overflow-x: auto;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

            :root .col-xl-2.col-md-4 > .card > .card-body::-webkit-scrollbar {
                display: none;
            }

            :root .col-xl-2.col-md-4 > .card > .card-body > .row {
                flex: 1 0 auto;
                margin: 0;
            }

                :root .col-xl-2.col-md-4 > .card > .card-body > .row > [class*="col-"] {
                    padding: 0;
                    text-align: center;
                }

            :root .col-xl-2.col-md-4 > .card > .card-body [id^="nav"] {
                margin: 0 !important;
                border-radius: var(--ui-r-ctl) !important;
                background-clip: padding-box;
            }

                :root .col-xl-2.col-md-4 > .card > .card-body [id^="nav"] > .nav-link {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    min-height: 44px;
                    padding: 6px 18px !important;
                    font-size: 17px !important;
                    white-space: nowrap;
                }

            /* the weekday caption sits under its chip */
            :root .col-xl-2.col-md-4 > .card > .card-body > .row > [class*="col-"] > span {
                position: static !important;
                display: block;
                margin-top: 2px;
                font-size: 12px !important;
                line-height: 1.3;
            }
}


/* --------------------------------------------------------------------------
   6. Forms, buttons, tables, dialogs
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    :root body {
        font-size: 16px;
    }

    /* 16px keeps iOS from zooming the page when a field gets focus */
    :root input.form-control,
    :root select.form-control,
    :root textarea,
    :root .input100,
    :root .select2-container .select2-selection--single .select2-selection__rendered {
        font-size: 16px;
    }

    :root textarea {
        width: 100%;
    }

    :root .btn {
        min-width: 96px;
        padding-top: 9px;
        padding-bottom: 9px;
    }

    :root .btn-sm,
    :root .table .btn,
    :root .input-group .btn {
        min-width: 0;
        padding: 7px 12px;
    }

    :root .dropdown-item {
        white-space: normal;
    }

    :root .table th {
        white-space: nowrap;
    }

    :root .table th,
    :root .table td {
        padding: 9px 10px;
        font-size: 14px;
    }

    :root .modal-dialog {
        max-width: none;
        margin: 12px;
    }

    :root .modal-body iframe.FramModel {
        height: 70vh;
    }

    :root .swal2-popup {
        width: auto !important;
        max-width: calc(100vw - 28px);
    }

    :root h2.swal2-title,
    :root .swal2-title {
        font-size: 16px !important;
        line-height: 1.5;
    }

    :root .kt-wizard-v1 .kt-wizard-v1__nav .kt-wizard-v1__nav-items {
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    /* stacked form actions are easier to hit than a row of narrow buttons */
    :root .form-group.text-center > .btn,
    :root .card-footer > .btn,
    :root .modal-footer > .btn {
        display: block;
        width: 100%;
        margin: 8px 0 0;
    }

    :root .card .card-body {
        padding: 14px;
    }

    :root .form-row > [class*="col-md-"],
    :root .form-row > [class*="col-lg-"],
    :root .form-row > [class*="col-xl-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* --------------------------------------------------------------------------
   7. Page-specific fixes
   -------------------------------------------------------------------------- */

/* sign in / recover: the copyright line sits under the form, not on top of it */
@media (max-width: 1199.98px) {
    :root .signin .row[style*="padding-top"] {
        padding-top: 0 !important;
    }

    :root .center-form .form-content {
        min-height: 0 !important;
        padding: 34px 20px 18px;
        border-radius: var(--ui-r-box);
    }

        :root .center-form .form-content > p {
            position: static !important;
            width: auto !important;
            margin: 18px 0 0 !important;
            font-size: 13px;
            line-height: 1.6;
        }

    :root #main-wrapper.signin {
        background-size: contain !important;
        background-position: center top;
    }
}

/* landing page */
@media (max-width: 1199.98px) {
    :root #intro.section-padding {
        padding-top: 0;
    }

    :root .intro .intro-content {
        padding: 0 0 12px;
    }

        :root .intro .intro-content img {
            width: auto;
            height: auto !important;
            max-height: 190px;
        }

    :root .top-Description {
        margin-bottom: 14px;
    }
}

@media (max-width: 991.98px) {
    /* the two top-three lists stack, each chip gets the full row */
    :root #intro .col-md-6.col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* spacer columns that only centre things on desktop */
    :root #intro .col-md-6.col-12 .row > .col-md-3 {
        display: none;
    }

    :root #intro .top-contacts-container {
        height: 76px;
    }
}

/* the camel illustration is a desktop backdrop; on a phone it ended up behind
   the last chips with its edges showing, so it gets its own strip under the
   lists and fades in at the top and the sides */
@media (max-width: 991.98px) {
    :root body > .intro:has(#intro .top-contacts-container) {
        padding-bottom: calc(min(100vw, 640px) * .4) !important;
        background-image: none;
    }

        :root body > .intro:has(#intro .top-contacts-container)::after {
            content: "";
            position: absolute;
            z-index: -1;
            bottom: 0;
            left: 50%;
            width: min(100%, 640px);
            aspect-ratio: 16 / 9;
            transform: translateX(-50%);
            background: url('../images/header_bg.png') center / 100% auto no-repeat;
            -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
            -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to bottom, transparent, #000 45%), linear-gradient(to right, transparent, #000 14%, #000 86%, transparent);
            mask-composite: intersect;
            pointer-events: none;
        }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    :root #intro .col-md-6.col-12 .col-md-6.col-12 {
        flex: 0 0 100%;
        max-width: 460px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 575.98px) {
    :root .intro .intro-content img {
        max-height: 150px;
    }
}

/* about / mission / objectives */
@media (max-width: 991.98px) {
    :root .ab-title {
        font-size: 34px;
    }

    :root .ab-logo {
        height: 96px;
    }

    :root .ab-page .ab-lead {
        margin: 24px 0 28px;
        font-size: 20px;
    }

    :root .ab-cols {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 24px;
    }

    :root .ab-page .ab-statement {
        margin-top: 32px;
        font-size: 24px;
    }

    :root .ab-goals {
        grid-template-columns: 1fr 1fr;
        margin-top: 28px;
    }
}

@media (max-width: 575.98px) {
    :root .ab-page {
        font-size: 16px;
    }

    :root .ab-head {
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 20px;
    }

    :root .ab-title {
        margin-bottom: 12px;
        font-size: 28px;
    }

    :root .ab-logo {
        height: 60px;
    }

    :root .ab-tabs a {
        padding: 6px 14px;
        font-size: 15px;
    }

    :root .ab-page .ab-lead {
        font-size: 18px;
    }

    :root .ab-sec-head h2 {
        font-size: 22px;
    }

    :root .ab-rates {
        gap: 10px;
    }

    :root .ab-rate {
        padding: 14px 16px 16px;
    }

    :root .ab-rate-pct {
        font-size: 44px;
    }

    :root .ab-rate-open {
        font-size: 19px;
    }

    :root .ab-page .ab-statement {
        padding-right: 16px;
        font-size: 20px;
    }

    /* objectives: one per row, icon beside the text */
    :root .ab-goals {
        grid-template-columns: 1fr;
        gap: 20px;
    }

        :root .ab-goals li {
            display: grid;
            grid-template-columns: 48px 1fr;
            gap: 14px;
            padding-top: 18px;
        }

        :root .ab-goals img {
            width: 48px;
            height: 48px;
            margin: 0;
        }
}


/* auction cards and countdown */
@media (max-width: 575.98px) {
    :root .divBids > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    :root .manqy-name,
    :root .fohol-name,
    :root .bkar-name {
        font-size: 24px;
    }
}

/* auction details: countdown, current price, bid-amount buttons */
@media (min-width: 640px) and (max-width: 1199.98px) {
    /* the page script sets 50%, which is too narrow for four dials once the column is full width */
    :root .clock-container {
        width: 100% !important;
        max-width: 460px;
    }
}

@media (max-width: 991.98px) {
    :root #lblBidMaxValue {
        max-width: 100%;
        padding: 0 28px !important;
    }

    :root .bid-name {
        padding: 5px 20px;
    }

    :root .container[style*="margin-left: 10px"] {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 767.98px) {
    /* two amounts per row, each one a full-size tap target */
    :root .row > div:has(> .BidValue-btn) {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 4px 5px;
    }

    :root .row > .col-md-4:empty {
        display: none;
    }

    :root .BidValue-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        min-height: 54px;
        cursor: pointer;
    }

        :root .BidValue-btn > div:first-child {
            width: auto !important;
            margin-left: 8px;
        }

        :root .BidValue-btn .sar-container {
            width: auto;
        }
}

/* registration forms */
@media (max-width: 575.98px) {
    :root .input-group > .form-control,
    :root .input-group > .select2-container {
        min-width: 0;
    }

    :root .select2-container {
        max-width: 100%;
    }
}


/* --------------------------------------------------------------------------
   8. Print: never print the app chrome
   -------------------------------------------------------------------------- */

@media print {
    :root body {
        display: block;
    }

    :root .header.landing_page,
    :root .firtpage-footer {
        display: none !important;
    }
}
