.brand-logo-link {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: inherit;
    text-decoration: none !important;
}

.brand-logo-link:hover {
    text-decoration: none !important;
}

.brand-logo-link--center {
    justify-content: center;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-logo__iconWrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* ---------------------------------------------------------------------------
   WORDMARK LÀ CHỮ, KHÔNG PHẢI ẢNH
   Xem chú thích trong templates/silk/pages/partials/brand-logo.php. Các luật
   width cũ (64px/54px/72px) là kích thước của thẻ <img>, không còn nghĩa với
   chữ nên đã bỏ; chiều rộng giờ do cỡ chữ quyết định.
   --------------------------------------------------------------------------- */
.brand-logo__icon {
    display: block;
    height: auto;
    width: 32px;
    border-radius: 7px;
}

.brand-logo__wordmark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Dấu tiếng Việt (Đ, ổ, ể) cao hơn chữ Latin thường: line-height quá chặt
       sẽ cắt cụt dấu, nên để 1.12 thay vì 1. */
    line-height: 1.12;
    min-width: 0;
    white-space: nowrap;
}

.brand-logo__line {
    display: block;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.01em;
}

.brand-logo__line--1 {
    color: #ffb02e;
}

.brand-logo__line--2 {
    color: #fff;
}

/* ---------------------------------------------------------------------------
   WORDMARK HAI TÔNG — BaNgoaiGranny
   "BaNgoai" : chữ đậm màu ngà/xương cũ, gradient sáng -> tối như giấy ố.
   "Granny"  : font kinh dị Creepster, đỏ máu, quầng sáng đỏ và nhịp chập chờn
               như bóng đèn sắp cháy. Creepster chỉ tải đúng các ký tự của chữ
               "Granny" (tham số &text= trong header) nên gần như không tốn gì;
               chưa tải xong thì rơi về Nunito 900 đỏ, vẫn đọc được.
   --------------------------------------------------------------------------- */
.brand-logo__line--split {
    display: flex;
    align-items: baseline;
    gap: 1px;
    font-size: 17px;
    letter-spacing: 0;
}

.brand-logo__lead {
    font-family: "Nunito", sans-serif;
    font-weight: 900;
    background: linear-gradient(180deg, #fbf6ea 0%, #e6dcc6 55%, #a99c84 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.85));
}

.brand-logo__accent {
    position: relative;
    font-family: "Creepster", "Nunito", sans-serif;
    font-weight: 400;
    font-size: 1.32em;
    line-height: 1;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #ff5a4a 0%, #e01b1b 45%, #7a0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 4px rgba(255, 30, 30, 0.55)) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9));
    animation: brand-logo-flicker 6s infinite;
}

/* Vệt "máu nhỏ giọt" dưới chân chữ: một giọt rơi chậm dưới chữ cái cuối. */
.brand-logo__accent::after {
    content: "";
    position: absolute;
    right: 0.42em;
    top: 82%;
    width: 3px;
    height: 0;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(180deg, #b00000, #ff2a2a);
    animation: brand-logo-drip 4.5s ease-in infinite;
}

.brand-logo-link:hover .brand-logo__accent {
    filter: drop-shadow(0 0 7px rgba(255, 40, 40, 0.85)) drop-shadow(0 1px 0 rgba(0, 0, 0, 0.9));
}

@keyframes brand-logo-flicker {
    0%, 86%, 100% { opacity: 1; }
    87% { opacity: 0.35; }
    88% { opacity: 1; }
    90% { opacity: 0.55; }
    91% { opacity: 1; }
}

@keyframes brand-logo-drip {
    0%, 55% { height: 0; opacity: 0; }
    60% { height: 2px; opacity: 1; }
    85% { height: 7px; opacity: 1; }
    100% { height: 9px; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .brand-logo__accent,
    .brand-logo__accent::after {
        animation: none;
    }
}

.brand-logo--legacy .brand-logo__icon {
    width: 30px;
}

.brand-logo--legacy .brand-logo__line {
    font-size: 16px;
}

@media (max-width: 599.98px) {
    .brand-logo__icon {
        width: 30px;
    }

    .brand-logo__line {
        font-size: 13px;
    }

    .brand-logo__line--split {
        font-size: 15px;
    }

    .brand-logo--legacy .brand-logo__icon {
        width: 30px;
    }

    .brand-logo--legacy .brand-logo__line {
        font-size: 13px;
    }
}

/* Màn hình rất hẹp: bỏ chữ, giữ icon. Tên thương hiệu vẫn còn ở aria-label
   của thẻ <a> nên trình đọc màn hình không mất thông tin. */
@media (max-width: 359.98px) {
    .brand-logo--responsive .brand-logo__wordmark {
        display: none;
    }
}
