:root {
    --bee-yellow: #FFD133;
    --honey: #E4A427;
    --clean-green: #1E9366;
    --charcoal: #1A1D21;
    --light: #F3F5F7;
}

body {
    color: var(--charcoal);
    background: #fff;
}

.navbar {
    border-bottom: 4px solid var(--honey);
}

.btn-primary {
    background: var(--clean-green);
    border-color: var(--clean-green);
}

    .btn-primary:hover {
        background: var(--bee-yellow);
        border-color: var(--bee-yellow);
        color: #000;
    }
.section-light {
    background: var(--light);
}

.section-honey {
    background: var(--bee-yellow);
}

    .section-honey .btn {
        border-width: 2px;
    }

.tile .card-body {
    padding: 1.25rem 1.25rem 1.75rem;
}
.controller-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

    .controller-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 18px rgba(0,0,0,.15);
    }

.thumb-img {
    height: 160px;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}


a {
    color: #1B6DFF;
}

    a:hover {
        opacity: .85;
    }

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Dense responsive grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* ~6–7 per row on xl screens */
    gap: 1rem;
}

@media (min-width: 1400px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    }
}

/* Compact cards */
.card-compact .card-img-top {
    height: 120px; /* uniform thumbnail height */
    object-fit: cover; /* crop to fill */
}

.card-compact .card-body {
    padding: .75rem;
}

.card-compact .card-title {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .25rem;
}

.card-compact .tiny {
    font-size: .8rem;
}

/* Line clamp helpers (truncate to 2 lines) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-toggle {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 10; /* ensure it's above the <a> */
    pointer-events: auto;
}
.card-eq {
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .card-eq .card-img-top {
        height: 160px;
        object-fit: cover;
    }

    .card-eq .card-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
    }

    .card-eq .spacer {
        flex-grow: 1;
    }
/* pushes bottom row down */
.object-fit-cover {
    object-fit: cover;
}

.thumb {
    width: 88px;
    height: 66px;
}
