/**
 * English site (/en/, inc/english/) — only what the shared CSS doesn't cover. Classes .dh-en-*.
 * Tokens only (css/design-tokens.css).
 */

.dh-en-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--dh-background);
}

.dh-en-main {
    flex: 1 0 auto;
}

/* ---------- Header ---------- */
.dh-en-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0px);
    z-index: 200;
    background: var(--dh-background);
}

.dh-en-header__bar {
    position: relative;
}

.dh-en-header .dh-header__logo .dh-logo__svg {
    display: block;
    height: 20px;
    width: auto;
    color: var(--dh-foreground);
}

.dh-en-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.dh-en-nav__list,
.dh-en-menu__list {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dh-en-nav__list {
    flex-wrap: wrap;
    gap: 2px;
}

/* Same as the Norwegian menu items (.dh-nav__btn in css/site-header.css) */
.dh-en-nav__link {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: 48px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: var(--dh-radius-pill);
    color: var(--dh-muted-foreground);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--dh-ease), background-color var(--dh-ease);
}

.dh-en-nav__link:hover,
.dh-en-nav__link[aria-current="page"] {
    color: var(--dh-foreground);
}

@media (min-width: 1025px) and (max-width: 1279px) {
    .dh-en-nav__link {
        padding: 0 8px;
    }
}

.dh-en-nav__link:focus-visible,
.dh-en-menu__btn:focus-visible {
    outline: 2px solid var(--dh-ring);
    outline-offset: 2px;
}

.dh-en-header .dh-i,
.dh-en-header .dh-i--cat {
    width: 18px;
    height: 18px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Desktop: logo | centered menu | theme + contact. Logo 24px, buttons 48px like the Norwegian bar. */
@media (min-width: 1025px) {
    .dh-en-header .dh-header__logo .dh-logo__svg {
        height: 24px;
    }

    .dh-en-header .dh-en-theme {
        width: 48px;
        height: 48px;
    }

    .dh-en-header .dh-en-header__contact {
        height: 48px;
        padding: 0 20px;
        font-size: 16px;
    }

    .dh-en-header .dh-en-header__bar {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .dh-en-header .dh-header__logo {
        justify-self: start;
    }

    .dh-en-nav__list {
        justify-content: center;
    }
}

.dh-en-header__actions {
    display: flex;
    align-items: center;
    justify-self: end;
    gap: 8px;
    margin-left: auto !important;
}

.dh-en-header__contact {
    flex: none;
}

.dh-en-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-full);
    background: transparent;
    color: var(--dh-foreground);
    cursor: pointer;
}

.dh-en-theme:hover {
    background: var(--dh-muted);
}

.dh-en-theme:focus-visible {
    outline: 2px solid var(--dh-ring);
    outline-offset: 2px;
}

/* Light shows the moon (go dark), dark shows the sun (go light) */
.dh-en-theme__sun {
    display: none;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .dh-en-theme__sun { display: block; }
    :root:not([data-theme="light"]) .dh-en-theme__moon { display: none; }
}

:root[data-theme="dark"] .dh-en-theme__sun { display: block; }
:root[data-theme="dark"] .dh-en-theme__moon { display: none; }

.dh-en-menu {
    display: none;
}

@media (max-width: 1024px) {
    .dh-en-nav,
    .dh-en-header__contact {
        display: none !important;
    }

    .dh-en-menu {
        display: block;
    }

    .dh-en-menu__btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 40px;
        padding: 0 14px;
        border: 1px solid var(--dh-border);
        border-radius: var(--dh-radius-full);
        color: var(--dh-foreground);
        font-size: 14px;
        font-weight: 500;
        list-style: none;
        cursor: pointer;
    }

    .dh-en-menu__btn::-webkit-details-marker {
        display: none;
    }

    .dh-en-menu__panel {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: grid;
        gap: 12px;
        padding: 12px var(--dh-gutter) 20px;
        border-bottom: 1px solid var(--dh-border);
        background: var(--dh-background);
        box-shadow: var(--dh-shadow-pop);
    }

    .dh-en-menu__list {
        flex-direction: column;
    }

    .dh-en-menu__list .dh-en-nav__link {
        display: flex;
        height: 48px;
        padding: 0 12px;
        border-radius: var(--dh-radius-md);
        color: var(--dh-foreground);
    }

    .dh-en-menu__list .dh-en-nav__link:hover,
    .dh-en-menu__list .dh-en-nav__link[aria-current="page"] {
        background: var(--dh-muted);
    }
}

/* ---------- Footer ---------- */
.dh-en-footer {
    margin-top: auto;
}

/* ---------- Shared ---------- */
.dh-en-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.dh-en-404 {
    display: grid;
    gap: 16px;
    padding-block: 3rem;
    max-width: 40rem;
}

.dh-en-404 p {
    margin: 0;
    color: var(--dh-muted-foreground);
}

/* ---------- Front page ---------- */
.dh-en-hero {
    gap: 20px;
}

.dh-en-hero > * {
    margin: 0 !important;
    position: relative;
}

.dh-en-hero__lead {
    max-width: 34rem;
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--dh-ink-foreground);
    opacity: 0.85;
}

.dh-en-hero .dh-en-hero__contact {
    border-color: currentColor;
    background: transparent;
    color: var(--dh-ink-foreground);
}

.dh-en-home .dh-en-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 1024px) {
    .dh-en-home .dh-en-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .dh-en-home .dh-en-steps {
        grid-template-columns: minmax(0, 1fr);
    }
}

.dh-en-contact .dh-join__text > *,
.dh-en-contact__ways > * {
    margin: 0;
}

.dh-en-contact__line {
    margin-top: 8px !important;
    opacity: 0.8;
}

.dh-en-contact__ways {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

/* a.… beats .dh-home a (home.css), which made them dark in light mode */
.dh-en-site a.dh-btn--primary {
    color: var(--dh-primary-foreground);
}


/* ---------- Equipment + category ---------- */
.dh-en-intro {
    display: grid;
    gap: 12px;
}

.dh-en-intro > *,
.dh-en-intro__lead > * {
    margin: 0;
}

.dh-en-intro__lead {
    max-width: 44rem;
    color: var(--dh-muted-foreground);
    font-size: 1rem;
    line-height: 1.55;
}

.dh-en-section {
    display: grid;
    gap: var(--dh-gap);
    margin-top: 1.5rem !important;
}

.dh-en-section > * {
    margin: 0;
}

.dh-en-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--dh-muted-foreground);
}

.dh-en-crumb a {
    color: var(--dh-muted-foreground);
    text-decoration: none;
}

.dh-en-crumb a:hover {
    color: var(--dh-foreground);
    text-decoration: underline;
}

.dh-en-crumb [aria-current] {
    color: var(--dh-foreground);
}

.dh-en-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dh-en-chip {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--dh-border);
    border-radius: var(--dh-radius-full);
    background: var(--dh-card);
    color: var(--dh-foreground);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.dh-en-chip:hover {
    background: var(--dh-muted);
}

.dh-en-count {
    color: var(--dh-muted-foreground);
    font-size: 14px;
}

.dh-en-main > .dh-en-contact {
    margin-top: 2rem !important;
}
