/* The logo text participates in sizing, so navigation cannot occupy its space. */
.site-header {
    position: relative;
    display: grid;
    grid-template-columns: max-content max-content max-content;
    justify-content: space-between;
    align-items: center;
    column-gap: 24px;
    row-gap: 16px;
    width: min(1360px, calc(100% - 2 * clamp(20px, 3vw, 56px)));
    height: auto;
    min-height: 80px;
    margin-inline: auto;
    padding-block: 0;
}

.site-header .brand { width: auto; min-width: 0; max-width: 100%; }
.site-header > .brand {
    position: static;
    display: flex;
    align-items: center;
    grid-column: 1;
    grid-row: 1;
    height: auto;
    gap: 12px;
}
.site-header .brand > .brand-text {
    position: static;
    inset: auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: auto;
}
.site-header .brand-logo { width: 80px; height: 80px; flex: 0 0 auto; }
.site-header .brand strong { font-size: 22px; line-height: 1.3; }
.site-header .brand span span { font-size: 17px; line-height: 1.3; }

.site-header .header-nav {
    position: static;
    display: flex;
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    width: auto;
    height: auto;
    margin: 0;
    gap: 24px;
    font-size: 15px;
    line-height: 1.4;
}
.site-header .header-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}
.site-header .header-actions {
    position: static;
    display: flex;
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    width: auto;
    height: auto;
    margin: 0;
    gap: 12px;
}
.site-header .hotline {
    position: static;
    display: flex;
    align-items: center;
    width: auto;
    height: auto;
    min-height: 48px;
    padding: 0 0 0 20px;
    border-left: 1px solid #ddd;
    gap: 10px;
    flex: 0 0 auto;
}
.site-header .hotline::before { content: none; }
.site-header .hotline .phone-icon {
    position: static;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
}
.site-header .hotline > span:last-child { position: static; }
.site-header .hotline span span { font-size: 15px; line-height: 1.4; }
.site-header .hotline strong {
    margin-top: 2px;
    font-size: 19px;
    line-height: 1.4;
    white-space: nowrap;
}
.site-header .header-donate {
    position: static;
    width: 189px;
    height: 50px;
    flex: 0 0 auto;
}

@media (width >= 1440px) {
    .site-header > .brand { width: max-content; min-width: max-content; white-space: nowrap; }
}

@media (width >= 1440px) {
    .desktop-page:has(> .site-header) { padding-top: 36px; }
}

@media (width < 1440px) {
    .site-header {
        grid-template-columns: minmax(0, 1fr) auto 48px;
        min-height: 64px;
        gap: 16px;
        padding-block: 4px;
    }
    .site-header .brand-logo { width: 60px; height: 60px; }
    .site-header .brand strong { font-size: 20px; }
    .site-header .brand span span { font-size: 14px; }
    .site-header .header-nav, .site-header .hotline { display: none; }
    .site-header .header-actions { grid-column: 2; }
    .site-header .header-donate { width: 168px; height: 48px; }
    .site-header .mobile-menu-toggle {
        display: grid;
        grid-column: 3;
        grid-row: 1;
        place-items: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid #dfe1e8;
        border-radius: 16px;
        background: #fff;
        color: var(--color-ink);
    }
    .site-header .mobile-menu-heading .brand-logo { width: 56px; height: 56px; }
}

@media (width < 600px) {
    .site-header {
        width: calc(100% - 32px);
        grid-template-columns: minmax(0, 1fr) 48px;
        column-gap: 12px;
        min-height: 56px;
    }
    .site-header > .brand { gap: 10px; }
    .site-header .brand-logo { width: 52px; height: 52px; }
    .site-header .brand strong { font-size: 18px; line-height: 1.25; }
    .site-header .brand span span { font-size: 13px; line-height: 1.35; }
    .site-header .header-actions { display: none; }
    .site-header .mobile-menu-toggle { grid-column: 2; }
    .site-header .mobile-menu-heading .brand-logo { width: 52px; height: 52px; }
}

@media (width < 360px) {
    .site-header { grid-template-columns: minmax(0, 1fr) 44px; column-gap: 8px; }
    .site-header > .brand { gap: 8px; }
    .site-header .brand-logo, .site-header .mobile-menu-heading .brand-logo { width: 40px; height: 40px; }
    .site-header .brand strong { font-size: 14px; }
    .site-header .brand span span { font-size: 10px; }
    .site-header .mobile-menu-toggle { width: 44px; height: 44px; border-radius: 14px; }
}
