/* Compact site header: links move into the sheet opened by the menu button.
   Loaded by layouts/main.php with a media query from info_pages_header_compact_media(),
   so the breakpoint differs for guests and members (config/info_pages.php). */

.dh-bar {
    flex-wrap: wrap;
    row-gap: 0;
    min-height: 0;
    padding: 0 16px;
}
.dh-brand {
    min-height: 68px;
}
.dh .dh-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sc-line);
    border-radius: 8px;
}
.dh-bars,
.dh-bars::before,
.dh-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}
.dh-bars {
    position: relative;
}
.dh-bars::before,
.dh-bars::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    transition: transform .25s var(--sc-ease);
}
.dh-bars::before { top: -6px; }
.dh-bars::after { top: 6px; }
.dh-menu-btn[aria-expanded="true"] .dh-bars { background: transparent; }
.dh-menu-btn[aria-expanded="true"] .dh-bars::before { transform: translateY(6px) rotate(45deg); }
.dh-menu-btn[aria-expanded="true"] .dh-bars::after { transform: translateY(-6px) rotate(-45deg); }

.dh-nav {
    display: none;
    order: 3;
    flex-direction: column;
    width: 100%;
    padding: 4px 0 16px;
    border-top: 1px solid var(--sc-line);
}
.dh.is-open .dh-nav {
    display: flex;
}
.dh-links {
    flex-direction: column;
}
.dh-links a {
    flex: 1;
    min-height: 48px;
    padding: 0 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--sc-line);
}
.dh-links a[aria-current="page"] {
    border-bottom-color: var(--sc-line);
}
.dh-sheet-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.dh .dh-sheet-actions .dh-btn {
    flex: 1;
    height: 46px;
}
.dh-signin,
.dh-account {
    display: none;
}

@media (max-width: 600px) {
    .dh-bar {
        gap: 8px;
    }
    .dh-brand {
        min-height: 60px;
    }
    .dh-brand img {
        width: 96px;
    }
    .dh-tagline {
        display: none;
    }
    .dh-actions {
        gap: 6px;
    }
    .dh .dh-calc {
        gap: 6px;
        min-height: 44px;
        padding: 2px 10px;
    }
    .dh-ic {
        width: 20px;
        height: 20px;
    }
    .dh-calc-label .dh-wide,
    .dh .dh-packages .dh-wide { display: none; }
    .dh-calc-label .dh-narrow,
    .dh .dh-packages .dh-narrow { display: inline; }
    .dh-calc-label {
        font-size: 14px;
    }
    .dh-calc-from {
        font-size: 13px;
    }
    .dh .dh-register {
        height: 44px;
        padding: 0 14px;
        font-size: 15px;
    }
    .dh .dh-packages {
        padding: 0 10px;
    }
}

@media (max-width: 420px) {
    .dh-bar {
        gap: 6px;
        padding: 0 12px;
    }
    .dh .dh-calc {
        padding: 2px 8px;
    }
    .dh .dh-packages {
        padding: 0 8px;
    }
}

@media (max-width: 389px) {
    .dh-calc-from {
        display: none;
    }
}

@media (max-width: 340px) {
    .dh-brand img {
        width: 76px;
    }
    .dh .dh-calc .dh-ic {
        display: none;
    }
}
