/*
 * SatDL Phase 1 Polish
 * Staging-only visual foundation. Loaded after existing styles.
 * Purpose: modernize shell/header/hero/page cards without changing backend logic.
 */

:root {
    --satdl-surface: #f5f7fb;
    --satdl-surface-2: #eef3f9;
    --satdl-ink: #132238;
    --satdl-muted: #6f7c91;
    --satdl-border: #e4eaf2;
    --satdl-radius-sm: 12px;
    --satdl-radius: 18px;
    --satdl-radius-lg: 24px;
    --satdl-shadow-sm: 0 8px 24px rgba(20, 36, 65, .07);
    --satdl-shadow: 0 18px 48px rgba(20, 36, 65, .10);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--satdl-surface);
    color: var(--satdl-ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Global navigation ---------- */
.header .nav-bar {
    transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

.header .nav-bar:not(.active) {
    background: rgba(5, 30, 78, .70);
    border-bottom: 1px solid rgba(255,255,255,.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.header .nav-bar > .container {
    max-width: 1220px;
}

.header .nav-bar .logo {
    height: 36px;
}

.header .nav-bar .nav-bar-menu .nav-bar-links > :not(:last-child) {
    margin-right: 18px;
}

.header .nav-bar .nav-bar-menu .nav-bar-links .nav-bar-link {
    font-size: 14px;
    letter-spacing: .01em;
}

.menu-search-box {
    min-width: 190px;
}

.menu-search-box .form-control {
    height: 40px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    padding-right: 38px;
    box-shadow: none;
}

.menu-search-box .submit-form {
    top: 8px;
    right: 12px;
    font-size: 16px;
}

/* ---------- Homepage hero ---------- */
.page-slider .header {
    min-height: 720px;
    padding-top: 92px;
    padding-bottom: 68px;
}

.page-slider .header-content {
    width: 100%;
}

.detail-search {
    display: block;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 34px;
}

.detail-search .title {
    margin-top: 92px;
    margin-bottom: 26px;
    font-size: clamp(32px, 3.4vw, 48px);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.detail-search .detail-search-box {
    height: 60px;
    padding: 5px;
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(0,0,0,.16);
}

.detail-search .detail-search-box input {
    width: calc(100% - 58px);
    padding: 0 18px;
    font-size: 17px;
    outline: none;
}

.detail-search .detail-search-box input::placeholder {
    color: #98a1ae;
    font-size: 16px;
}

.detail-search .detail-search-box label {
    width: 50px;
    height: 50px;
    border-radius: 13px;
    font-size: 21px;
}

.header .header-content .header-content-img svg {
    height: 94px;
}

.page-slider .header-content .h2 {
    margin-top: 28px !important;
    margin-bottom: 16px !important;
    font-size: clamp(27px, 2.4vw, 34px);
    font-weight: 700;
    letter-spacing: -.015em;
}

.page-slider .header-content .lead {
    max-width: 680px;
    margin: 0 auto;
    color: rgba(255,255,255,.82) !important;
    font-size: 17px;
    line-height: 1.7;
}

.page-slider .header-content .btn-lg {
    margin-top: 28px;
    min-width: 168px;
    border-radius: 12px;
    font-weight: 600;
}

/* ---------- Inner-page shell ---------- */
.header.v2 {
    height: 258px;
    padding-top: 92px;
    padding-bottom: 64px;
    background-size: cover;
}

.header.v2 .page-title {
    font-size: clamp(27px, 2.6vw, 36px);
    font-weight: 700;
    letter-spacing: -.015em;
}

.page-card {
    border: 1px solid var(--satdl-border);
    border-top: 4px solid var(--primaryColor);
    border-radius: var(--satdl-radius-lg);
    box-shadow: var(--satdl-shadow-sm);
    overflow: hidden;
}

.page-card.margin {
    margin-top: -54px;
}

.page-card .page-card-body {
    padding: 28px;
}

.page-route {
    margin-bottom: 24px;
    color: var(--satdl-muted);
}

.page-route a,
.page-route span {
    font-size: 13px;
}

/* Make old cards feel lighter without changing their logic. */
.products-3,
.all-brands,
.star-series_2,
.newest-files {
    border-color: var(--satdl-border) !important;
    border-radius: var(--satdl-radius) !important;
}

.products-3 .content .conner-cover .equipment-box,
.products-3 .content .conner-cover .equipment-box2 {
    border-radius: 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.products-3 .content .conner-cover .equipment-box:hover,
.products-3 .content .conner-cover .equipment-box2:hover {
    transform: translateY(-2px);
    box-shadow: var(--satdl-shadow-sm);
}

/* ---------- Responsive foundation ---------- */
@media (max-width: 1199.98px) {
    .header .nav-bar > .container {
        max-width: 100%;
        padding-left: 24px;
        padding-right: 24px;
    }

    .menu-search-box {
        min-width: 150px;
    }
}

@media (max-width: 991.98px) {
    .header .nav-bar:not(.active) {
        background: rgba(5, 30, 78, .92);
    }

    .header .nav-bar .logo {
        height: 32px;
    }

    .header .nav-bar .nav-bar-menu .nav-bar-links {
        width: min(88vw, 360px);
        padding: 24px;
    }

    .menu-search-box {
        width: 100%;
        min-width: 0;
    }

    .page-slider .header {
        min-height: 650px;
        padding-top: 78px;
        padding-bottom: 56px;
    }

    .detail-search {
        max-width: 760px;
        padding-left: 18px;
        padding-right: 18px;
    }

    .detail-search .title {
        margin-top: 72px;
    }

    .header.v2 {
        height: 228px;
        padding-top: 82px;
        padding-bottom: 54px;
    }

    .page-card .page-card-body {
        padding: 22px;
    }
}

@media (max-width: 575.98px) {
    .header .nav-bar > .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .page-slider .header {
        min-height: 600px;
        padding-top: 68px;
        padding-bottom: 44px;
    }

    .detail-search {
        padding: 0 12px 28px;
    }

    .detail-search .title {
        margin-top: 58px;
        margin-bottom: 20px;
        font-size: 30px;
    }

    .detail-search .detail-search-box {
        height: 54px;
        border-radius: 14px;
    }

    .detail-search .detail-search-box input {
        width: calc(100% - 52px);
        padding: 0 14px;
        font-size: 15px;
    }

    .detail-search .detail-search-box input::placeholder {
        font-size: 14px;
    }

    .detail-search .detail-search-box label {
        width: 44px;
        height: 44px;
        border-radius: 11px;
        font-size: 18px;
    }

    .header .header-content .header-content-img svg {
        height: 76px;
    }

    .page-slider .header-content .lead {
        font-size: 15px;
        line-height: 1.6;
    }

    .header.v2 {
        height: 205px;
        padding-top: 76px;
        padding-bottom: 44px;
    }

    .page-card.margin {
        margin-top: -38px;
    }

    .page-card .page-card-body {
        padding: 16px;
    }
}

/* ========================================================================== 
   SatDL Phase 2 — Categories / Brand / Product / Download UX
   ========================================================================== */

/* ---------- Shared inner-page refinements ---------- */
.satdl-categories-page .page-card-body,
.satdl-brand-page .page-card-body,
.satdl-product-page .page-card-body {
    padding: 30px;
}

.satdl-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 4px 0 24px;
}

.satdl-breadcrumbs a,
.satdl-breadcrumbs span {
    margin-right: 0;
}

.satdl-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--primaryColor);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* ---------- Category cards ---------- */
.satdl-category-picker,
.satdl-brand-category-picker {
    margin: 0 0 28px;
    padding: 0;
    border: 1px solid var(--satdl-border) !important;
    border-radius: var(--satdl-radius) !important;
    overflow: hidden;
}

.satdl-category-picker .title,
.satdl-brand-category-picker .title {
    padding: 18px 22px;
    border-bottom: 1px solid var(--satdl-border);
}

.satdl-category-picker .title .cover,
.satdl-brand-category-picker .title .cover {
    display: flex;
    align-items: center;
    gap: 12px;
}

.satdl-category-picker .title i,
.satdl-brand-category-picker .title i {
    margin-right: 0;
}

.satdl-category-picker .content,
.satdl-brand-category-picker .content {
    padding: 20px;
}

.satdl-category-grid,
.satdl-brand-category-grid {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.satdl-category-card,
.satdl-brand-category-card {
    width: auto !important;
    min-width: 0 !important;
    height: 166px !important;
    margin: 0 !important;
    padding: 14px 10px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #f7f8fc !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    color: var(--satdl-ink) !important;
    text-decoration: none;
    overflow: hidden;
}

.satdl-category-card img,
.satdl-brand-category-card img {
    display: block;
    width: 100% !important;
    max-width: 135px;
    height: 104px;
    object-fit: contain;
    margin: 0 auto !important;
}

.satdl-category-card div,
.satdl-brand-category-card div {
    min-height: 20px;
    margin: 0 !important;
    color: inherit !important;
    font-size: 13px;
    line-height: 1.35;
    text-align: center;
}

.satdl-category-card.active-box,
.satdl-brand-category-card.active-box {
    background: linear-gradient(145deg, #4c4eb4, #595bc2) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(76, 78, 180, .18);
}

.satdl-category-card.disabled {
    opacity: .55;
    filter: grayscale(.25);
}

/* ---------- A–Z brand finder ---------- */
.satdl-categories-body .all-brands {
    margin-bottom: 30px !important;
    overflow: hidden;
}

.satdl-categories-body .all-brands .title {
    padding: 16px 22px;
}

.satdl-categories-body .all-brands .alphabet {
    height: auto;
    min-height: 50px;
    padding: 7px 16px;
    gap: 5px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.satdl-categories-body .all-brands .alphabet .item {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    scroll-snap-align: start;
}

.satdl-categories-body .all-brands .alphabet .item:first-child {
    flex-basis: 42px;
    width: 42px;
}

.satdl-categories-body .all-brands .brands-body {
    padding: 18px 8px 18px 20px;
}

.satdl-categories-body .all-brands .brands-body .brand-content {
    gap: 10px 14px;
}

.satdl-categories-body .all-brands .brands-body .brand-content .a-item {
    margin: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* ---------- Brand summary and panels ---------- */
.satdl-brand-summary {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: center;
    gap: 30px;
    margin-bottom: 26px;
    padding: 24px;
    background: linear-gradient(135deg, #f9fbff 0%, #f4f7fc 100%);
    border: 1px solid var(--satdl-border);
    border-radius: var(--satdl-radius);
}

.satdl-brand-summary-logo {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 16px;
}

.satdl-brand-summary-logo img {
    display: block;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.satdl-brand-summary-copy h1 {
    margin: 8px 0 12px;
    color: var(--satdl-ink);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.satdl-brand-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.satdl-brand-summary-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    background: #fff;
    border: 1px solid var(--satdl-border);
    border-radius: 999px;
    color: var(--satdl-muted);
    font-size: 13px;
}

.satdl-brand-summary-meta strong {
    margin-right: 4px;
    color: var(--satdl-ink);
}

.satdl-series-panel,
.satdl-products-panel {
    margin-bottom: 28px !important;
    border-radius: var(--satdl-radius) !important;
    overflow: hidden;
}

.satdl-series-panel {
    background: #4b4ca8;
}

.satdl-series-panel .title,
.satdl-products-panel .title {
    min-height: 64px;
    padding: 12px 20px;
}

.satdl-series-panel .title .cover,
.satdl-products-panel .title .cover {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.satdl-series-panel .title i,
.satdl-products-panel .title i {
    margin-right: 10px;
}

.satdl-series-panel .title .search-box,
.satdl-products-panel .title .search-box {
    width: min(340px, 100%);
    padding: 7px 5px;
}

.satdl-series-panel .title .search-box input,
.satdl-products-panel .title .search-box input {
    width: calc(100% - 50px) !important;
    margin-left: 14px;
}

.satdl-series-panel .content,
.satdl-products-panel .brands-body_2 {
    gap: 10px 12px;
    padding: 18px !important;
}

.satdl-series-panel .content .a-item,
.satdl-products-panel .brand-content .a-item {
    min-height: 46px;
    height: auto;
    margin: 0 !important;
    display: flex;
    align-items: center;
    border: 1px solid #e7e9f2;
}

/* ---------- Product page shell ---------- */
.header.v2.satdl-product-header {
    height: 96px !important;
    min-height: 96px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.satdl-product-page .page-card.margin {
    margin-top: 26px;
}

.satdl-product-card {
    margin-bottom: 22px !important;
}

.satdl-product-hero {
    padding: 8px 0 14px;
}

.satdl-product-hero > .row {
    align-items: center;
}

.satdl-product-hero .product-detail {
    padding: 20px 8px 10px 0;
}

.satdl-product-hero .product-detail h1 {
    margin: 0 0 8px;
    color: var(--satdl-ink);
    font-size: clamp(34px, 3.7vw, 48px);
    line-height: 1.08;
    font-weight: 750;
    letter-spacing: -.035em;
}

.satdl-product-hero .product-detail .subtitle {
    margin-bottom: 18px;
    color: #3d4b61;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.2;
}

.satdl-product-meta > div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin-bottom: 0 !important;
    padding: 7px 12px;
    background: #f4f7fb;
    border: 1px solid var(--satdl-border);
    border-radius: 999px;
}

.satdl-product-meta .satdl-meta-value,
.satdl-product-meta .satdl-meta-label {
    margin-right: 0 !important;
    font-size: 13px !important;
}

.satdl-product-meta .satdl-meta-value {
    color: var(--primaryColor) !important;
    font-weight: 700;
}

.satdl-product-meta .satdl-meta-label {
    color: var(--satdl-muted) !important;
}

.satdl-product-hero .product-detail .button-group {
    margin: 22px 0 8px;
    gap: 10px;
}

.satdl-product-hero .product-detail .button-group a {
    width: auto;
    min-width: 170px;
    height: 46px;
    margin: 0;
    padding: 0 18px;
    border-radius: 12px;
    font-weight: 650;
}

.satdl-product-image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    padding: 14px;
}

.satdl-product-image {
    display: block;
    width: 100%;
    max-width: 390px;
    max-height: 300px;
    object-fit: contain;
    margin: 0 auto;
}

.satdl-product-share {
    padding-top: 12px;
    border-top: 1px solid var(--satdl-border);
}

.satdl-product-share .share {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}

.satdl-product-share .share a {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0 !important;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 15px;
}

/* ---------- Download section ---------- */
.satdl-download-section {
    margin-top: 22px;
    margin-bottom: 34px;
    scroll-margin-top: 90px;
}

.satdl-download-section .new-title {
    padding: 14px 4px;
}

.satdl-download-section .new-title .cover {
    display: flex;
    align-items: center;
}

.satdl-download-section .new-title i {
    margin-right: 10px;
}

.satdl-download-section .content {
    border: 1px solid var(--satdl-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(20, 36, 65, .05);
}

.satdl-download-section .content .content-head {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid var(--satdl-border);
}

.satdl-download-section .content .content-head span {
    flex: 0 0 auto;
    padding: 12px 14px 9px;
}

.satdl-download-table-wrap {
    margin: 0 !important;
    overflow: hidden;
}

.satdl-download-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
}

.satdl-download-table thead {
    background: #42449f !important;
}

.satdl-download-table thead th {
    padding: 11px 10px !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: .035em;
    text-align: center;
    text-transform: uppercase;
}

.satdl-download-table thead th:nth-child(1) { width: 16%; }
.satdl-download-table thead th:nth-child(2) { width: 30%; text-align: left; }
.satdl-download-table thead th:nth-child(3) { width: 11%; }
.satdl-download-table thead th:nth-child(4) { width: 14%; }
.satdl-download-table thead th:nth-child(5) { width: 13%; }
.satdl-download-table thead th:nth-child(6) { width: 16%; }

.satdl-download-table tbody td {
    padding: 16px 10px !important;
    vertical-align: middle;
    border-bottom: 1px solid #edf0f5 !important;
    font-size: 13px !important;
    text-align: center;
}

.satdl-download-table tbody tr:last-child td {
    border-bottom: 0 !important;
}

.satdl-download-table .satdl-file-brand img {
    display: block;
    width: 100% !important;
    max-width: 105px;
    max-height: 62px;
    object-fit: contain;
    margin: 0 auto !important;
}

.satdl-download-table .satdl-file-main {
    text-align: left;
}

.satdl-download-table .satdl-file-main h6 {
    margin: 0 0 5px;
    color: #3f439f;
    font-size: 14px;
    line-height: 1.35;
}

.satdl-download-table .satdl-file-main p {
    color: var(--satdl-muted);
    font-size: 12px;
    line-height: 1.45;
}

.satdl-download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f9a72c;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.satdl-download-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(249, 167, 44, .24);
    opacity: .94;
}

.satdl-empty-state {
    padding: 28px;
    color: var(--satdl-muted);
    text-align: center;
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    .satdl-category-grid,
    .satdl-brand-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .satdl-brand-summary {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 22px;
    }

    .satdl-brand-summary-logo {
        min-height: 112px;
    }

    .satdl-series-panel .title,
    .satdl-products-panel .title {
        align-items: stretch;
        gap: 12px;
    }

    .satdl-series-panel .title .search-box,
    .satdl-products-panel .title .search-box {
        width: 100%;
    }

    .satdl-product-image-wrap {
        min-height: 240px;
    }

    .satdl-download-table thead th:nth-child(4),
    .satdl-download-table tbody .satdl-file-uploader {
        display: none;
    }

    .satdl-download-table thead th:nth-child(1) { width: 18%; }
    .satdl-download-table thead th:nth-child(2) { width: 34%; }
    .satdl-download-table thead th:nth-child(3) { width: 13%; }
    .satdl-download-table thead th:nth-child(5) { width: 15%; }
    .satdl-download-table thead th:nth-child(6) { width: 20%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
    .satdl-categories-page .page-card-body,
    .satdl-brand-page .page-card-body,
    .satdl-product-page .page-card-body {
        padding: 12px !important;
    }

    .satdl-breadcrumbs {
        gap: 5px;
        margin: 0 0 16px;
        padding: 0 2px;
        font-size: 11px;
        line-height: 1.55;
    }

    .satdl-breadcrumbs a,
    .satdl-breadcrumbs span {
        font-size: 11px;
    }

    .satdl-category-picker,
    .satdl-brand-category-picker {
        margin-bottom: 18px;
        border-radius: 16px !important;
    }

    .satdl-category-picker .title,
    .satdl-brand-category-picker .title {
        padding: 15px 16px;
    }

    .satdl-category-picker .content,
    .satdl-brand-category-picker .content {
        padding: 12px;
    }

    .satdl-category-grid,
    .satdl-brand-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .satdl-category-card,
    .satdl-brand-category-card {
        height: 132px !important;
        padding: 10px 7px !important;
        gap: 6px;
        border-radius: 14px !important;
    }

    .satdl-category-card img,
    .satdl-brand-category-card img {
        max-width: 110px;
        height: 84px;
    }

    .satdl-category-card div,
    .satdl-brand-category-card div {
        font-size: 11.5px;
    }

    .satdl-categories-body .all-brands .title {
        align-items: stretch;
        padding: 14px;
        text-align: left;
    }

    .satdl-categories-body .all-brands .title .cover {
        width: 100%;
        margin-bottom: 4px;
    }

    #allBrands .brands-search {
        width: 100% !important;
    }

    .satdl-categories-body .all-brands .alphabet {
        display: flex !important;
        flex-wrap: nowrap !important;
        text-align: left !important;
        padding: 7px 10px;
    }

    .satdl-categories-body .all-brands .alphabet .item {
        display: inline-flex !important;
        flex: 0 0 34px !important;
        width: 34px !important;
        margin: 0 !important;
    }

    .satdl-categories-body .all-brands .brands-body {
        padding: 14px 10px;
    }

    .satdl-categories-body .all-brands .brands-body .brand-content {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .satdl-brand-summary {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 16px;
        padding: 16px;
        text-align: center;
    }

    .satdl-brand-summary-logo {
        min-height: 92px;
        padding: 10px;
    }

    .satdl-brand-summary-logo img {
        max-height: 82px;
    }

    .satdl-brand-summary-copy h1 {
        margin: 7px 0 10px;
        font-size: 28px;
    }

    .satdl-brand-summary-meta {
        justify-content: center;
    }

    .satdl-brand-summary-meta span {
        min-height: 31px;
        padding: 5px 9px;
        font-size: 11.5px;
    }

    .satdl-series-panel,
    .satdl-products-panel {
        margin-bottom: 18px !important;
        border-radius: 16px !important;
    }

    .satdl-series-panel .title,
    .satdl-products-panel .title {
        padding: 13px 14px;
        font-size: 16px;
        text-align: left;
    }

    .satdl-series-panel .title .cover,
    .satdl-products-panel .title .cover {
        width: 100%;
        margin-bottom: 4px;
    }

    .satdl-series-panel .content {
        grid-template-columns: 1fr !important;
        padding: 12px !important;
    }

    .satdl-products-panel .brands-body_2 {
        padding: 12px !important;
    }

    .satdl-products-panel .brand-content {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .header.v2.satdl-product-header {
        height: 72px !important;
        min-height: 72px;
    }

    .satdl-product-page .page-card.margin {
        margin-top: 12px;
    }

    .satdl-product-card {
        border-top-width: 3px;
    }

    .satdl-product-hero {
        padding-top: 0;
    }

    .satdl-product-hero .product-detail {
        padding: 8px 0 0;
        text-align: center;
    }

    .satdl-product-hero .product-detail h1 {
        margin-top: 0;
        font-size: 28px !important;
        line-height: 1.12;
    }

    .satdl-product-hero .product-detail .subtitle {
        margin-bottom: 14px;
        font-size: 24px;
    }

    .satdl-product-meta > div {
        justify-content: center;
        max-width: 100%;
        margin: 0 auto !important;
    }

    .satdl-product-hero .product-detail .button-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin: 18px 0 10px;
    }

    .satdl-product-hero .product-detail .button-group a {
        width: 100%;
        min-width: 0;
        height: 44px;
        margin: 0 !important;
    }

    .satdl-product-image-wrap {
        min-height: 0;
        padding: 6px 10px 10px;
    }

    .satdl-product-image {
        max-width: 270px;
        max-height: 215px;
    }

    .satdl-product-share {
        margin-top: 10px !important;
        padding-top: 12px;
    }

    .satdl-product-share .share {
        justify-content: center;
    }

    .satdl-product-share .share a {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .satdl-download-section {
        margin-top: 16px;
        margin-bottom: 24px;
        scroll-margin-top: 76px;
    }

    .satdl-download-section .new-title {
        align-items: flex-start;
        padding: 12px 2px;
    }

    .satdl-download-section .new-title .cover {
        margin-bottom: 0 !important;
    }

    .satdl-download-section .content .content-head {
        padding: 0 8px;
    }

    .satdl-download-table-wrap {
        overflow: visible !important;
    }

    .satdl-download-table,
    .satdl-download-table tbody {
        display: block !important;
        width: 100%;
    }

    .satdl-download-table thead {
        display: none !important;
    }

    .satdl-download-table tbody {
        padding: 10px;
        background: #f7f9fc;
    }

    .satdl-download-table .satdl-download-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        margin: 0 0 12px;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--satdl-border);
        border-radius: 14px;
        box-shadow: 0 6px 18px rgba(20, 36, 65, .05);
    }

    .satdl-download-table .satdl-download-row:last-child {
        margin-bottom: 0;
    }

    .satdl-download-table tbody td {
        display: block !important;
        width: auto !important;
        min-width: 0;
        padding: 9px 8px !important;
        border-bottom: 0 !important;
        text-align: left !important;
    }

    .satdl-download-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #929bad;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .satdl-download-table .satdl-file-brand {
        display: none !important;
    }

    .satdl-download-table .satdl-file-main {
        grid-column: 1 / -1;
        padding-top: 2px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid #eef1f5 !important;
    }

    .satdl-download-table .satdl-file-main::before {
        display: none;
    }

    .satdl-download-table .satdl-file-main h6 {
        margin-bottom: 4px;
        font-size: 14px;
    }

    .satdl-download-table .satdl-file-main p {
        font-size: 11.5px;
    }

    .satdl-download-table .satdl-file-uploader {
        display: block !important;
    }

    .satdl-download-table .satdl-file-action {
        grid-column: 1 / -1;
        padding-top: 10px !important;
    }

    .satdl-download-table .satdl-file-action::before {
        display: none;
    }

    .satdl-download-button {
        width: 100%;
        min-height: 42px;
        font-size: 13px;
    }

    /* Homepage: expose more useful content in the first scroll on small screens. */
    .page-slider .header {
        min-height: 540px;
        padding-bottom: 34px;
    }

    .detail-search .title {
        margin-top: 46px;
        font-size: 28px;
    }

    .header .header-content .header-content-img svg {
        height: 68px;
    }

    .page-slider .header-content .h2 {
        margin-top: 20px !important;
        font-size: 25px;
    }

    .page-slider .header-content .lead {
        font-size: 14px;
        line-height: 1.55;
    }

    .page-slider .header-content .btn-lg {
        margin-top: 20px;
    }
}

/* ========================================================================== 
   SatDL Phase 3 — Content hierarchy / SEO presentation / product information
   ========================================================================== */

/* ---------- Homepage: make SatDL read as a firmware portal, not generic storage ---------- */
.page-slider .header {
    min-height: 650px;
    padding-bottom: 52px;
}

.satdl-home-search .title {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.satdl-hero-icon {
    margin-top: 6px;
}

.header .header-content .satdl-hero-icon svg {
    height: 76px;
    color: #0a67d8;
}

.satdl-hero-heading {
    font-size: clamp(25px, 2.3vw, 34px) !important;
}

.satdl-hero-description {
    max-width: 760px !important;
}

.satdl-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.satdl-hero-actions .btn {
    min-width: 190px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 650;
}

#newestFiles {
    padding-top: 48px;
}

#newestFiles .newest-files .new-title .cover .t1 {
    font-weight: 700;
}

/* ---------- Product semantic/content polish ---------- */
.satdl-product-intro {
    max-width: 620px;
    margin: 16px 0 0;
    color: var(--satdl-muted);
    font-size: 14px;
    line-height: 1.7;
}

.satdl-product-info {
    margin: 34px 0;
    scroll-margin-top: 96px;
}

.satdl-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.satdl-section-heading > i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff4e3;
    color: #f5a623;
    font-size: 17px;
}

.satdl-section-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--satdl-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.satdl-section-heading h2 {
    margin: 0;
    color: var(--satdl-ink);
    font-size: 22px;
    line-height: 1.25;
}

.satdl-product-info-card {
    padding: 22px;
    border: 1px solid var(--satdl-border);
    border-radius: var(--satdl-radius);
    background: #fff;
    color: #435069;
    line-height: 1.8;
}

.satdl-product-description {
    white-space: normal;
}

.satdl-download-notes {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--satdl-border);
}

.satdl-download-notes h3 {
    margin: 0 0 8px;
    color: var(--satdl-ink);
    font-size: 16px;
}

.satdl-related-guide {
    display: grid;
    grid-template-columns: minmax(150px, 220px) 1fr;
    gap: 22px;
    margin-top: 16px;
    padding: 16px;
    border: 1px solid var(--satdl-border);
    border-radius: var(--satdl-radius);
    background: #f8faff;
}

.satdl-related-guide-media {
    min-height: 130px;
    border-radius: 14px;
    overflow: hidden;
    background: #eef3f9;
}

.satdl-related-guide-media img {
    width: 100%;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
}

.satdl-related-guide-copy {
    align-self: center;
}

.satdl-related-guide-copy h3 {
    margin: 8px 0;
    color: var(--satdl-ink);
    font-size: 20px;
}

.satdl-related-guide-copy p {
    margin: 0 0 10px;
    color: var(--satdl-muted);
    line-height: 1.65;
}

.satdl-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primaryColor);
    font-weight: 700;
    text-decoration: none;
}

.satdl-text-link:hover {
    text-decoration: underline;
}

/* Compact meta chips when Phase 3 adds update/category context. */
.satdl-product-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.satdl-product-meta > div {
    margin: 0 !important;
}

/* ---------- Tablet ---------- */
@media (max-width: 991.98px) {
    .page-slider .header {
        min-height: 610px;
    }

    .satdl-related-guide {
        grid-template-columns: 180px 1fr;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 575.98px) {
    .page-slider .header {
        min-height: 560px;
        padding-bottom: 34px;
    }

    .satdl-home-search .title {
        font-size: 27px;
        line-height: 1.22;
    }

    .header .header-content .satdl-hero-icon svg {
        height: 62px;
    }

    .satdl-hero-heading {
        margin-top: 18px !important;
        font-size: 23px !important;
        line-height: 1.3;
    }

    .satdl-hero-description {
        font-size: 14px !important;
        line-height: 1.65 !important;
    }

    .satdl-hero-actions {
        flex-direction: column;
        margin-top: 20px;
    }

    .satdl-hero-actions .btn {
        width: min(100%, 280px);
        min-height: 46px;
        margin-top: 0 !important;
    }

    #newestFiles {
        padding-top: 28px;
    }

    .satdl-product-intro {
        margin: 12px auto 0;
        text-align: center;
        font-size: 13px;
        line-height: 1.6;
    }

    .satdl-section-heading {
        align-items: flex-start;
    }

    .satdl-section-heading h2 {
        font-size: 19px;
    }

    .satdl-product-info-card {
        padding: 16px;
        font-size: 14px;
    }

    .satdl-related-guide {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px;
    }

    .satdl-related-guide-media,
    .satdl-related-guide-media img {
        min-height: 160px;
    }

    .satdl-related-guide-copy h3 {
        font-size: 18px;
    }
}

/* ========================================================================== 
   SatDL Phase 4 — Content cleanup / mobile navigation / compact discovery UX
   ========================================================================== */

/* Never call an external placeholder when no hero slideshow is configured. */
.satdl-fallback-hero-bg {
    background:
        radial-gradient(circle at 22% 28%, rgba(20, 105, 215, .22), transparent 30%),
        radial-gradient(circle at 78% 70%, rgba(54, 78, 170, .22), transparent 34%),
        linear-gradient(135deg, #061d4b 0%, #0a2e72 100%);
}

/* ---------- Feature, blog and FAQ content ---------- */
#features .feat-card {
    border: 1px solid var(--satdl-border);
    border-radius: var(--satdl-radius);
    box-shadow: var(--satdl-shadow-sm) !important;
}

#features .feature {
    height: 100%;
    padding: 24px 20px;
}

#features .feature-img img {
    max-width: 112px;
    height: auto;
}

#features .feature-title {
    color: var(--satdl-ink);
    font-size: 19px;
    line-height: 1.3;
}

#features .feature-text {
    font-size: 14px;
    line-height: 1.7;
}

#faq .accordion {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#faq .accordion-item {
    overflow: hidden;
    border-radius: 12px;
}

#faq .accordion-button,
#faq .accordion-body {
    line-height: 1.65;
}

/* ---------- Mobile off-canvas navigation ---------- */
.satdl-mobile-menu-head {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -4px -4px 14px;
    padding: 4px 4px 16px;
    border-bottom: 1px solid #edf1f6;
}

.satdl-mobile-menu-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.satdl-mobile-menu-heading strong {
    color: var(--satdl-ink);
    font-size: 17px;
}

.satdl-mobile-menu-eyebrow {
    color: #8a95a7;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .header .nav-bar .nav-bar-menu .overlay {
        background: rgba(5, 19, 48, .58);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    .header .nav-bar .nav-bar-menu .nav-bar-links {
        width: min(84vw, 320px) !important;
        max-width: 320px;
        padding: 20px !important;
        border-left: 1px solid #e7ecf3;
        box-shadow: -24px 0 60px rgba(6, 22, 55, .18);
    }

    .header .nav-bar .nav-bar-menu .nav-bar-links .nav-bar-link {
        margin: 2px 0 !important;
        padding: 9px 0;
        font-size: 15px;
        line-height: 1.35;
    }

    .header .nav-bar .nav-bar-menu .nav-bar-links .nav-bar-link.btn {
        margin-top: 8px !important;
        padding: 10px 14px;
        border-radius: 10px;
    }

    .header .nav-bar .nav-bar-menu .language {
        margin: 8px 0 4px !important;
        padding: 10px 0;
        border-top: 1px solid #edf1f6;
        border-bottom: 1px solid #edf1f6;
    }

    .header .nav-bar .nav-bar-menu .language button {
        width: 100%;
        justify-content: flex-start;
        color: var(--satdl-ink) !important;
    }

    .header .nav-bar .nav-bar-menu .menu-search-box .form-control {
        height: 44px;
        border-color: #dfe6ef;
        background: #f8faff;
        color: var(--satdl-ink);
    }

    .header .nav-bar .nav-bar-menu .menu-search-box .submit-form {
        top: 10px;
    }
}

/* ---------- Latest downloads: denser task-oriented mobile cards ---------- */
.newest-files .pagination-container {
    padding: 14px 12px 18px;
}

.newest-files .pagination-container .pagination {
    gap: 3px;
    margin: 0;
}

.newest-files .pagination-container .page-link {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0 !important;
    padding: 0 7px;
    border-radius: 8px !important;
    font-size: 12px;
}

@media (max-width: 575.98px) {
    .newest-files .new-content table tbody .satdl-latest-file-row {
        display: grid !important;
        grid-template-columns: 62px repeat(3, minmax(0, 1fr));
        gap: 0 8px;
        align-items: center;
        margin: 0 10px 10px;
        padding: 12px;
        border: 1px solid var(--satdl-border) !important;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(20, 36, 65, .045);
    }

    .newest-files .new-content table tbody .satdl-latest-file-row td {
        width: auto !important;
        min-width: 0;
        margin: 0 !important;
        padding: 4px 0 !important;
        border: 0 !important;
        text-align: left !important;
    }

    .newest-files .satdl-latest-brand {
        grid-column: 1;
        grid-row: 1 / 3;
        align-self: start;
    }

    .newest-files .satdl-latest-brand-logo {
        width: 54px !important;
        max-height: 54px;
        margin: 0 !important;
        object-fit: contain;
    }

    .newest-files .satdl-latest-product {
        grid-column: 2 / -1;
        grid-row: 1;
    }

    .newest-files .satdl-latest-product p {
        margin: 0 0 2px !important;
        font-size: 12px !important;
        line-height: 1.35;
    }

    .newest-files .satdl-latest-title {
        grid-column: 2 / -1;
        grid-row: 2;
        padding-bottom: 9px !important;
    }

    .newest-files .satdl-latest-title .break-line {
        display: block;
        width: 100%;
        margin: 0 !important;
        text-align: left !important;
        font-size: 12px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .newest-files .satdl-latest-title p.break-line {
        display: none;
    }

    .newest-files .satdl-latest-meta {
        grid-row: 3;
        padding-top: 9px !important;
        border-top: 1px solid #eef2f6 !important;
    }

    .newest-files .satdl-latest-size { grid-column: 2; }
    .newest-files .satdl-latest-uploader { grid-column: 3; }
    .newest-files .satdl-latest-date { grid-column: 4; }

    .newest-files .satdl-latest-meta::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: #9aa3b2;
        font-size: 8.5px;
        font-weight: 700;
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .newest-files .satdl-latest-meta p {
        margin: 0 !important;
        text-align: left !important;
        color: #465269;
        font-size: 9.5px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .newest-files .pagination-container {
        padding: 12px 8px 16px;
    }

    .newest-files .pagination-container ul {
        gap: 2px;
    }

    .newest-files .pagination-container .page-link {
        min-width: 30px;
        height: 30px;
        padding: 0 5px;
        font-size: 11px;
    }

    /* Statistics: 2x2 instead of one very tall mobile column. */
    #information .site-information {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        height: auto !important;
        padding: 18px 10px !important;
        border-radius: 24px !important;
    }

    #information .site-information .info-item {
        margin: 0 !important;
        padding: 18px 8px;
    }

    #information .site-information .info-item div:first-child {
        margin-bottom: 8px;
    }

    #information .site-information .info-item div:first-child i {
        font-size: 24px;
    }

    #information .site-information .info-item div:nth-child(2) {
        margin-bottom: 2px;
        font-size: 24px;
        letter-spacing: 1px;
    }

    #information .site-information .info-item div:last-child {
        font-size: 11px;
    }

    /* Content sections: reduce excessive vertical length on narrow screens. */
    #features .feature {
        padding: 18px 16px;
    }

    #features .feature-img img {
        max-width: 88px;
    }

    #features .feature-title {
        font-size: 17px;
    }

    #features .feature-text {
        font-size: 13px;
        line-height: 1.6;
    }
}


/* ========================================================================== 
   SatDL Phase 4.1 — corrective QA patch
   Mobile menu reliability / search UX / placeholder cleanup
   ========================================================================== */

/* Mobile menu: make the off-canvas a true viewport panel and keep Close usable. */
.satdl-mobile-menu-head {
    display: flex !important;
}

@media (max-width: 991.98px) {
    .header .nav-bar .nav-bar-menu {
        inset: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
    }

    .header .nav-bar .nav-bar-menu .overlay {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
    }

    .header .nav-bar .nav-bar-menu .nav-bar-links {
        position: fixed !important;
        top: 0 !important;
        right: -340px;
        bottom: 0 !important;
        width: min(86vw, 340px) !important;
        max-width: 340px;
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh;
        padding: 0 20px 24px !important;
        background: #fff !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .header .nav-bar .nav-bar-menu.active .nav-bar-links {
        right: 0 !important;
    }

    .satdl-mobile-menu-head {
        position: sticky;
        top: 0;
        z-index: 5;
        margin: 0 -20px 14px;
        padding: 16px 20px 14px;
        background: #fff;
        border-bottom: 1px solid #edf1f6;
    }

    .satdl-mobile-menu-close {
        display: block !important;
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        margin: 0;
        padding: 9px;
        border-radius: 10px;
        opacity: .72;
    }

    .satdl-mobile-menu-close:hover,
    .satdl-mobile-menu-close:focus {
        background-color: #f2f5f9;
        opacity: 1;
        box-shadow: none;
    }

    body.satdl-menu-open {
        overflow: hidden !important;
        overscroll-behavior: none;
    }
}

/* Search results: compact, task-first filters and a real submit control. */
.satdl-search-page .page-card-body {
    padding-top: 28px;
}

.satdl-search-query {
    font-size: 14px;
    opacity: .9;
}

.satdl-search-filters {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
    padding: 28px !important;
    border-radius: 22px;
}

.satdl-search-filter-heading {
    margin-bottom: 22px;
}

.satdl-search-filter-heading h3 {
    font-size: 25px;
}

.satdl-search-filter-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.satdl-search-label {
    display: block;
    margin-bottom: 7px;
    color: rgba(255,255,255,.94);
    font-size: 13px;
    font-weight: 600;
}

.satdl-search-filters .selectSearch {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    border-radius: 12px;
    background: #fff;
    color: var(--satdl-ink);
    box-shadow: none;
}

.satdl-search-filters select.selectSearch {
    padding-right: 36px;
}

.satdl-search-date {
    min-width: 0;
}

.satdl-search-submit {
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    background: #ffad26;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(255, 173, 38, .24);
}

.satdl-search-submit:hover,
.satdl-search-submit:focus {
    background: #f59c0a;
    color: #fff;
}

.satdl-search-results-note {
    max-width: 980px;
    margin: -4px auto 18px;
    padding: 10px 14px;
    border: 1px solid var(--satdl-border);
    border-radius: 12px;
    background: #fff;
    color: var(--satdl-muted);
    font-size: 13px;
}

@media (max-width: 575.98px) {
    .satdl-search-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .satdl-search-page .page-card-body {
        padding: 10px !important;
    }

    .satdl-search-filters {
        margin-bottom: 16px !important;
        padding: 20px 16px !important;
        border-radius: 18px;
    }

    .satdl-search-filter-heading {
        margin-bottom: 16px;
    }

    .satdl-search-filter-heading h3 {
        margin-bottom: 4px !important;
        font-size: 22px;
    }

    .satdl-search-filter-heading p {
        font-size: 12px;
        line-height: 1.45;
    }

    .satdl-search-filters .row {
        --bs-gutter-x: 10px;
        --bs-gutter-y: 12px;
    }

    .satdl-search-filters .selectSearch,
    .satdl-search-submit {
        height: 44px;
        border-radius: 11px;
        font-size: 13px;
    }

    .satdl-search-label {
        margin-bottom: 5px;
        font-size: 12px;
    }
}

/* Top brands: replace generic BRAND NAME artwork with a clean text fallback. */
.satdl-brand-logo-fallback {
    width: 94px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 1px solid #e2e7ef;
    border-radius: 12px;
    background: linear-gradient(145deg, #f8faff, #eef3fa);
    color: #1d3f82;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .06em;
}

/* Desktop alphabets should wrap cleanly instead of showing a horizontal scrollbar. */
@media (min-width: 992px) {
    .satdl-categories-body .all-brands .alphabet {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        overflow: visible;
        scroll-snap-type: none;
    }
}

/* Keep horizontal swipe on compact screens without a visually heavy scrollbar. */
@media (max-width: 991.98px) {
    .satdl-categories-body .all-brands .alphabet {
        scrollbar-width: none;
    }
    .satdl-categories-body .all-brands .alphabet::-webkit-scrollbar {
        display: none;
    }
}

/* Preserve visual word spacing where legacy title markup uses adjacent spans. */
.satdl-download-section .new-title .cover .t1 {
    margin-right: .28em;
}


/* ========================================================================== 
   SatDL Phase 4.2 — regression hotfix
   Prevent mobile-only menu heading from leaking into desktop, ensure body
   scroll recovers at desktop widths, and polish Download Files spacing.
   ========================================================================== */

/* Phase 4.1 used display:flex !important globally, which overrode Bootstrap's
   d-lg-none rule. Keep the mobile menu header strictly mobile-only. */
@media (min-width: 992px) {
    .satdl-mobile-menu-head {
        display: none !important;
    }

    body.satdl-menu-open {
        overflow: auto !important;
        overscroll-behavior: auto !important;
    }
}

@media (max-width: 991.98px) {
    .satdl-mobile-menu-head {
        display: flex !important;
    }
}

/* The product heading uses separate spans for Download / Files. */
.satdl-download-section .new-title .cover .t2 {
    margin-left: .28em;
}
