/* Robertstown Quick Links - Homepage Cards ([robertstown_home_cards]) */

/* Compact horizontal cards: icon | label, value, meta | chevron */
.rql-home-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 28px;
}

.rql-hc {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    color: #1a1a2e;
    border-left: 5px solid #0033A0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rql-hc:hover,
.rql-hc:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 51, 160, 0.18);
    color: #1a1a2e;
    text-decoration: none;
}

.rql-hc:focus-visible {
    outline: 3px solid #ffb81c;
    outline-offset: 3px;
}

.rql-hc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e8eefb;
    color: #0033A0;
    flex-shrink: 0;
}

.rql-hc-icon svg {
    width: 24px;
    height: 24px;
}

.rql-hc-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.rql-hc-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0033A0;
}

.rql-hc-label,
.rql-hc-value,
.rql-hc-meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rql-hc-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.rql-hc-meta {
    font-size: 13px;
    line-height: 1.4;
    color: #5a6275;
}

.rql-hc-chevron {
    font-size: 30px;
    line-height: 1;
    color: #0033A0;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.rql-hc:hover .rql-hc-chevron {
    transform: translateX(3px);
}

/* Four across on desktop is snug, so tighten the icon and padding */
@media screen and (min-width: 1101px) {
    .rql-hc {
        gap: 12px;
        padding: 14px 14px 14px 12px;
    }

    .rql-hc-icon {
        width: 40px;
        height: 40px;
    }

    .rql-hc-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Lotto: the one highlighted card */
.rql-hc--lotto {
    background: linear-gradient(135deg, #0033A0 0%, #0050d8 100%);
    border-left-color: #ffb81c;
    color: #fff;
}

.rql-hc--lotto:hover,
.rql-hc--lotto:focus-visible {
    color: #fff;
}

.rql-hc--lotto .rql-hc-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.rql-hc--lotto .rql-hc-label {
    color: #ffd166;
}

.rql-hc--lotto .rql-hc-value {
    font-size: 22px;
    line-height: 1.2;
}

.rql-hc--lotto .rql-hc-meta {
    color: rgba(255, 255, 255, 0.85);
}

.rql-hc--lotto .rql-hc-chevron {
    color: #fff;
}

/* Tablet: 2 x 2 grid */
@media screen and (max-width: 1100px) {
    .rql-home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* Our team name: in the label by default, in the meta line on phones */
.rql-hc-meta-team {
    display: none;
}

/* Phone: 2 x 2 tiles - text only, chevron in the top corner */
@media screen and (max-width: 640px) {
    .rql-home-cards {
        gap: 10px;
        margin-bottom: 24px;
    }

    .rql-hc {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px;
        border-left: 0;
        border-top: 4px solid #0033A0;
    }

    .rql-hc--lotto {
        border-top-color: #ffb81c;
    }

    .rql-hc:hover {
        transform: none;
    }

    /* No room for the icon beside the text, so drop it rather than stack it */
    .rql-hc-icon {
        display: none;
    }

    .rql-hc-body {
        width: 100%;
    }

    /* Only the label line sits beside the chevron */
    .rql-hc-label {
        padding-right: 16px;
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .rql-hc-value {
        font-size: 16px;
    }

    .rql-hc--lotto .rql-hc-value {
        font-size: 20px;
    }

    /* Let the detail line wrap to two lines on the narrow tiles */
    .rql-hc-meta {
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .rql-hc-team {
        display: none;
    }

    .rql-hc-meta-team {
        display: inline;
    }

    .rql-hc-chevron {
        position: absolute;
        top: 8px;
        right: 10px;
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rql-hc,
    .rql-hc-chevron {
        transition: none;
    }
}
