/* Identity row and independent navigation, without site-specific header art. */
.avh-top {
    position: relative;
    isolation: isolate;
    background: #fbf8ef;
    color: #173f35;
}
.avh-top__content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 2.5rem));
    margin-inline: auto;
    padding-block: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    gap: 20px;
}
.avh-top__content > * { min-inline-size: 0; max-inline-size: 100%; }
.avh-top__content .silvaris-brand { padding: 0; border: 0; }
.avh-top__content .silvaris-logo .custom-logo-link { padding: 6px 10px; }
.avh-top__content .silvaris-logo .custom-logo {
    width: auto;
    max-width: min(var(--silvaris-logo-width, 280px), 70vw);
    max-inline-size: min(var(--silvaris-logo-width, 280px), 70vw);
    height: auto;
    max-height: var(--silvaris-logo-height, 52px);
    object-fit: contain;
}
.eh-logo-small .avh-top__content { --silvaris-logo-width: 220px; --silvaris-logo-height: 44px; }
.eh-logo-large .avh-top__content { --silvaris-logo-width: 320px; --silvaris-logo-height: 60px; }
.avh-top__content .silvaris-site-name { font-size: clamp(1.3rem, 2.2vw, 2.1rem); overflow-wrap: anywhere; }
.avh-top__content .silvaris-header-meta { min-height: 0; border-bottom: 0; font-size: .72rem; }
.avh-nav-row {
    position: relative;
    z-index: 5;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-height: 3.35rem;
    margin: 0;
    padding-inline: max(1.25rem, calc((100% - 1180px) / 2));
    background: #fffcf5;
    color: #173f35;
    border-block: 1px solid #d6dfd2;
    display: block;
}
.avh-nav-row .silvaris-navigation { width: 100%; }
.avh-nav-row .silvaris-menu { flex-wrap: wrap; justify-content: space-between; gap: .15rem; }
.avh-nav-row .silvaris-menu > li { flex: 1 1 auto; min-width: 0; }
.avh-nav-row .silvaris-menu > li > a { padding: .85rem .6rem; line-height: 1.4; text-align: center; white-space: normal; }
body.wp-theme-silvaris .avh-nav-row .silvaris-menu > li > a,
body.wp-theme-silvaris .avh-nav-row .silvaris-menu > li > a:visited { color: #173f35; }
body.wp-theme-silvaris .avh-nav-row .silvaris-menu > li > a:hover,
body.wp-theme-silvaris .avh-nav-row .silvaris-menu > li > a:focus {
    color: #10382e;
    background: #e9efe3;
    text-decoration: underline;
    text-underline-offset: .22em;
}
body.wp-theme-silvaris .avh-nav-row :is(.current-menu-item, .current-menu-ancestor, .current_page_item) > a {
    color: #fff;
    background: #174b3f;
    text-decoration: underline;
    text-underline-offset: .22em;
}
.avh-nav-row :is(a, button, input):focus-visible { outline: 3px solid #245c45; outline-offset: 3px; }
.avh-nav-row input { color: #173f35; background: #fff; }
.avh-nav-row input::placeholder { color: #52635a; opacity: 1; }
.avh-nav-row button[type="submit"] { color: #fff; background: #174b3f; }
@media (max-width: 959px) {
    .avh-top__content { width: calc(100% - 2.5rem); padding-block: 12px; gap: 16px; }
    .avh-nav-row { padding-inline: 1.25rem; }
}
@media (max-width: 599px) {
    .avh-top__content {
        width: calc(100% - 2rem);
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-block: 12px;
    }
    .avh-nav-row { padding-inline: 1rem; }
}
@media print {
    .avh-top { background: #fff; }
    .avh-top__content { width: 100%; padding-block: 12px; }
}
