.has-fixed-header-offset {
    padding-top: 104px;
}

@media (max-width: 992px) {
    .has-fixed-header-offset {
        padding-top: 84px;
    }
}

/* ===== Lunaray Header ===== */
.lunaray-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 26px 0;
    background: transparent;
    transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}

.lunaray-header.is-scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(28, 43, 69, .08);
    padding: 14px 0;
}

.lunaray-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: nowrap;
}

.lunaray-header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.lunaray-header-logo:hover {
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.logo-tagline {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--lunaray-navy, #1c2b45);
    opacity: .65;
    line-height: 1.5;
    border-left: 1px solid rgba(28, 43, 69, .25);
    padding-left: 12px;
}

.lunaray-header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
    /* visible (not hidden) so the Capabilities dropdown can hang below the bar;
       the breakpoints below shrink gap/font so the links still fit on one row. */
    overflow: visible;
}

.lunaray-header-nav ul {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.lunaray-header-nav a {
    font-family: 'Nexa', sans-serif;
    font-size: 14.5px;
    font-weight: 300;
    color: var(--lunaray-navy, #1c2b45);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    padding-bottom: 4px;
}

.lunaray-header-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--lunaray-salmon-dark, #c97768);
    transition: width .25s ease;
}

.lunaray-header-nav a:hover {
    text-decoration: none;
    color: var(--lunaray-navy, #1c2b45);
}

.lunaray-header-nav a:hover::after {
    width: 100%;
}

/* ----- Nav dropdown (Capabilities) ----- */
.lunaray-nav-item.has-menu {
    position: relative;
}

.lunaray-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* Plain nav links are inline, so their box height comes from font metrics, not
       line-height; being inline-flex, this one sizes by line-height instead, which
       made it taller and vertically offset from its siblings. Match their height. */
    line-height: 18px;
}

.lunaray-nav-caret {
    transition: transform .25s ease;
}

.lunaray-nav-item.is-open .lunaray-nav-caret {
    transform: rotate(180deg);
}

.lunaray-nav-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 300px;
    padding: 8px;
    margin-top: 14px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(28, 43, 69, .08);
    border-radius: 16px;
    box-shadow: 0 22px 48px -18px rgba(28, 43, 69, .35);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
    z-index: 5;
}

/* Invisible bridge across the gap so moving the pointer down doesn't close the menu. */
.lunaray-nav-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -16px;
    height: 16px;
}

.lunaray-nav-item.is-open .lunaray-nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .2s ease, transform .2s ease, visibility 0s;
}

/* The ID + extra classes outrank the homepage's dark-hero rule that turns nav links
   white, which would otherwise make these links vanish on the white panel. */
#site-header .lunaray-header-nav .lunaray-nav-menu .lunaray-nav-menu-link {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
    white-space: normal;
    color: var(--lunaray-navy, #1c2b45);
    text-decoration: none;
    transition: background .2s ease;
}

#site-header .lunaray-header-nav .lunaray-nav-menu .lunaray-nav-menu-link::after {
    display: none;
}

#site-header .lunaray-header-nav .lunaray-nav-menu a.lunaray-nav-menu-link:hover,
#site-header .lunaray-header-nav .lunaray-nav-menu a.lunaray-nav-menu-link:focus-visible {
    background: rgba(217, 141, 128, .1);
}

.lunaray-nav-menu-link strong {
    display: block;
    font-family: 'Nexa', sans-serif;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 3px;
}

.lunaray-nav-menu-link span {
    display: block;
    font-family: 'Nexa', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 1.45;
    color: var(--lunaray-text, #4a5568);
}

.lunaray-nav-menu-link.is-disabled {
    opacity: .55;
    cursor: default;
}

.lunaray-nav-menu-link em,
.lunaray-mobile-sub em {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--lunaray-salmon-dark, #c97768);
    background: rgba(217, 141, 128, .14);
    padding: 3px 7px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: 1px;
}

.lunaray-mobile-sub {
    list-style: none;
    margin: 0 0 6px;
    padding: 0 0 0 16px;
}

.lunaray-mobile-nav .lunaray-mobile-sub a,
.lunaray-mobile-sub .is-disabled {
    display: block;
    padding: 10px 0;
    font-family: 'Nexa', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--lunaray-navy, #1c2b45);
    border-bottom: 1px solid rgba(28, 43, 69, .06);
}

.lunaray-mobile-sub .is-disabled {
    opacity: .55;
}

.lunaray-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

/* .lunaray-header-cta sizing comes from .glass-btn-sm (lunaray-brand.css) */

.lunaray-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--lunaray-navy, #1c2b45);
    cursor: pointer;
    padding: 6px;
}

.lunaray-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.lunaray-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--lunaray-navy, #1c2b45);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}

.lunaray-mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.lunaray-mobile-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.lunaray-mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.lunaray-mobile-nav {
    display: none;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(14px);
    transition: max-height .35s ease;
}

.lunaray-mobile-nav.is-open {
    max-height: min(640px, calc(100vh - 68px));
    overflow-y: auto;
}

.lunaray-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 20px 5vw 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lunaray-mobile-nav a {
    display: block;
    padding: 12px 0;
    font-family: 'Nexa', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--lunaray-navy, #1c2b45);
    text-decoration: none;
    border-bottom: 1px solid rgba(28, 43, 69, .08);
}

.lunaray-mobile-nav .glass-btn {
    /* ".lunaray-mobile-nav a" above sets display:block at higher specificity,
       collapsing this into a full-width box with the text stuck at the left
       instead of the centered pill every other .glass-btn renders as. */
    display: inline-flex;
    justify-content: center;
    /* width:100% here would add to the side margins below instead of being
       inset by them, overflowing off the right edge of the screen. */
    width: calc(100% - 10vw);
    box-sizing: border-box;
    margin: 20px 5vw;
    border-bottom: none;
}

@media (max-width: 1550px) {
    .lunaray-header-nav ul {
        gap: 18px;
    }

    .lunaray-header-nav a {
        font-size: 13.5px;
    }
}

@media (max-width: 1320px) {
    .lunaray-header-nav ul {
        gap: 13px;
    }

    .lunaray-header-nav a {
        font-size: 12.5px;
    }

    .lunaray-header-actions {
        gap: 10px;
    }
}

@media (max-width: 1140px) {
    .lunaray-header-nav {
        display: none;
    }

    .lunaray-header-cta {
        display: none;
    }

    .lunaray-mobile-toggle {
        display: flex;
    }

    .lunaray-mobile-nav {
        display: block;
        position: fixed;
        top: 68px;
        left: 0;
        width: 100%;
    }

    .lunaray-header.is-scrolled {
        padding: 14px 0;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 32px;
    }

    .lunaray-header-logo {
        gap: 8px;
    }

    .logo-tagline {
        font-size: 7px;
        letter-spacing: .4px;
        padding-left: 8px;
    }

    .lunaray-header-actions {
        gap: 8px;
    }
}

#site-header .lunaray-nav-menu-link strong {
    color: var(--lunaray-navy, #16204a);
}

/* ===== Inner pages (article, category, tag, search, ...) =====
   Same navy + gold look as the home page. The legacy template reads its colours from the --dl-* variables,
   so re-pointing those turns the whole template dark; the rules below then tune reading comfort. */
main.has-fixed-header-offset {
    --dl-heading-color: #faf6ef;
    --dl-body-color: rgba(250, 246, 239, .86);
    --dl-white-color: #0c1d2b; /* the template uses this as the card background */
    --dl-grey-color: rgba(250, 246, 239, .62);
    --dl-light-grey-color: rgba(222, 193, 154, .28);
    --dl-bg-white: #0c1d2b;
    --dl-bg-light-red: #0c1d2b;
    --dl-bg-light-blue: #0c1d2b;
    --dl-bg-yellow: #0c1d2b;
    --dl-border-color: rgba(222, 193, 154, .18);
    --dl-primary-color: #dec19a;
    --dl-box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    background: radial-gradient(1200px 600px at 80% -10%, rgba(198, 162, 116, .10), transparent 60%), #071521;
    color: rgba(250, 246, 239, .86);
    min-height: 60vh;
}
body:has(main.has-fixed-header-offset) .kw-header {
    background: rgba(7, 21, 33, 0.97);
    box-shadow: 0 1px 0 rgba(222, 193, 154, 0.14), 0 4px 24px rgba(0, 0, 0, 0.45);
}
main.has-fixed-header-offset h1,
main.has-fixed-header-offset h2,
main.has-fixed-header-offset h3,
main.has-fixed-header-offset h4,
main.has-fixed-header-offset h5,
main.has-fixed-header-offset h6,
main.has-fixed-header-offset .post-title { color: #faf6ef; }
main.has-fixed-header-offset a { color: inherit; }
main.has-fixed-header-offset a:hover { color: #dec19a; }

/* List pages: banner + cards */
main.has-fixed-header-offset .page-header,
main.has-fixed-header-offset .page-header .page-content-wrap {
    background-color: transparent;
}
main.has-fixed-header-offset .page-header { padding-top: 24px; }
main.has-fixed-header-offset .page-header .page-content {
    background: linear-gradient(135deg, rgba(222, 193, 154, .10), rgba(12, 29, 43, .85));
    border: 1px solid rgba(222, 193, 154, .20);
    border-radius: 14px;
    padding: 48px 56px;
}
main.has-fixed-header-offset .page-header .page-content p,
main.has-fixed-header-offset .page-header .page-content span { color: rgba(250, 246, 239, .78); }
main.has-fixed-header-offset .post-card,
main.has-fixed-header-offset .post-card-content,
main.has-fixed-header-offset .post-content {
    background-color: transparent;
}
main.has-fixed-header-offset .post-card .post-title a { color: #faf6ef; }
main.has-fixed-header-offset .post-card .post-title a:hover { color: #dec19a; }
main.has-fixed-header-offset .post-meta,
main.has-fixed-header-offset .post-meta a,
main.has-fixed-header-offset .post-meta li { color: rgba(250, 246, 239, .6); }
main.has-fixed-header-offset .post-meta .sep::before { background-color: rgba(222, 193, 154, .5); }

/* Article page: comfortable reading column */
main.has-fixed-header-offset .single-page { padding-top: 24px; }
main.has-fixed-header-offset .entry-header .post-title {
    font-size: clamp(28px, 3.1vw, 46px);
    line-height: 1.2;
    letter-spacing: -.01em;
    margin-bottom: 22px;
}
main.has-fixed-header-offset .post-author-meta { border-color: rgba(222, 193, 154, .22); }
main.has-fixed-header-offset .post-author-meta .author-info,
main.has-fixed-header-offset .post-author-meta .author-info a { color: rgba(250, 246, 239, .75); }
main.has-fixed-header-offset .post-author-meta .author-info a:hover { color: #dec19a; }
main.has-fixed-header-offset .single-post-thumb img { border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }

main.has-fixed-header-offset .single-post-content {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(17px, 1.15vw, 19.5px);
    line-height: 1.85;
    color: rgba(250, 246, 239, .88);
}
main.has-fixed-header-offset .single-post-content p,
main.has-fixed-header-offset .single-post-content li {
    color: rgba(250, 246, 239, .88);
    line-height: 1.85;
    margin-bottom: 1.15em;
}
main.has-fixed-header-offset .single-post-content strong { color: #faf6ef; }
main.has-fixed-header-offset .single-post-content h2,
main.has-fixed-header-offset .single-post-content h3,
main.has-fixed-header-offset .single-post-content h4 {
    color: #faf6ef;
    line-height: 1.3;
    margin: 2em 0 .7em;
}
main.has-fixed-header-offset .single-post-content h2 { font-size: clamp(24px, 2vw, 32px); color: #dec19a; }
main.has-fixed-header-offset .single-post-content h3 { font-size: clamp(20px, 1.6vw, 26px); }
main.has-fixed-header-offset .single-post-content a { color: #dec19a; text-decoration: underline; text-underline-offset: 3px; }
main.has-fixed-header-offset .single-post-content a:hover { color: #f3dcb8; }
main.has-fixed-header-offset .single-post-content ul,
main.has-fixed-header-offset .single-post-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
main.has-fixed-header-offset .single-post-content blockquote {
    margin: 1.8em 0;
    padding: 18px 24px;
    border-left: 3px solid #c6a274;
    background: rgba(222, 193, 154, .08);
    border-radius: 0 10px 10px 0;
    color: rgba(250, 246, 239, .92);
}
main.has-fixed-header-offset .single-post-content img { border-radius: 12px; margin: 1.4em auto; }
main.has-fixed-header-offset .single-post-content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; }
main.has-fixed-header-offset .single-post-content th,
main.has-fixed-header-offset .single-post-content td { border: 1px solid rgba(222, 193, 154, .22); padding: 10px 14px; color: rgba(250, 246, 239, .88); }
main.has-fixed-header-offset .single-post-content th { background: rgba(222, 193, 154, .12); color: #faf6ef; }
main.has-fixed-header-offset .entry-footer { max-width: 760px; margin-inline: auto; border-color: rgba(222, 193, 154, .2); }
main.has-fixed-header-offset .tag-list a {
    background: rgba(222, 193, 154, .10);
    border: 1px solid rgba(222, 193, 154, .25);
    color: rgba(250, 246, 239, .85);
}
main.has-fixed-header-offset .tag-list a:hover { background: rgba(222, 193, 154, .22); color: #faf6ef; }

/* Form controls and pagination on dark */
main.has-fixed-header-offset input,
main.has-fixed-header-offset textarea,
main.has-fixed-header-offset select {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(222, 193, 154, .25);
    color: #faf6ef;
}
main.has-fixed-header-offset input::placeholder,
main.has-fixed-header-offset textarea::placeholder { color: rgba(250, 246, 239, .45); }
main.has-fixed-header-offset .pagination a,
main.has-fixed-header-offset .pagination span { color: rgba(250, 246, 239, .8); border-color: rgba(222, 193, 154, .25); background: transparent; }
main.has-fixed-header-offset .pagination .active span,
main.has-fixed-header-offset .pagination a:hover { background: #dec19a; color: #071521; border-color: #dec19a; }

/* List pages: remove the light banner artwork and white sections, style cards for dark */
main.has-fixed-header-offset .page-header,
main.has-fixed-header-offset .page-header .page-content-wrap,
main.has-fixed-header-offset .archive-page,
main.has-fixed-header-offset .padding,
main.has-fixed-header-offset section {
    background-image: none !important;
    background-color: transparent !important;
}
main.has-fixed-header-offset .page-header .page-content-wrap { border-radius: 14px; }
main.has-fixed-header-offset .page-header .page-content {
    background: linear-gradient(135deg, rgba(222, 193, 154, .10), rgba(12, 29, 43, .85)) !important;
    backdrop-filter: none;
}
main.has-fixed-header-offset .page-header .page-content h1,
main.has-fixed-header-offset .page-header .page-content h2 { color: #faf6ef; }
main.has-fixed-header-offset .post-card {
    background-color: #0c1d2b !important;
    border: 1px solid rgba(222, 193, 154, .16);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
    transition: transform .25s ease, border-color .25s ease;
}
main.has-fixed-header-offset .post-card:hover { transform: translateY(-3px); border-color: rgba(222, 193, 154, .4); }
main.has-fixed-header-offset .post-card .post-content { padding: 22px 24px 8px; }
main.has-fixed-header-offset .post-card h3,
main.has-fixed-header-offset .post-card h3 a { color: #faf6ef !important; }
main.has-fixed-header-offset .post-card p { color: rgba(250, 246, 239, .72); }
main.has-fixed-header-offset .post-card .post-meta li a,
main.has-fixed-header-offset .post-card .post-meta li { color: #dec19a !important; opacity: 1; }
main.has-fixed-header-offset .post-card-footer { border-color: rgba(222, 193, 154, .18) !important; }
main.has-fixed-header-offset .post-card .read-more,
main.has-fixed-header-offset .post-card .read-more a { color: #faf6ef !important; }
main.has-fixed-header-offset .post-card .comment,
main.has-fixed-header-offset .post-card .comment a { background: rgba(222, 193, 154, .18) !important; color: #faf6ef !important; }
main.has-fixed-header-offset .no-posts-found,
main.has-fixed-header-offset .text-muted { color: rgba(250, 246, 239, .6) !important; }

/* Spacing + details */
main.has-fixed-header-offset .page-header { padding: 28px 0 0 !important; margin: 0 !important; }
main.has-fixed-header-offset .page-header .page-content-wrap { padding: 0 !important; min-height: 0 !important; }
main.has-fixed-header-offset .page-header .page-content { width: 100%; max-width: none; padding: 40px 48px !important; }
main.has-fixed-header-offset .archive-page.padding { padding-top: 40px !important; }
main.has-fixed-header-offset .post-meta .sep { display: inline-block; width: 4px; height: 4px; margin: 0 10px; border-radius: 50%; background: rgba(222, 193, 154, .7); vertical-align: middle; }
main.has-fixed-header-offset .post-meta .sep::before { display: none !important; }
main.has-fixed-header-offset .post-card .read-more,
main.has-fixed-header-offset .post-card .read-more a { text-decoration: none !important; }
main.has-fixed-header-offset .post-card .read-more:hover { color: #dec19a !important; }

/* Article: align body with title and meta */
main.has-fixed-header-offset .single-post-content { padding-inline: 0 !important; margin-inline: 0 !important; max-width: 780px; }
main.has-fixed-header-offset .entry-footer { margin-inline: 0 !important; }
main.has-fixed-header-offset .post-author-meta .author-info { color: rgba(250, 246, 239, .85); }
