 
/* Kare Pluss — Atlas of Metal Alloys */
/* Scoped styles: atlas_splav.css */

.alloy-atlas {
    max-width: 1250px;
    margin: 28px auto 55px;
    color: #28313d;
}


/* Alloy groups */

.alloy-atlas .alloy-group {
    margin-bottom: 36px;
}

.alloy-atlas .alloy-group-title {
    font-size: 21px;
    font-weight: 650;
    line-height: 1.4;
    margin: 0 0 16px;
    color: #28313d;
}


/* Responsive grid */

.alloy-atlas .alloy-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}


/* Alloy cards */

.alloy-atlas .alloy-item {
    box-sizing: border-box;
    min-width: 0;
    min-height: 105px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    position: relative;
    padding: 15px 10px;
    border-radius: 9px;
    border: 1px solid rgba(0, 0, 0, .09);
    background: #e6edf2;
    color: #25313c;
    text-decoration: none !important;
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease;
}


/* Alloy names */

.alloy-atlas .alloy-name {
    font-size: 16px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.alloy-atlas .alloy-composition {
    font-size: 13px;
    line-height: 1.4;
    color: #65717d;
    letter-spacing: .2px;
}


/* Group colors */

/* Iron-based alloys */

.alloy-atlas .alloy-group-iron .alloy-item {
    background: #dceee3;
    border-color: #b5d9c4;
}

/* Copper-based alloys */

.alloy-atlas .alloy-group-copper .alloy-item {
    background: #f4e6c8;
    border-color: #e6cf9c;
}

/* Aluminium-based alloys */

.alloy-atlas .alloy-group-aluminium .alloy-item {
    background: #dce9f6;
    border-color: #bdd4eb;
}

/* Special alloys */

.alloy-atlas .alloy-group-special .alloy-item {
    background: #e8def4;
    border-color: #d4c1e9;
}


/* Hover effects */

.alloy-atlas .alloy-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, .13);
    z-index: 2;
}


/* Published articles */

.alloy-atlas .alloy-linked {
    cursor: pointer;
    outline-offset: 2px;
}

.alloy-atlas .alloy-linked:hover,
.alloy-atlas .alloy-linked:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .16);
    z-index: 2;
}


/* Gold outline for published articles */

.alloy-atlas .alloy-item.alloy-ready {
    outline: 2px solid #d4a017;
    outline-offset: -2px;
    box-shadow: 0 0 8px rgba(212, 160, 23, .35);
}

.alloy-atlas .alloy-item.alloy-ready:hover {
    outline-color: #f0b429;
    box-shadow: 0 0 14px rgba(212, 160, 23, .65);
}


/* Hint */

.alloy-atlas .alloy-hint {
    margin: 22px 0 0;
    font-size: 14px;
    color: #697582;
    line-height: 1.5;
}


/* Tablet */

@media (max-width: 1000px) {

    .alloy-atlas .alloy-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .alloy-atlas .alloy-item {
        min-height: 100px;
    }

}


/* Mobile */

@media (max-width: 700px) {

    .alloy-atlas {
        margin: 20px auto 35px;
    }

    .alloy-atlas .alloy-group {
        margin-bottom: 28px;
    }

    .alloy-atlas .alloy-group-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .alloy-atlas .alloy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .alloy-atlas .alloy-item {
        min-height: 95px;
        padding: 12px 8px;
        gap: 8px;
    }

    .alloy-atlas .alloy-name {
        font-size: 14px;
    }

    .alloy-atlas .alloy-composition {
        font-size: 12px;
    }

    .alloy-atlas .alloy-hint {
        font-size: 13px;
    }

}


/* Narrow mobile */

@media (max-width: 360px) {

    .alloy-atlas .alloy-grid {
        gap: 7px;
    }

    .alloy-atlas .alloy-item {
        padding: 10px 6px;
    }

    .alloy-atlas .alloy-name {
        font-size: 13px;
    }

}
