:root {
    --staps-navy: #071a3a;
    --staps-navy-2: #102a54;
    --staps-gold: #f6b343;
    --staps-teal: #17a2a4;
    --staps-green: #16a66a;
    --staps-red: #d94f54;
    --staps-ink: #15233a;
    --staps-muted: #667085;
    --staps-border: #dbe4f0;
    --staps-panel: #ffffff;
    --staps-bg: #f3f6fb;
    --staps-soft: #eaf0f8;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    background: var(--staps-bg);
    color: var(--staps-ink);
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
}

img {
    height: auto;
}

a,
button,
input,
select,
textarea {
    overflow-wrap: anywhere;
}

.staps-navbar {
    min-height: 70px;
    background: linear-gradient(90deg, var(--staps-navy), var(--staps-navy-2));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 26px;
    box-shadow: 0 10px 28px rgba(7, 26, 58, 0.18);
    position: sticky;
    top: 0;
    z-index: 30;
}

.staps-brand,
.staps-nav-link {
    color: #ffffff;
    text-decoration: none;
}

.staps-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 800;
    padding: 8px 12px;
}

.staps-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 19px;
    min-width: 0;
}

.staps-brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staps-brand-logo {
    width: 46px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    padding: 3px;
    box-shadow: inset 0 -2px 0 rgba(7, 26, 58, 0.08);
}

.staps-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    background: var(--staps-gold);
    color: var(--staps-navy);
    box-shadow: inset 0 -2px 0 rgba(7, 26, 58, 0.18);
}

.staps-navbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.staps-nav-link {
    font-size: 14px;
    opacity: 0.92;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
}

.staps-nav-link:hover,
.staps-brand:hover {
    color: #ffffff;
    opacity: 1;
}

.staps-district-picker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    min-width: 0;
}

.staps-district-picker select {
    max-width: 230px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    min-width: 0;
}

.staps-district-picker option {
    color: var(--staps-ink);
}

.staps-shell {
    min-height: calc(100vh - 70px);
}

.staps-main {
    margin-left: 270px;
    padding: 30px;
    min-width: 0;
}

.staps-narrow {
    max-width: 920px;
}

.staps-page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    min-width: 0;
}

.staps-page-title h1 {
    font-size: 30px;
    margin: 0;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.staps-page-title p {
    color: var(--staps-muted);
    margin: 8px 0 0;
}

.staps-card {
    background: var(--staps-panel);
    border: 1px solid var(--staps-border);
    border-radius: 8px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(7, 26, 58, 0.07);
    min-width: 0;
}

.staps-stat {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.staps-stat h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.staps-stat span {
    color: var(--staps-muted);
    font-size: 13px;
}

.staps-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #e8f6f7;
    color: var(--staps-teal);
}

.staps-stat-word {
    font-size: 17px !important;
    line-height: 1.2;
}

.staps-list {
    display: grid;
    gap: 10px;
}

.staps-list a {
    color: var(--staps-ink);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--staps-border);
    min-width: 0;
}

.staps-list a:last-child {
    border-bottom: 0;
}

.staps-list-row {
    display: grid;
    gap: 3px;
    padding: 12px 0;
    border-bottom: 1px solid var(--staps-border);
}

.staps-list-row:last-child {
    border-bottom: 0;
}

.staps-detail-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 12px 18px;
    min-width: 0;
}

.staps-detail-grid span {
    color: var(--staps-muted);
}

.staps-form {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.staps-form label,
.staps-label {
    display: grid;
    gap: 7px;
    font-weight: 700;
    font-size: 14px;
}

.staps-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px !important;
}

.staps-form .form-control,
.staps-form .form-select,
.staps-form textarea,
.staps-form input,
.staps-form select {
    max-width: 100%;
}

.staps-form .btn,
.staps-card .btn,
.staps-page-title .btn,
.staps-section-row .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    white-space: normal;
}

.staps-favorite-form {
    display: inline-flex;
}

.staps-rating-select {
    min-height: 52px;
    font-size: 16px;
}

.staps-delivery-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.staps-delivery-actions .btn {
    min-height: 52px;
    white-space: normal;
}

.staps-chart-list {
    display: grid;
    gap: 10px;
}

.staps-chart-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(90px, 150px) 1fr minmax(70px, auto);
}

.staps-chart-row span,
.staps-chart-row strong {
    font-size: 13px;
}

.staps-chart-row div {
    background: #e8edf5;
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
}

.staps-chart-row b {
    background: linear-gradient(90deg, var(--staps-navy), var(--staps-teal));
    display: block;
    height: 100%;
}

.btn-primary {
    --bs-btn-bg: var(--staps-navy);
    --bs-btn-border-color: var(--staps-navy);
    --bs-btn-hover-bg: var(--staps-navy-2);
    --bs-btn-hover-border-color: var(--staps-navy-2);
}

.btn-outline-primary {
    --bs-btn-color: var(--staps-navy);
    --bs-btn-border-color: var(--staps-navy);
    --bs-btn-hover-bg: var(--staps-navy);
    --bs-btn-hover-border-color: var(--staps-navy);
}

.staps-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.staps-option {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    border: 1px solid var(--staps-border);
    border-radius: 8px;
    padding: 12px;
    background: var(--staps-soft);
}

.staps-badge,
.staps-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
    background: #eaf0f8;
    color: var(--staps-navy);
    margin: 0 6px 6px 0;
}

.staps-badge-success {
    background: #e8f7ef;
    color: #087443;
}

.staps-badge-warning {
    background: #fff6e7;
    color: #8a5a0a;
}

.staps-badge-danger {
    background: #fdecec;
    color: #a12a2a;
}

.staps-badge-muted,
.staps-chip.muted {
    background: #fff6e7;
    color: #8a5a0a;
}

.staps-chip-row {
    display: flex;
    flex-wrap: wrap;
}

.staps-filterbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    align-items: center;
}

.staps-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.staps-table-wrap table,
.staps-card table {
    min-width: 720px;
}

.staps-empty {
    text-align: center;
    padding: 44px 24px;
}

.staps-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.staps-action-card {
    display: grid;
    gap: 9px;
    min-height: 132px;
    color: var(--staps-ink);
    text-decoration: none;
    min-width: 0;
}

.staps-action-card i {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #e8f6f7;
    color: var(--staps-teal);
}

.staps-action-card strong {
    font-size: 17px;
}

.staps-action-card span {
    color: var(--staps-muted);
    font-size: 13px;
}

.staps-muted-row {
    color: var(--staps-muted);
}

.staps-unread-row {
    background: #f4f8ff;
    border-left: 4px solid var(--staps-gold);
}

.staps-supplier-switch {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.staps-supplier-switch select {
    min-width: min(100%, 260px);
}

.staps-public-profile {
    min-height: 100vh;
}

.staps-business-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: 48px max(24px, calc((100vw - 1140px) / 2));
    background: linear-gradient(110deg, rgba(7, 26, 58, 0.98), rgba(16, 42, 84, 0.84));
    background-color: var(--staps-navy);
    color: #ffffff;
}

.staps-business-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    margin: 8px 0 10px;
}

.staps-business-hero p {
    max-width: 720px;
    color: #dce6f5;
}

.staps-eyebrow {
    color: var(--staps-gold);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}

.staps-market {
    background: var(--staps-bg);
    min-height: 100vh;
}

.staps-home-hero {
    padding: 46px 0 38px;
    color: #ffffff;
    background: radial-gradient(circle at 88% 18%, rgba(246, 179, 67, 0.22), transparent 22%),
        linear-gradient(105deg, var(--staps-navy), #12366a 62%, #0f766e);
}

.staps-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 28px;
    align-items: center;
    min-width: 0;
}

.staps-hero-copy h1,
.staps-discovery-hero h1 {
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.04;
    margin: 8px 0 14px;
    overflow-wrap: anywhere;
}

.staps-hero-copy p,
.staps-discovery-hero p {
    max-width: 760px;
    color: #dbeafe;
    font-size: 17px;
    line-height: 1.7;
}

.staps-hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffffff;
    font-weight: 800;
}

.staps-hero-brand img {
    width: 74px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: #ffffff;
    padding: 3px;
}

.staps-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.staps-hero-actions .btn {
    min-height: 44px;
}

.staps-hero-actions .btn-light {
    color: var(--staps-navy);
    font-weight: 800;
}

.staps-hero-search {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 240px) auto;
    gap: 0;
    max-width: 900px;
    margin-top: 26px;
    background: #ffffff;
    border: 3px solid var(--staps-gold);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(2, 8, 23, 0.24);
}

.staps-hero-search.compact {
    max-width: 680px;
    grid-template-columns: 1fr auto;
}

.staps-hero-search input,
.staps-hero-search select,
.staps-hero-search button {
    min-height: 54px;
    border: 0;
    padding: 0 16px;
    font-size: 15px;
}

.staps-hero-search input,
.staps-hero-search select {
    color: var(--staps-ink);
    background: #ffffff;
    border-right: 1px solid var(--staps-border);
}

.staps-hero-search button {
    background: var(--staps-gold);
    color: var(--staps-navy);
    font-weight: 800;
}

.staps-hero-panel {
    position: relative;
}

.staps-hero-panel img {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(2, 8, 23, 0.28);
}

.staps-hero-mini {
    position: absolute;
    left: 18px;
    bottom: 18px;
    min-width: 132px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--staps-navy);
    box-shadow: 0 12px 30px rgba(2, 8, 23, 0.18);
}

.staps-hero-mini.accent {
    left: auto;
    right: 18px;
    background: var(--staps-gold);
}

.staps-hero-mini strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.staps-hero-mini span {
    font-size: 12px;
    color: #344054;
}

.staps-market-band {
    padding: 34px 0;
    background: #ffffff;
}

.staps-market-band.alt {
    background: var(--staps-bg);
}

.staps-section-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}

.staps-section-row h1,
.staps-section-row h2 {
    margin: 0;
    color: var(--staps-ink);
    font-weight: 800;
}

.staps-section-row p {
    margin: 5px 0 0;
    color: var(--staps-muted);
}

.staps-section-row a {
    color: var(--staps-navy);
    font-weight: 800;
    white-space: nowrap;
}

.staps-market-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(154px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}

.staps-market-tile,
.staps-district-card {
    min-height: 128px;
    display: grid;
    align-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--staps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--staps-ink);
    box-shadow: 0 8px 22px rgba(7, 26, 58, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.staps-market-tile:hover,
.staps-district-card:hover,
.staps-supplier-card:hover {
    transform: translateY(-3px);
    border-color: var(--staps-gold);
    box-shadow: 0 16px 34px rgba(7, 26, 58, 0.12);
}

.staps-market-tile i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #fff5df;
    color: #a36205;
    font-size: 20px;
}

.staps-market-tile span,
.staps-district-card strong {
    font-weight: 800;
}

.staps-market-tile small,
.staps-district-card small,
.staps-district-card span {
    color: var(--staps-muted);
}

.staps-district-grid,
.staps-supplier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    min-width: 0;
}

.staps-supplier-card {
    display: grid;
    grid-template-rows: 150px 1fr;
    overflow: hidden;
    border: 1px solid var(--staps-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--staps-ink);
    box-shadow: 0 8px 22px rgba(7, 26, 58, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    min-width: 0;
}

.staps-supplier-media {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #edf4ff, #fff6e7);
    color: var(--staps-navy);
    font-size: 54px;
    font-weight: 800;
}

.staps-supplier-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staps-supplier-body {
    padding: 16px;
}

.staps-supplier-topline,
.staps-supplier-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--staps-muted);
    font-size: 12px;
    flex-wrap: wrap;
}

.staps-supplier-topline strong {
    color: #087443;
}

.staps-supplier-body h3 {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 800;
}

.staps-supplier-body h3 a {
    color: var(--staps-ink);
}

.staps-supplier-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--staps-muted);
    font-size: 13px;
    line-height: 1.55;
}

.staps-discovery-hero {
    padding: 54px 0;
    color: #ffffff;
    background: linear-gradient(105deg, var(--staps-navy), var(--staps-navy-2));
}

.staps-results-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    padding: 28px;
    min-width: 0;
}

.staps-results-filters {
    position: sticky;
    top: 92px;
    align-self: start;
}

.staps-results-filters h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

@media (max-width: 991px) {
    .staps-main {
        margin-left: 0;
        padding: 18px;
    }

    .staps-navbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 12px 18px;
    }

    .staps-sidebar-toggle {
        display: inline-flex;
    }

    .staps-navbar-actions,
    .staps-district-picker,
    .staps-district-picker select {
        width: 100%;
    }

    .staps-navbar-actions {
        gap: 8px;
    }

    .staps-nav-link,
    .staps-navbar-actions .btn {
        min-height: 40px;
    }

    .staps-brand-logo {
        width: 42px;
        height: 34px;
    }

    .staps-filterbar {
        grid-template-columns: 1fr;
    }

    .staps-detail-grid {
        grid-template-columns: 1fr;
    }

    .staps-hero-grid,
    .staps-results-layout {
        grid-template-columns: 1fr;
    }

    .staps-hero-search,
    .staps-hero-search.compact {
        grid-template-columns: 1fr;
    }

    .staps-hero-search input,
    .staps-hero-search select {
        border-right: 0;
        border-bottom: 1px solid var(--staps-border);
    }

    .staps-section-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .staps-results-layout {
        padding: 18px;
    }

    .staps-results-filters {
        position: static;
    }
}

@media (max-width: 576px) {
    .staps-navbar {
        padding: 10px 12px;
    }

    .staps-brand {
        width: 100%;
    }

    .staps-brand span {
        font-size: 17px;
    }

    .staps-navbar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staps-district-picker {
        grid-column: 1 / -1;
    }

    .staps-district-picker select {
        max-width: none;
        width: 100%;
    }

    .staps-navbar-actions .btn,
    .staps-nav-link {
        border-radius: 8px;
        justify-content: center;
        padding: 8px 10px;
        text-align: center;
    }

    .staps-main {
        padding: 14px 12px 20px;
    }

    .staps-page-title {
        flex-direction: column;
        gap: 12px;
    }

    .staps-page-title h1 {
        font-size: 24px;
        line-height: 1.15;
    }

    .staps-card {
        padding: 16px;
    }

    .staps-stat {
        align-items: flex-start;
        flex-direction: column;
    }

    .staps-action-grid,
    .staps-district-grid,
    .staps-supplier-grid {
        grid-template-columns: 1fr;
    }

    .staps-market-strip {
        grid-auto-columns: minmax(142px, 78vw);
    }

    .staps-hero-copy h1,
    .staps-discovery-hero h1,
    .staps-business-hero h1 {
        font-size: 32px;
        line-height: 1.12;
    }

    .staps-home-hero,
    .staps-discovery-hero {
        padding: 28px 0;
    }

    .staps-hero-panel {
        display: none;
    }

    .staps-hero-search input,
    .staps-hero-search select,
    .staps-hero-search button {
        min-height: 48px;
    }

    .staps-hero-mini {
        position: static;
        margin-top: 12px;
    }

    .staps-section-row a {
        white-space: normal;
    }

    .staps-results-layout {
        padding: 14px 12px 24px;
    }
}

@media (max-width: 375px) {
    .staps-navbar-actions {
        grid-template-columns: 1fr;
    }

    .staps-page-title h1 {
        font-size: 22px;
    }

    .staps-card {
        padding: 14px;
    }
}
