@import url('https://fonts.googleapis.com/css2?family=Arizonia&display=swap');

body.has-heritage-bg {
    background: #ffffff url('../imgwb/imgw/bg_body.jpg') repeat;
}

.site-shell {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    background: rgba(255, 255, 255, .18);
    box-shadow: 0 0 0 1px rgba(71, 46, 33, .28);
}

.heritage-header {
    width: 100%;
    background: #ffffff url('../imgwb/imgw/bg_banner_top.jpg') center top no-repeat;
    background-size: 1200px auto;
    border-top: 2px solid #2b211f;
    color: #8d1f18;
    overflow: hidden;
}

.heritage-banner {
    min-height: 174px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 54px 12px 34px;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.heritage-title {
    margin: 0;
    color: #8d1f18;
    font-family: 'Arizonia', Georgia, 'Times New Roman', serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: 0;
    text-shadow: 0 2px 0 #fff6df, 2px 3px 3px rgba(62, 28, 20, .35);
}

.heritage-subtitle {
    margin-top: 22px;
    color: #8d1f18;
    font-weight: 700;
    font-size: clamp(14px, 3vw, 17px);
    line-height: 1.35;
}

.heritage-menu {
    background: #83251d url('../imgwb/imgw/bg_menu_top.png') repeat-x bottom;
    border-bottom: 2px solid #d6a42b;
}

.heritage-nav {
    max-width: 1200px;
    min-height: 48px;
    margin: 0 auto;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.heritage-nav a,
.heritage-nav button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 0;
    border-left: 1px solid rgba(255, 221, 86, .18);
    background: transparent;
    color: #ffde56;
    font: 700 14px Arial, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

.heritage-nav a:last-child,
.heritage-nav button:last-child {
    border-right: 1px solid rgba(255, 221, 86, .18);
}

.heritage-nav a:hover,
.heritage-nav button:hover,
.heritage-nav .active {
    color: #ffffff;
    background: rgba(80, 13, 10, .28);
}

@media (max-width: 680px) {
    .site-shell {
        width: 100%;
        box-shadow: none;
    }

    .heritage-header {
        background-size: auto 126px;
    }

    .heritage-banner {
        min-height: 126px;
        padding: 34px 10px 20px;
    }

    .heritage-title {
        font-size: clamp(38px, 13vw, 52px);
    }

    .heritage-subtitle {
        margin-top: 10px;
        font-size: 13px;
    }

    .heritage-nav {
        min-height: 0;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 4px 6px;
        scrollbar-width: thin;
    }

    .heritage-nav a,
    .heritage-nav button {
        min-height: 34px;
        padding: 0 10px;
        font-size: 12px;
        flex: 0 0 auto;
    }
}

.family-tree-page.has-heritage-bg {
    background: #ffffff url('../imgwb/imgw/bg_body.jpg') repeat !important;
}

.family-tree-controls.heritage-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    height: auto !important;
    display: block !important;
    padding: 0 !important;
    border-bottom: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35) !important;
}

.family-tree-controls.heritage-header .heritage-banner {
    min-height: 142px;
    padding: 42px 12px 24px;
}

.family-tree-controls.heritage-header .heritage-title {
    font-size: clamp(30px, 5vw, 50px);
}

.family-tree-controls.heritage-header .heritage-subtitle {
    margin-top: 14px;
    font-size: 14px;
}

.family-tree-controls.heritage-header .heritage-nav.tree-btn-group {
    max-width: 1120px;
    margin: 0 auto !important;
    position: static !important;
    z-index: auto !important;
    gap: 0 !important;
}

.family-tree-controls.heritage-header .divider {
    display: none !important;
}

.family-tree-controls.heritage-header .tree-control-btn {
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border: 0 !important;
    border-left: 1px solid rgba(255, 221, 86, .18) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffde56 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

.family-tree-controls.heritage-header .tree-control-btn span {
    color: inherit !important;
    font-size: inherit !important;
}

.family-tree-controls.heritage-header .tree-control-btn:hover,
.family-tree-controls.heritage-header .tree-control-btn.active {
    color: #ffffff !important;
    background: rgba(80, 13, 10, .28) !important;
}

.family-tree-controls.heritage-header .tree-control-btn.active span {
    color: #ffffff !important;
}

.family-tree-page #tree {
    padding-top: 192px !important;
}

@media (max-width: 680px) {
    .family-tree-controls.heritage-header .heritage-banner {
        min-height: 102px;
        padding: 28px 10px 16px;
    }

    .family-tree-controls.heritage-header .heritage-title {
        font-size: clamp(28px, 10vw, 38px);
    }

    .family-tree-controls.heritage-header .heritage-subtitle {
        margin-top: 8px;
        font-size: 12px;
    }

    .family-tree-controls.heritage-header .tree-control-btn {
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 9px !important;
        font-size: 12px !important;
        flex: 0 0 auto;
    }

    .family-tree-page #tree {
        padding-top: 148px !important;
    }
}
