﻿/* =========================================================
   NHẬN DIỆN LOGO CƠ QUAN
   ========================================================= */

/*
 * Logo hiện tại là phương án nhận diện đề xuất.
 * Các quy tắc dưới đây chỉ điều chỉnh kích thước,
 * khoảng trắng và cách hiển thị trong website.
 */

.brand__mark.brand__mark--official {
    width: 76px;
    height: 76px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    overflow: hidden;

    padding: 3px;

    color: inherit;
    background: #ffffff;

    border: 1px solid #d7e1e7;
    border-radius: 50%;

    box-shadow:
        0 0 0 3px rgba(166, 27, 51, 0.08),
        0 8px 22px rgba(7, 52, 79, 0.12);
}

.brand__mark.brand__mark--official img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    border-radius: 50%;
}

.site-footer__mark {
    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    overflow: hidden;

    padding: 3px;

    background: #ffffff;

    border:
        1px solid rgba(
            255,
            255,
            255,
            0.32
        );

    border-radius: 50%;

    box-shadow:
        0 8px 24px rgba(
            0,
            0,
            0,
            0.16
        );
}

.site-footer__mark img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;

    border-radius: 50%;
}

/*
 * Bảo vệ logo khỏi các quy tắc SVG hoặc hình ảnh chung
 * trong những file CSS khác.
 */
.brand__mark.brand__mark--official img,
.site-footer__mark img {
    max-width: none !important;

    filter: none !important;
    opacity: 1 !important;

    transform: none !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
    .brand__mark.brand__mark--official {
        width: 66px;
        height: 66px;
    }
}

/* =========================================================
   ĐIỆN THOẠI
   ========================================================= */

@media (max-width: 760px) {
    .brand__mark.brand__mark--official {
        width: 56px;
        height: 56px;

        padding: 2px;
    }

    .site-footer__mark {
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 430px) {
    .brand__mark.brand__mark--official {
        width: 50px;
        height: 50px;
    }
}