/* =========================================================
   DGCHEME — HOMEPAGE SMART SECTION RAIL V1
   Isolated namespace: dghr
   This file does NOT modify rshero27 or any existing Homepage section.
========================================================= */

.dghr,
.dghr * {
    box-sizing: border-box;
}

.dghr {
    --dghr-header: var(--dg-header-height-scrolled, 58px);
    --dghr-bg: rgba(7, 27, 22, .975);
    --dghr-bg-2: rgba(9, 35, 28, .985);
    --dghr-line: rgba(215, 181, 85, .16);
    --dghr-line-strong: rgba(215, 181, 85, .34);
    --dghr-gold: #d8b85d;
    --dghr-gold-soft: #b99b48;
    --dghr-text: #f6f3e9;
    --dghr-muted: rgba(240, 237, 225, .60);
    --dghr-height: 74px;

    position: sticky;
    top: var(--dghr-header);
    z-index: 820;
    width: 100%;
    min-height: var(--dghr-height);
    color: var(--dghr-text);
    background:
        radial-gradient(circle at 10% 0%, rgba(218, 181, 77, .075), transparent 31%),
        radial-gradient(circle at 92% 100%, rgba(52, 132, 101, .11), transparent 32%),
        linear-gradient(180deg, rgba(11, 41, 33, .985), rgba(6, 25, 20, .985));
    border-top: 1px solid rgba(222, 190, 92, .14);
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    isolation: isolate;
    overflow: visible;
}

.dghr__progress {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: rgba(255, 255, 255, .035);
    pointer-events: none;
    overflow: hidden;
}

.dghr__progress > span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #9c7b2f 0%, #d9bd65 45%, #7aa88f 100%);
    box-shadow: 0 0 14px rgba(216, 184, 93, .32);
    transition: width .12s linear;
}

.dghr__inner {
    width: min(1440px, calc(100% - 40px));
    min-height: var(--dghr-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}

.dghr__identity {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-inline-end: 14px;
    border-inline-end: 1px solid rgba(255, 255, 255, .08);
}

.dghr__mark {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--dghr-line-strong);
    background: linear-gradient(145deg, rgba(218, 184, 93, .11), rgba(255, 255, 255, .018));
    color: var(--dghr-gold);
    font: 700 13px/1 Arial, sans-serif;
    letter-spacing: .08em;
    box-shadow: inset 0 0 20px rgba(217, 183, 91, .035);
}

.dghr__identity-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    white-space: nowrap;
}

.dghr__identity-copy small {
    direction: ltr;
    color: rgba(217, 190, 109, .72);
    font: 600 8px/1.2 Arial, sans-serif;
    letter-spacing: .16em;
}

.dghr__identity-copy strong {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.dghr__nav {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.dghr__link,
.dghr__menu-trigger {
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(246, 243, 233, .72);
    text-decoration: none;
    min-height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    border-radius: 10px;
    font: inherit;
    font-size: 11.5px;
    font-weight: 650;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease;
}

.dghr__link:hover,
.dghr__link:focus-visible,
.dghr__menu-trigger:hover,
.dghr__menu-trigger:focus-visible,
.dghr__link.is-active,
.dghr__menu-trigger.is-active,
.dghr__menu-item.is-active > .dghr__menu-trigger {
    color: #fff;
    background: rgba(255, 255, 255, .036);
    outline: none;
}

.dghr__link::after,
.dghr__menu-trigger::after {
    content: "";
    position: absolute;
    right: 11px;
    left: 11px;
    bottom: 3px;
    height: 1px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, transparent, var(--dghr-gold), transparent);
    transition: transform .2s ease;
}

.dghr__link.is-active::after,
.dghr__menu-trigger.is-active::after,
.dghr__menu-item.is-active > .dghr__menu-trigger::after {
    transform: scaleX(1);
}

.dghr__menu-trigger svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    transition: transform .2s ease;
}

.dghr__menu-trigger[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

.dghr__menu-item {
    position: relative;
}

.dghr__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: min(680px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid rgba(218, 184, 93, .17);
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% -8%, rgba(218, 184, 93, .08), transparent 31%),
        rgba(6, 25, 20, .995);
    box-shadow: 0 22px 58px rgba(0, 0, 0, .34);
}

.dghr__dropdown[hidden] {
    display: none !important;
}

.dghr__dropdown-head {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 2px 4px 11px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.dghr__dropdown-head span {
    direction: ltr;
    color: rgba(216, 184, 93, .68);
    font: 700 8px/1.2 Arial, sans-serif;
    letter-spacing: .15em;
}

.dghr__dropdown-head strong {
    color: rgba(255, 255, 255, .88);
    font-size: 11px;
    font-weight: 650;
}

.dghr__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.dghr__grid--apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dghr__grid a {
    min-width: 0;
    min-height: 58px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 11px;
    background: rgba(255, 255, 255, .022);
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.dghr__grid a:hover,
.dghr__grid a:focus-visible,
.dghr__grid a.is-active {
    border-color: rgba(217, 184, 93, .24);
    background: linear-gradient(135deg, rgba(217, 184, 93, .055), rgba(66, 128, 100, .06));
    outline: none;
    transform: translateY(-1px);
}

.dghr__grid a > b {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid rgba(217, 184, 93, .14);
    color: var(--dghr-gold);
    font: 700 9px/1 Arial, sans-serif;
}

.dghr__grid a > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dghr__grid a strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
}

.dghr__grid a small {
    direction: ltr;
    color: rgba(255, 255, 255, .40);
    font: 600 7.5px/1.2 Arial, sans-serif;
    letter-spacing: .08em;
}

.dghr__grid a > i {
    color: rgba(217, 184, 93, .72);
    font-style: normal;
    font-size: 14px;
}

.dghr__cta {
    flex: 0 0 auto;
    min-width: 126px;
    height: 44px;
    padding: 0 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(217, 184, 93, .22);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(217, 184, 93, .075), rgba(255, 255, 255, .02));
}

.dghr__cta span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dghr__cta small {
    direction: ltr;
    color: rgba(217, 184, 93, .68);
    font: 650 7px/1.1 Arial, sans-serif;
    letter-spacing: .08em;
}

.dghr__cta strong {
    font-size: 10.5px;
}

.dghr__cta i {
    color: var(--dghr-gold);
    font-style: normal;
}

.dghr__mobile-trigger,
.dghr__mobile-panel {
    display: none;
}

.dghr [aria-disabled="true"] {
    display: none !important;
}

@media (max-width: 1240px) {
    .dghr__inner {
        width: min(1440px, calc(100% - 24px));
        gap: 10px;
    }

    .dghr__identity-copy {
        display: none;
    }

    .dghr__identity {
        padding-inline-end: 10px;
    }

    .dghr__link,
    .dghr__menu-trigger {
        padding-inline: 9px;
        font-size: 10.5px;
    }

    .dghr__cta {
        min-width: 112px;
    }
}

@media (max-width: 980px) {
    .dghr {
        --dghr-height: 64px;
    }

    .dghr__inner {
        width: calc(100% - 22px);
        min-height: var(--dghr-height);
    }

    .dghr__identity,
    .dghr__nav,
    .dghr__cta {
        display: none;
    }

    .dghr__mobile-trigger {
        appearance: none;
        border: 0;
        width: 100%;
        min-height: 52px;
        padding: 0 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: #fff;
        background: transparent;
        font: inherit;
        text-align: right;
        cursor: pointer;
    }

    .dghr__mobile-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .dghr__mobile-copy small {
        direction: ltr;
        color: rgba(217, 184, 93, .68);
        font: 650 7px/1.1 Arial, sans-serif;
        letter-spacing: .13em;
    }

    .dghr__mobile-copy strong {
        max-width: calc(100vw - 110px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11.5px;
    }

    .dghr__mobile-action {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dghr__pulse {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #d8b85d;
        box-shadow: 0 0 0 4px rgba(216, 184, 93, .08), 0 0 13px rgba(216, 184, 93, .30);
    }

    .dghr__mobile-action svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.5;
        transition: transform .22s ease;
    }

    .dghr__mobile-trigger[aria-expanded="true"] .dghr__mobile-action svg {
        transform: rotate(180deg);
    }

    .dghr__mobile-panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: block;
        max-height: calc(100dvh - var(--dghr-header) - var(--dghr-height) - 12px);
        overflow: auto;
        overscroll-behavior: contain;
        padding: 8px 11px 14px;
        background:
            radial-gradient(circle at 86% 0%, rgba(217, 184, 93, .055), transparent 27%),
            rgba(6, 25, 20, .995);
        border-top: 1px solid rgba(255, 255, 255, .045);
        box-shadow: 0 22px 40px rgba(0, 0, 0, .26);
    }

    .dghr__mobile-panel[hidden] {
        display: none !important;
    }

    .dghr__mobile-panel-inner {
        display: grid;
        gap: 8px;
    }

    .dghr__mobile-group {
        border: 1px solid rgba(255, 255, 255, .06);
        border-radius: 13px;
        background: rgba(255, 255, 255, .018);
        overflow: hidden;
    }

    .dghr__mobile-group-toggle {
        appearance: none;
        width: 100%;
        min-height: 48px;
        padding: 0 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        border: 0;
        background: transparent;
        color: #fff;
        font: inherit;
        cursor: pointer;
        text-align: right;
    }

    .dghr__mobile-group-toggle span {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .dghr__mobile-group-toggle small {
        direction: ltr;
        color: rgba(217, 184, 93, .60);
        font: 650 7px/1.1 Arial, sans-serif;
        letter-spacing: .12em;
    }

    .dghr__mobile-group-toggle strong {
        font-size: 11px;
        font-weight: 700;
    }

    .dghr__mobile-group-toggle i {
        color: rgba(255, 255, 255, .62);
        font-style: normal;
        transition: transform .2s ease;
    }

    .dghr__mobile-group.is-open .dghr__mobile-group-toggle i {
        transform: rotate(180deg);
    }

    .dghr__mobile-group-body {
        display: none;
        padding: 0 8px 8px;
    }

    .dghr__mobile-group.is-open .dghr__mobile-group-body {
        display: grid;
        gap: 6px;
    }

    .dghr__mobile-group-body > a {
        min-height: 44px;
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) 18px;
        align-items: center;
        gap: 8px;
        padding: 7px 9px;
        color: rgba(255, 255, 255, .78);
        text-decoration: none;
        border: 1px solid rgba(255, 255, 255, .045);
        border-radius: 9px;
        background: rgba(255, 255, 255, .016);
    }

    .dghr__mobile-group-body > a.is-active {
        color: #fff;
        border-color: rgba(217, 184, 93, .16);
        background: rgba(217, 184, 93, .045);
    }

    .dghr__mobile-group-body > a > b {
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        border-radius: 7px;
        border: 1px solid rgba(217, 184, 93, .12);
        color: var(--dghr-gold);
        font: 700 8px/1 Arial, sans-serif;
    }

    .dghr__mobile-group-body > a > span {
        min-width: 0;
        font-size: 10.5px;
        font-weight: 650;
    }

    .dghr__mobile-group-body > a > i {
        color: rgba(217, 184, 93, .68);
        font-style: normal;
    }

    .dghr__mobile-cta {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 13px;
        border: 1px solid rgba(217, 184, 93, .16);
        border-radius: 12px;
        background: linear-gradient(135deg, rgba(217, 184, 93, .055), rgba(255, 255, 255, .015));
        color: #fff;
        text-decoration: none;
        font-size: 11px;
        font-weight: 700;
    }

    .dghr__mobile-cta i {
        color: var(--dghr-gold);
        font-style: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dghr *,
    .dghr *::before,
    .dghr *::after {
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
    }
}
