/* KillWebs.com 1.24.0 compact shell, navigation, footer, and answer-surface refinement.
   Release 1.24 compact navigation density.
   Loaded after the legacy component stylesheet so the public shell has one
   authoritative responsive layout without inheriting earlier menu experiments. */

/* ---------- Ecosystem rail ---------- */
body .kw-ecosystem-rail {
    position: relative !important;
    inset: auto !important;
    z-index: 20;
    min-height: 0 !important;
    border-bottom: 1px solid rgba(151, 194, 176, .2);
    background:
        linear-gradient(90deg, rgba(167, 244, 50, .045), transparent 30%, transparent 70%, rgba(57, 217, 200, .04)),
        #020705;
}

body .kw-ecosystem-inner {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: .72rem;
    min-height: 4.4rem !important;
    padding-block: .5rem;
}

body .kw-ecosystem-context {
    display: grid !important;
    gap: .05rem;
    min-width: 9.4rem;
    padding: 0 .8rem 0 0;
    border-right: 1px solid rgba(151, 194, 176, .2);
}

body .kw-ecosystem-context .ecosystem-context-kicker {
    color: var(--primary);
    font-size: .61rem;
    font-weight: 850;
    letter-spacing: .105em;
    line-height: 1.25;
    text-transform: uppercase;
}

body .kw-ecosystem-context .ecosystem-context-copy {
    color: var(--muted);
    font-size: .62rem;
    line-height: 1.3;
}

body .kw-ecosystem-products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem !important;
    min-width: 0;
    width: 100%;
}

body .kw-ecosystem-product {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    grid-template-areas: none !important;
    align-items: center;
    gap: .48rem;
    width: 100%;
    min-width: 0;
    max-width: none !important;
    min-height: 3.05rem !important;
    padding: .5rem .62rem !important;
    border: 1px solid rgba(151, 194, 176, .18) !important;
    border-radius: 11px !important;
    color: var(--text);
    background: rgba(13, 28, 24, .55) !important;
    text-decoration: none;
    box-shadow: none;
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}

body .kw-ecosystem-product:hover,
body .kw-ecosystem-product:focus-visible {
    border-color: rgba(57, 217, 200, .52) !important;
    color: var(--text);
    background: rgba(17, 36, 30, .85) !important;
    transform: translateY(-1px);
}

body .kw-ecosystem-product[aria-current="page"] {
    border-color: rgba(167, 244, 50, .56) !important;
    background: linear-gradient(135deg, rgba(167, 244, 50, .1), rgba(13, 28, 24, .76)) !important;
}

body .kw-product-index {
    display: grid;
    place-items: center;
    width: 1.55rem;
    height: 1.55rem;
    border: 1px solid rgba(151, 194, 176, .22);
    border-radius: 999px;
    color: var(--muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .54rem;
    font-weight: 800;
}

body .kw-product-copy {
    display: grid;
    min-width: 0;
    gap: .08rem;
}

body .kw-ecosystem-product .ecosystem-product-name {
    grid-area: auto !important;
    min-width: 0;
    color: var(--text);
    font-size: .73rem !important;
    letter-spacing: .01em;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .kw-ecosystem-product .ecosystem-product-role {
    display: block !important;
    grid-area: auto !important;
    min-width: 0;
    color: var(--muted);
    font-size: .58rem !important;
    letter-spacing: 0;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .kw-ecosystem-product .external-mark,
body .kw-ecosystem-product .current-mark {
    display: inline-flex !important;
    grid-area: auto !important;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    margin: 0;
    color: var(--teal);
    font-size: .7rem;
}

body .kw-ecosystem-product .current-mark {
    min-width: auto;
    border: 1px solid rgba(167, 244, 50, .4);
    border-radius: 999px;
    padding: .16rem .32rem;
    color: var(--primary);
    font-size: .5rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

body .kw-utility-actions {
    display: grid !important;
    grid-template-columns: repeat(2, max-content);
    gap: .34rem !important;
    min-width: 0;
    padding-left: .72rem !important;
    border-left: 1px solid rgba(151, 194, 176, .2) !important;
}

body .kw-utility-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    border: 1px solid rgba(151, 194, 176, .17) !important;
    border-radius: 8px !important;
    padding: .34rem .56rem !important;
    color: var(--muted-2);
    background: rgba(13, 28, 24, .5) !important;
    font-size: .61rem !important;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

body .kw-utility-actions a:hover,
body .kw-utility-actions a:focus-visible {
    border-color: rgba(57, 217, 200, .46) !important;
    color: var(--text);
}

/* ---------- Sticky main header ---------- */
body .kw-main-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 70 !important;
    min-height: 0 !important;
    border-bottom: 1px solid rgba(151, 194, 176, .22) !important;
    background: rgba(5, 13, 10, .96) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
    backdrop-filter: blur(16px);
}

body .kw-header-inner {
    position: relative;
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: clamp(.75rem, 1.7vw, 1.5rem) !important;
    min-height: 4.85rem !important;
    padding-block: .46rem;
}

body .kw-brand {
    display: inline-grid !important;
    grid-template-columns: 2.45rem minmax(0, 1fr);
    align-items: center;
    gap: .66rem;
    min-width: 12rem !important;
    max-width: 14rem;
    margin: 0;
    padding: .3rem .95rem .3rem 0 !important;
    border-right: 1px solid rgba(151, 194, 176, .2) !important;
    text-decoration: none;
}

body .kw-brand .brand-mark {
    width: 2.35rem;
    color: var(--primary);
}

body .kw-brand .brand-name {
    color: var(--text);
    font-size: .91rem;
    letter-spacing: -.01em;
    white-space: nowrap;
}

body .kw-brand .brand-copy small {
    display: block;
    margin-top: .05rem;
    color: var(--muted);
    font-size: .52rem;
    letter-spacing: .095em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

body .kw-nav-toggle {
    display: none !important;
}

body .kw-primary-nav {
    position: static !important;
    display: block !important;
    width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body .kw-primary-links {
    display: grid !important;
    grid-template-columns: repeat(6, max-content) max-content !important;
    align-items: center;
    justify-content: end;
    gap: .4rem !important;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

body .kw-primary-link,
body .kw-topics-summary {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.7rem !important;
    border: 1px solid rgba(151, 194, 176, .18) !important;
    border-radius: 10px !important;
    padding: .58rem .72rem !important;
    color: var(--muted-2) !important;
    background: rgba(13, 28, 24, .46) !important;
    font-size: clamp(.68rem, .72vw, .79rem) !important;
    font-weight: 780 !important;
    line-height: 1.1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
}

body .kw-primary-link:hover,
body .kw-primary-link:focus-visible,
body .kw-topics-summary:hover,
body .kw-topics-summary:focus-visible,
body .kw-topics-menu[open] > .kw-topics-summary {
    border-color: rgba(57, 217, 200, .5) !important;
    color: var(--text) !important;
    background: rgba(17, 36, 30, .84) !important;
}

body .kw-primary-link[aria-current="page"],
body .kw-primary-link[aria-current="location"],
body .kw-topics-menu.is-current > .kw-topics-summary {
    border-color: rgba(167, 244, 50, .54) !important;
    color: var(--text) !important;
    background: linear-gradient(180deg, rgba(167, 244, 50, .13), rgba(13, 28, 24, .64)) !important;
}

body .kw-primary-link[aria-current="page"]::after,
body .kw-primary-link[aria-current="location"]::after,
body .kw-topics-menu.is-current > .kw-topics-summary::after {
    content: "";
    position: absolute;
    right: .6rem;
    bottom: .28rem;
    left: .6rem;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

body .kw-topics-menu {
    position: static !important;
    width: auto !important;
    min-width: 0;
    margin: 0;
}

body .kw-topics-summary {
    gap: .55rem;
    list-style: none;
}

body .kw-topics-summary::-webkit-details-marker {
    display: none;
}

body .kw-topics-summary .nav-summary-mark {
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(167, 244, 50, .08);
    font-size: .78rem;
    transition: transform .18s var(--ease);
}

body .kw-topics-menu[open] .nav-summary-mark {
    transform: rotate(45deg);
}

body .kw-topics-panel {
    position: absolute !important;
    top: calc(100% + .45rem) !important;
    right: 0 !important;
    left: auto !important;
    z-index: 110;
    display: none !important;
    width: min(74rem, calc(100vw - 2rem)) !important;
    max-height: min(76vh, 48rem) !important;
    overflow: auto !important;
    margin: 0 !important;
    border: 1px solid rgba(151, 194, 176, .25) !important;
    border-radius: 15px !important;
    padding: 1rem !important;
    color: var(--text);
    background: rgba(5, 14, 11, .99) !important;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .54) !important;
    transform: none !important;
}

body .kw-topics-menu[open] > .kw-topics-panel {
    display: block !important;
}

body .kw-topics-intro {
    display: grid !important;
    grid-template-columns: minmax(0, .8fr) minmax(18rem, 1.2fr);
    align-items: end;
    gap: 1.25rem;
    margin: 0 0 .8rem;
    padding: .15rem .2rem .85rem;
    border-bottom: 1px solid rgba(151, 194, 176, .2);
}

body .kw-topics-intro .eyebrow,
body .kw-topics-intro h2,
body .kw-topics-intro p {
    grid-area: auto !important;
    margin: 0;
    text-align: left !important;
}

body .kw-topics-intro h2 {
    margin-top: .12rem;
    font-size: clamp(1.22rem, 2vw, 1.75rem);
}

body .kw-topics-intro > p {
    max-width: 52rem;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

body .kw-topics-groups {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: .62rem !important;
}

body .kw-topic-group {
    min-width: 0;
    border: 1px solid rgba(151, 194, 176, .17) !important;
    border-radius: 12px !important;
    padding: .66rem !important;
    background: rgba(13, 28, 24, .48) !important;
}

body .kw-topic-group .nav-mega-section-heading {
    min-height: 0 !important;
    margin: 0 0 .46rem !important;
    padding: .12rem .16rem .55rem !important;
    border-bottom: 1px solid rgba(151, 194, 176, .18);
}

body .kw-topic-group .nav-mega-section-heading h3 {
    margin: 0 0 .18rem;
    color: var(--text);
    font-size: .82rem;
}

body .kw-topic-group .nav-mega-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: .65rem;
    line-height: 1.35;
}

body .kw-topic-links {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: .28rem !important;
}

body .kw-primary-nav .kw-topic-links a {
    display: grid !important;
    min-height: 0 !important;
    gap: .12rem;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    padding: .52rem .56rem !important;
    color: var(--muted-2) !important;
    background: rgba(3, 8, 6, .3) !important;
    text-decoration: none !important;
}

body .kw-primary-nav .kw-topic-links a:hover,
body .kw-primary-nav .kw-topic-links a:focus-visible,
body .kw-primary-nav .kw-topic-links a[aria-current="page"] {
    border-color: rgba(57, 217, 200, .34) !important;
    color: var(--text) !important;
    background: rgba(17, 36, 30, .72) !important;
}

body .kw-primary-nav .kw-topic-links a span {
    font-size: .73rem !important;
    font-weight: 790;
    line-height: 1.25;
}

body .kw-primary-nav .kw-topic-links a small {
    display: block !important;
    color: var(--muted);
    font-size: .61rem !important;
    line-height: 1.35;
}

body .kw-mobile-utilities {
    display: none !important;
}

/* ---------- Contextual pathway ---------- */
body .kw-pathway-nav {
    position: relative !important;
    inset: auto !important;
    z-index: 18;
    border-bottom: 1px solid rgba(151, 194, 176, .2) !important;
    background:
        linear-gradient(90deg, rgba(57, 217, 200, .045), transparent 55%, rgba(167, 244, 50, .035)),
        rgba(6, 18, 14, .98) !important;
}

body .kw-pathway-inner {
    display: grid !important;
    grid-template-columns: minmax(10.5rem, 13rem) minmax(0, 1fr) !important;
    align-items: stretch;
    gap: .75rem !important;
    padding-block: .58rem !important;
}

body .kw-pathway-context {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: none !important;
    align-content: center;
    gap: .08rem !important;
    min-width: 0;
    margin: 0;
    padding: .2rem .72rem .2rem 0 !important;
    border-right: 1px solid rgba(151, 194, 176, .2) !important;
    border-bottom: 0 !important;
}

body .kw-pathway-context .section-nav-eyebrow {
    grid-area: auto !important;
    color: var(--teal);
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body .kw-pathway-context strong {
    grid-area: auto !important;
    color: var(--text);
    font-size: .86rem !important;
    line-height: 1.2;
}

body .kw-pathway-context .section-nav-description {
    display: -webkit-box !important;
    grid-area: auto !important;
    margin: .06rem 0 0;
    color: var(--muted);
    font-size: .61rem !important;
    line-height: 1.35;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body .kw-pathway-disclosure {
    min-width: 0;
    margin: 0;
}

body .kw-pathway-disclosure > summary {
    display: none;
    list-style: none;
}

body .kw-pathway-disclosure > summary::-webkit-details-marker {
    display: none;
}

body .kw-pathway-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(9.25rem, 1fr)) !important;
    grid-auto-flow: initial !important;
    grid-auto-columns: initial !important;
    gap: .42rem !important;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
}

body .kw-pathway-card {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: .13rem;
    min-width: 0;
    min-height: 3.2rem !important;
    border: 1px solid rgba(151, 194, 176, .17) !important;
    border-radius: 10px !important;
    padding: .55rem .62rem !important;
    color: var(--muted-2) !important;
    background: rgba(13, 28, 24, .46) !important;
    text-decoration: none !important;
    scroll-snap-align: none !important;
}

body .kw-pathway-card:hover,
body .kw-pathway-card:focus-visible {
    border-color: rgba(57, 217, 200, .44) !important;
    color: var(--text) !important;
    background: rgba(17, 36, 30, .8) !important;
}

body .kw-pathway-card[aria-current="page"] {
    border-color: rgba(167, 244, 50, .54) !important;
    color: var(--text) !important;
    background: linear-gradient(180deg, rgba(167, 244, 50, .11), rgba(13, 28, 24, .68)) !important;
    box-shadow: inset 3px 0 var(--primary);
}

body .kw-pathway-card span {
    display: block !important;
    overflow: visible !important;
    color: inherit;
    font-size: .68rem !important;
    font-weight: 800;
    line-height: 1.22;
    white-space: normal !important;
    -webkit-line-clamp: unset !important;
}

body .kw-pathway-card small {
    display: -webkit-box !important;
    color: var(--muted);
    font-size: .56rem !important;
    line-height: 1.3;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ---------- High-position direct answer ---------- */
body .primary-answer {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: .22rem .8rem;
    max-width: 78rem;
    margin-top: 1.1rem;
    border: 1px solid rgba(140, 200, 255, .25);
    border-radius: 13px;
    padding: .82rem .95rem;
    background: linear-gradient(135deg, rgba(140, 200, 255, .08), rgba(13, 28, 24, .58));
}

body .primary-answer-label {
    grid-row: 1 / span 2;
    align-self: start;
    border: 1px solid rgba(140, 200, 255, .35);
    border-radius: 999px;
    padding: .2rem .46rem;
    color: var(--blue);
    font-size: .56rem;
    font-weight: 850;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

body .primary-answer-question,
body .primary-answer-copy {
    margin: 0;
}

body .primary-answer-question {
    color: var(--text);
    font-size: .76rem;
    font-weight: 800;
    line-height: 1.35;
}

body .primary-answer-copy {
    color: var(--muted-2);
    font-size: .76rem;
    line-height: 1.5;
}

/* ---------- Footer ---------- */
body .kw-site-footer {
    margin-top: clamp(3.5rem, 8vw, 7rem);
    border-top: 1px solid rgba(151, 194, 176, .24);
    color: var(--text);
    background:
        radial-gradient(circle at 0 0, rgba(57, 217, 200, .07), transparent 26rem),
        radial-gradient(circle at 100% 0, rgba(167, 244, 50, .055), transparent 24rem),
        #030806;
}

body .kw-footer-ecosystem {
    border-bottom: 1px solid rgba(151, 194, 176, .2);
    padding-block: clamp(1.55rem, 3.5vw, 2.6rem);
    background: rgba(7, 17, 14, .72);
}

body .kw-footer-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, .9fr);
    align-items: end;
    gap: 2rem;
    margin-bottom: 1.15rem;
}

body .kw-footer-heading h2 {
    max-width: 18ch;
    margin: .2rem 0 0;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
}

body .kw-footer-heading > p {
    max-width: 48rem;
    margin: 0;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.55;
}

body .kw-footer-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .65rem;
}

body .kw-footer-property {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    border: 1px solid rgba(151, 194, 176, .18);
    border-radius: 13px;
    padding: .82rem .9rem;
    color: var(--text);
    background: rgba(13, 28, 24, .56);
    text-decoration: none;
}

body .kw-footer-property:hover,
body .kw-footer-property:focus-visible {
    border-color: rgba(57, 217, 200, .5);
    color: var(--text);
    background: rgba(17, 36, 30, .84);
}

body .kw-footer-property.is-current {
    border-color: rgba(167, 244, 50, .48);
}

body .kw-footer-property.is-evulgare {
    border-color: rgba(255, 180, 84, .34);
}

body .kw-footer-property-number {
    color: var(--muted);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .58rem;
}

body .kw-footer-property > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: .15rem;
}

body .kw-footer-property strong {
    font-size: .84rem;
}

body .kw-footer-property small {
    color: var(--muted);
    font-size: .65rem;
    line-height: 1.35;
}

body .kw-footer-main {
    display: grid;
    grid-template-columns: minmax(15rem, 1.05fr) minmax(0, 2.35fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-block: clamp(2.25rem, 5vw, 4.25rem);
}

body .kw-footer-intro {
    align-self: start;
    min-width: 0;
}

body .kw-footer-brand-lockup {
    display: grid;
    grid-template-columns: 2.55rem minmax(0, 1fr);
    align-items: center;
    gap: .72rem;
}

body .kw-footer-brand-lockup .brand-mark {
    width: 2.5rem;
    color: var(--primary);
}

body .kw-footer-brand-lockup h2 {
    margin: 0;
    font-size: 1.35rem;
}

body .kw-footer-brand-lockup p {
    margin: .16rem 0 0;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.4;
}

body .kw-footer-answer,
body .kw-footer-principle {
    margin: 1.05rem 0 0;
    border-left: 2px solid var(--teal);
    padding-left: .8rem;
    color: var(--muted-2);
    font-size: .78rem;
    line-height: 1.55;
}

body .kw-footer-principle {
    border-left-color: var(--primary);
}

body .kw-footer-principle strong {
    color: var(--primary);
    font-size: .72rem;
    letter-spacing: .035em;
}

body .kw-footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    min-width: 0;
}

body .kw-footer-nav {
    min-width: 0;
    border-top: 1px solid rgba(151, 194, 176, .22);
    padding-top: .8rem;
}

body .kw-footer-nav h3 {
    margin: 0;
    color: var(--text);
    font-size: .82rem;
}

body .kw-footer-nav > p {
    min-height: 3.2em;
    margin: .32rem 0 .68rem;
    color: var(--muted);
    font-size: .62rem;
    line-height: 1.4;
}

body .kw-footer-nav ul {
    display: grid;
    gap: .32rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body .kw-footer-nav a {
    display: inline-block;
    color: var(--muted-2);
    font-size: .68rem;
    line-height: 1.3;
    text-decoration-color: rgba(57, 217, 200, .42);
}

body .kw-footer-nav a:hover,
body .kw-footer-nav a:focus-visible {
    color: var(--primary);
}

body .kw-footer-proof {
    border-block: 1px solid rgba(151, 194, 176, .18);
    background: rgba(13, 28, 24, .38);
}

body .kw-footer-proof-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

body .kw-footer-proof-grid > div {
    display: grid;
    gap: .1rem;
    min-width: 0;
    padding: .72rem .8rem;
    border-right: 1px solid rgba(151, 194, 176, .16);
}

body .kw-footer-proof-grid > div:last-child {
    border-right: 0;
}

body .kw-footer-proof-grid span {
    color: var(--muted);
    font-size: .55rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

body .kw-footer-proof-grid strong {
    color: var(--text);
    font-size: .66rem;
    line-height: 1.35;
}

body .kw-footer-bottom {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
}

body .kw-footer-bottom p {
    max-width: 52rem;
    margin: 0;
    color: var(--muted);
    font-size: .65rem;
    line-height: 1.45;
}

body .kw-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem !important;
}

body .kw-footer-actions a,
body .kw-footer-actions button {
    color: var(--muted-2);
    font-size: .63rem;
}

/* ---------- Responsive shell ---------- */
@media (max-width: 1360px) and (min-width: 1181px) {
    body .kw-ecosystem-context {
        display: none !important;
    }

    body .kw-ecosystem-inner {
        grid-template-columns: minmax(0, 1fr) max-content;
    }

    body .kw-primary-link,
    body .kw-topics-summary {
        padding-inline: .58rem !important;
        font-size: .68rem !important;
    }

    body .kw-brand .brand-copy small {
        display: none;
    }

    body .kw-brand {
        min-width: 10.5rem !important;
    }
}

@media (max-width: 1180px) {
    body.nav-open {
        overflow: hidden;
    }

    body .kw-ecosystem-inner {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0 !important;
        padding-block: .38rem;
    }

    body .kw-ecosystem-context,
    body .kw-utility-actions {
        display: none !important;
    }

    body .kw-ecosystem-product {
        min-height: 2.75rem !important;
    }

    body .kw-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 4.45rem !important;
    }

    body .kw-brand {
        min-width: 0 !important;
        border-right: 0 !important;
        padding-right: 0 !important;
    }

    body .kw-nav-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 2.85rem;
        height: 2.85rem;
        border: 1px solid rgba(151, 194, 176, .24);
        border-radius: 10px;
        background: rgba(13, 28, 24, .7);
    }

    body .kw-primary-nav {
        position: absolute !important;
        top: calc(100% + 1px) !important;
        right: 0 !important;
        left: 0 !important;
        display: none !important;
        max-height: calc(100dvh - 6.5rem);
        overflow: auto !important;
        border: 1px solid rgba(151, 194, 176, .24) !important;
        border-top: 0 !important;
        border-radius: 0 0 14px 14px !important;
        padding: .72rem !important;
        background: rgba(5, 14, 11, .995) !important;
        box-shadow: 0 22px 52px rgba(0, 0, 0, .52) !important;
    }

    body .kw-primary-nav.is-open {
        display: block !important;
    }

    body .kw-primary-links {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        justify-content: stretch;
        gap: .5rem !important;
    }

    body .kw-primary-link,
    body .kw-topics-menu,
    body .kw-topics-summary {
        width: 100% !important;
    }

    body .kw-primary-link,
    body .kw-topics-summary {
        justify-content: space-between;
        min-height: 3rem !important;
        padding: .7rem .8rem !important;
        font-size: .8rem !important;
    }

    body .kw-topics-menu {
        grid-column: 1 / -1;
    }

    body .kw-topics-panel {
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        margin-top: .45rem !important;
        padding: .72rem !important;
        box-shadow: none !important;
    }

    body .kw-topics-intro {
        grid-template-columns: minmax(0, 1fr);
        gap: .4rem;
    }

    body .kw-topics-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body .kw-mobile-utilities {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: .42rem;
        margin-top: .65rem;
        padding-top: .65rem;
        border-top: 1px solid rgba(151, 194, 176, .18);
    }

    body .kw-mobile-utilities a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 2.55rem;
        border: 1px solid rgba(151, 194, 176, .17);
        border-radius: 9px;
        color: var(--muted-2);
        background: rgba(13, 28, 24, .48);
        font-size: .7rem;
        font-weight: 750;
        text-decoration: none;
    }

    body .kw-footer-main {
        grid-template-columns: minmax(0, 1fr);
    }

    body .kw-footer-nav-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    body .kw-ecosystem-product .ecosystem-product-role,
    body .kw-ecosystem-product .current-mark,
    body .kw-ecosystem-product .external-mark {
        display: none !important;
    }

    body .kw-ecosystem-product {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    body .kw-pathway-inner {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: .5rem !important;
        padding-block: .5rem !important;
    }

    body .kw-pathway-context {
        padding: 0 0 .42rem !important;
        border-right: 0 !important;
        border-bottom: 1px solid rgba(151, 194, 176, .18) !important;
    }

    body .kw-pathway-context .section-nav-description {
        -webkit-line-clamp: 1;
    }

    body .kw-pathway-disclosure > summary {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        gap: .5rem;
        min-height: 2.55rem;
        border: 1px solid rgba(151, 194, 176, .18);
        border-radius: 10px;
        padding: .58rem .7rem;
        color: var(--text);
        background: rgba(13, 28, 24, .5);
        font-size: .72rem;
        font-weight: 780;
        cursor: pointer;
    }

    body .kw-pathway-disclosure > summary small {
        color: var(--muted);
        font-size: .58rem;
        font-weight: 650;
    }

    body .kw-pathway-disclosure > summary > span:last-child {
        color: var(--primary);
        transition: transform .18s var(--ease);
    }

    body .kw-pathway-disclosure[open] > summary > span:last-child {
        transform: rotate(45deg);
    }

    body .kw-pathway-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        margin-top: .45rem;
    }

    body .kw-footer-heading {
        grid-template-columns: minmax(0, 1fr);
        gap: .7rem;
    }

    body .kw-footer-ecosystem-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body .kw-footer-proof-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .kw-footer-proof-grid > div {
        border-bottom: 1px solid rgba(151, 194, 176, .14);
    }

    body .kw-footer-proof-grid > div:nth-child(2n) {
        border-right: 0;
    }

    body .kw-footer-proof-grid > div:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
    }

    body .kw-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    body .kw-footer-actions {
        justify-content: flex-start;
    }

    body .primary-answer {
        grid-template-columns: minmax(0, 1fr);
    }

    body .primary-answer-label {
        grid-row: auto;
        justify-self: start;
    }
}

@media (max-width: 560px) {
    body .kw-ecosystem-products {
        gap: .28rem !important;
    }

    body .kw-ecosystem-product {
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: center;
        min-height: 2.45rem !important;
        padding: .4rem .3rem !important;
        text-align: center;
    }

    body .kw-product-index {
        display: none;
    }

    body .kw-ecosystem-product .ecosystem-product-name {
        font-size: .6rem !important;
        text-overflow: clip;
    }

    body .kw-brand {
        grid-template-columns: 2.1rem minmax(0, 1fr);
    }

    body .kw-brand .brand-mark {
        width: 2rem;
    }

    body .kw-brand .brand-name {
        font-size: .82rem;
    }

    body .kw-brand .brand-copy small {
        display: none;
    }

    body .kw-primary-links,
    body .kw-topics-groups,
    body .kw-mobile-utilities,
    body .kw-pathway-cards,
    body .kw-footer-nav-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body .kw-topics-menu {
        grid-column: auto;
    }

    body .kw-pathway-card small {
        -webkit-line-clamp: 1;
    }

    body .kw-footer-nav > p {
        min-height: 0;
    }

    body .kw-footer-proof-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body .kw-footer-proof-grid > div,
    body .kw-footer-proof-grid > div:nth-child(2n),
    body .kw-footer-proof-grid > div:last-child {
        grid-column: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(151, 194, 176, .14);
    }

    body .kw-footer-proof-grid > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 300px) {
    body .kw-ecosystem-product .ecosystem-product-name {
        font-size: .52rem !important;
    }

    body .kw-header-inner {
        min-height: 4.1rem !important;
    }

    body .kw-nav-toggle {
        width: 2.55rem;
        height: 2.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .kw-ecosystem-product,
    body .kw-primary-link,
    body .kw-topics-summary,
    body .kw-topics-summary .nav-summary-mark,
    body .kw-pathway-disclosure > summary > span:last-child {
        transition: none !important;
    }
}

@media print {
    body .kw-ecosystem-rail,
    body .kw-main-header,
    body .kw-pathway-nav,
    body .kw-footer-ecosystem,
    body .kw-footer-nav-grid,
    body .kw-footer-actions {
        display: none !important;
    }

    body .kw-site-footer {
        margin-top: 2rem;
        border-top: 1px solid #777;
        color: #000;
        background: #fff;
    }

    body .kw-footer-main {
        display: block;
        padding-block: 1rem;
    }

    body .kw-footer-proof-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* ---------- Release 1.22 final shell refinements ---------- */
body .kw-ecosystem-inner {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    min-height: 3.95rem !important;
}

body .kw-ecosystem-products {
    max-width: 62rem;
}

body .kw-site-tools {
    position: relative;
    min-width: 0;
    margin: 0;
}

body .kw-site-tools > summary {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    min-height: 2.7rem;
    border: 1px solid rgba(151, 194, 176, .2);
    border-radius: 10px;
    padding: .58rem .72rem;
    color: var(--muted-2);
    background: rgba(13, 28, 24, .52);
    font-size: .67rem;
    font-weight: 780;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
}

body .kw-site-tools > summary::-webkit-details-marker {
    display: none;
}

body .kw-site-tools > summary > span:last-child {
    display: grid;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(167, 244, 50, .08);
    transition: transform .18s var(--ease);
}

body .kw-site-tools[open] > summary > span:last-child {
    transform: rotate(45deg);
}

body .kw-site-tools > summary:hover,
body .kw-site-tools > summary:focus-visible,
body .kw-site-tools[open] > summary {
    border-color: rgba(57, 217, 200, .48);
    color: var(--text);
    background: rgba(17, 36, 30, .86);
}

body .kw-site-tools-menu {
    position: absolute;
    top: calc(100% + .42rem);
    right: 0;
    z-index: 115;
    display: grid;
    width: min(15rem, calc(100vw - 1.5rem));
    gap: .32rem;
    border: 1px solid rgba(151, 194, 176, .24);
    border-radius: 12px;
    padding: .55rem;
    background: rgba(5, 14, 11, .995);
    box-shadow: 0 22px 52px rgba(0, 0, 0, .48);
}

body .kw-site-tools-menu a {
    display: flex;
    align-items: center;
    min-height: 2.55rem;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: .55rem .65rem;
    color: var(--muted-2);
    background: rgba(13, 28, 24, .44);
    font-size: .72rem;
    font-weight: 740;
    text-decoration: none;
}

body .kw-site-tools-menu a:hover,
body .kw-site-tools-menu a:focus-visible {
    border-color: rgba(57, 217, 200, .38);
    color: var(--text);
    background: rgba(17, 36, 30, .78);
}

body .kw-topics-intro > div:last-child {
    display: grid;
    gap: .4rem;
}

body .kw-topics-intro > div:last-child p {
    max-width: 52rem;
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
}

body .kw-topics-intro .text-link {
    width: fit-content;
    font-size: .72rem;
}

/* ---------- Human-readable topic and entity directory ---------- */
body .topic-start,
body .topic-directory,
body .core-entity-section,
body .ecosystem-routing {
    margin-block: clamp(2rem, 5vw, 4rem);
}

body .topic-start-grid,
body .topic-directory-grid,
body .core-entity-grid,
body .ecosystem-routing-grid {
    display: grid;
    gap: .85rem;
}

body .topic-start-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body .topic-start-card {
    display: grid;
    align-content: start;
    gap: .42rem;
    min-width: 0;
    border: 1px solid rgba(151, 194, 176, .2);
    border-radius: 14px;
    padding: 1rem;
    color: var(--text);
    background: linear-gradient(145deg, rgba(167, 244, 50, .055), rgba(13, 28, 24, .72));
    text-decoration: none;
}

body .topic-start-card:hover,
body .topic-start-card:focus-visible {
    border-color: rgba(57, 217, 200, .48);
    color: var(--text);
    transform: translateY(-1px);
}

body .topic-start-card > span,
body .core-entity-card .record-id,
body .ecosystem-routing-grid article > span {
    color: var(--teal);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .58rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body .topic-start-card strong {
    font-size: .92rem;
    line-height: 1.25;
}

body .topic-start-card small {
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.5;
}

body .topic-directory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

body .topic-directory-group,
body .core-entity-card,
body .ecosystem-routing-grid article {
    min-width: 0;
    border: 1px solid rgba(151, 194, 176, .18);
    border-radius: 14px;
    padding: 1rem;
    background: rgba(13, 28, 24, .62);
}

body .topic-directory-group header {
    min-height: 6.2rem;
    border-bottom: 1px solid rgba(151, 194, 176, .16);
    padding-bottom: .7rem;
}

body .topic-directory-group h3,
body .core-entity-card h3,
body .ecosystem-routing-grid h3 {
    margin: 0;
    color: var(--text);
    font-size: .94rem;
}

body .topic-directory-group header p,
body .core-entity-card p,
body .ecosystem-routing-grid p {
    margin: .35rem 0 0;
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.5;
}

body .topic-directory-group ul {
    display: grid;
    gap: .34rem;
    margin: .72rem 0 0;
    padding: 0;
    list-style: none;
}

body .topic-directory-group li a {
    display: grid;
    gap: .12rem;
    border: 1px solid transparent;
    border-radius: 9px;
    padding: .55rem .58rem;
    color: var(--muted-2);
    background: rgba(3, 8, 6, .28);
    text-decoration: none;
}

body .topic-directory-group li a:hover,
body .topic-directory-group li a:focus-visible {
    border-color: rgba(57, 217, 200, .36);
    color: var(--text);
    background: rgba(17, 36, 30, .74);
}

body .topic-directory-group li strong {
    color: inherit;
    font-size: .72rem;
}

body .topic-directory-group li span {
    color: var(--muted);
    font-size: .61rem;
    line-height: 1.35;
}

body .core-entity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body .core-entity-card {
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

body .core-entity-card .entity-aliases {
    font-size: .64rem;
}

body .core-entity-card > a,
body .ecosystem-routing-grid article > a {
    width: fit-content;
    margin-top: auto;
    padding-top: .75rem;
    color: var(--teal);
    font-size: .68rem;
    font-weight: 760;
}

body .ecosystem-routing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

body .ecosystem-routing-grid article:nth-child(2) {
    border-color: rgba(167, 244, 50, .38);
}

body .ecosystem-routing-grid article:nth-child(3) {
    border-color: rgba(255, 180, 84, .34);
}

@media (max-width: 1180px) {
    body .kw-ecosystem-inner {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body .kw-site-tools {
        display: none;
    }

    body .topic-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body .topic-start-grid,
    body .core-entity-grid,
    body .ecosystem-routing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body .topic-start-grid,
    body .topic-directory-grid,
    body .core-entity-grid,
    body .ecosystem-routing-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body .topic-directory-group header {
        min-height: 0;
    }
}

@media print {
    body .kw-site-tools,
    body .kw-topics-menu,
    body .kw-pathway-nav,
    body .kw-footer-ecosystem,
    body .kw-footer-actions {
        display: none !important;
    }
}

/* ---------- Footer discovery surface ---------- */
body .footer-discovery {
    border-block: 1px solid rgba(151, 194, 176, .18);
    background:
        linear-gradient(90deg, rgba(140, 200, 255, .055), transparent 45%, rgba(57, 217, 200, .045)),
        rgba(7, 17, 14, .72);
}

body .footer-discovery-inner {
    display: grid;
    grid-template-columns: minmax(16rem, .9fr) minmax(0, 1.35fr);
    align-items: start;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding-block: clamp(1.35rem, 3vw, 2.25rem);
}

body .footer-discovery-inner h2 {
    max-width: 28ch;
    margin: .2rem 0 0;
    color: var(--text);
    font-size: clamp(1.15rem, 2.3vw, 1.75rem);
    line-height: 1.2;
}

body .footer-discovery-inner > div > p:last-child {
    max-width: 52rem;
    margin: .55rem 0 0;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.55;
}

body .footer-discovery-inner nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .46rem;
}

body .footer-discovery-inner nav a {
    display: flex;
    min-width: 0;
    min-height: 2.9rem;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    border: 1px solid rgba(151, 194, 176, .18);
    border-radius: 9px;
    padding: .55rem .62rem;
    color: var(--muted-2);
    background: rgba(13, 28, 24, .56);
    font-size: .65rem;
    font-weight: 750;
    text-decoration: none;
}

body .footer-discovery-inner nav a span {
    flex: 0 0 auto;
    border: 1px solid rgba(140, 200, 255, .28);
    border-radius: 999px;
    padding: .12rem .26rem;
    color: var(--blue);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .48rem;
    letter-spacing: .05em;
}

body .footer-discovery-inner nav a:hover,
body .footer-discovery-inner nav a:focus-visible {
    border-color: rgba(57, 217, 200, .45);
    color: var(--text);
    background: rgba(17, 36, 30, .82);
}

@media (max-width: 1080px) {
    body .footer-discovery-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    body .footer-discovery-inner nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 380px) {
    body .footer-discovery-inner nav {
        grid-template-columns: minmax(0, 1fr);
    }
}

.kw-footer-handoff-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.1rem;
}

.kw-footer-handoff-links a {
    display: grid;
    gap: .28rem;
    min-width: 0;
    padding: .85rem .95rem;
    border: 1px solid rgba(57, 217, 200, .24);
    border-radius: .8rem;
    background: rgba(7, 17, 14, .56);
    text-decoration: none;
}

.kw-footer-handoff-links a:hover,
.kw-footer-handoff-links a:focus-visible {
    border-color: rgba(167, 244, 50, .7);
    background: rgba(20, 40, 34, .78);
}

.kw-footer-handoff-links strong {
    color: var(--text, #f3faf6);
}

.kw-footer-handoff-links span {
    color: var(--muted, #9ab5aa);
    font-size: .82rem;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .kw-footer-handoff-links {
        grid-template-columns: 1fr;
    }
}

/* v1.22 micro-viewport containment: contextual pathways must wrap, not widen. */
body .kw-pathway-inner,
body .kw-pathway-disclosure,
body .kw-pathway-cards,
body .kw-pathway-card {
    max-width: 100%;
    min-width: 0;
}

body .kw-pathway-context .section-nav-description,
body .kw-pathway-disclosure > summary,
body .kw-pathway-disclosure > summary small,
body .kw-pathway-card,
body .kw-pathway-card span,
body .kw-pathway-card small {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
}

body .kw-pathway-card,
body .kw-pathway-card span,
body .kw-pathway-card small {
    max-inline-size: 100%;
}

@media (max-width: 560px) {
    body .kw-pathway-inner,
    body .kw-pathway-disclosure,
    body .kw-pathway-cards {
        overflow: hidden !important;
    }

    body .kw-pathway-card {
        width: 100%;
        overflow: hidden !important;
    }

    body .kw-pathway-card small {
        display: block !important;
        -webkit-line-clamp: unset !important;
    }
}

/* ---------- Release 1.24 compact navigation density ----------
   Preserve the 1.22 visual language while reclaiming above-the-fold space.
   Only the main header is sticky; the ecosystem and pathway rails remain in flow. */

:root {
    --kw-ecosystem-compact-height: 2.55rem;
    --kw-header-compact-height: 3.5rem;
    --kw-pathway-compact-height: 2.9rem;
}

body .kw-ecosystem-inner {
    grid-template-columns: minmax(0, 1fr) max-content !important;
    gap: .5rem !important;
    min-height: var(--kw-ecosystem-compact-height) !important;
    padding-block: .22rem !important;
}

body .kw-ecosystem-products {
    display: flex !important;
    max-width: none !important;
    gap: .32rem !important;
}

body .kw-ecosystem-product {
    flex: 1 1 0;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    gap: .36rem !important;
    min-height: 2.05rem !important;
    padding: .26rem .48rem !important;
    border-radius: 8px !important;
}

body .kw-product-index {
    width: 1.2rem;
    height: 1.2rem;
    font-size: .45rem;
}

body .kw-product-copy {
    display: flex;
    align-items: baseline;
    gap: .28rem;
}

body .kw-ecosystem-product .ecosystem-product-name {
    flex: 0 0 auto;
    font-size: .66rem !important;
}

body .kw-ecosystem-product .ecosystem-product-role {
    flex: 1 1 auto;
    font-size: .53rem !important;
}

body .kw-ecosystem-product .ecosystem-product-role::before {
    content: "·";
    margin-right: .28rem;
    color: rgba(151, 194, 176, .62);
}

body .kw-ecosystem-product .external-mark {
    min-width: .8rem;
    font-size: .58rem;
}

body .kw-ecosystem-product .current-mark {
    width: .48rem;
    height: .48rem;
    min-width: .48rem;
    overflow: hidden;
    border: 0;
    padding: 0;
    color: transparent;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(167, 244, 50, .09);
}

body .kw-site-tools > summary {
    min-height: 2.05rem;
    gap: .42rem;
    border-radius: 8px;
    padding: .32rem .5rem;
    font-size: .61rem;
}

body .kw-site-tools > summary > span:last-child {
    width: .95rem;
    height: .95rem;
    font-size: .62rem;
}

body .kw-site-tools-menu {
    top: calc(100% + .28rem);
}

body .kw-header-inner {
    gap: clamp(.55rem, 1.2vw, 1rem) !important;
    min-height: var(--kw-header-compact-height) !important;
    padding-block: .24rem !important;
}

body .kw-brand {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: .46rem;
    min-width: 10.2rem !important;
    max-width: 11.4rem;
    padding: .12rem .7rem .12rem 0 !important;
}

body .kw-brand .brand-mark {
    width: 1.75rem;
}

body .kw-brand .brand-name {
    font-size: .82rem;
}

body .kw-brand .brand-copy small {
    display: none !important;
}

body .kw-primary-links {
    gap: .28rem !important;
}

body .kw-primary-link,
body .kw-topics-summary {
    min-height: 2.2rem !important;
    border-radius: 8px !important;
    padding: .4rem .58rem !important;
    font-size: clamp(.64rem, .66vw, .72rem) !important;
}

body .kw-primary-link[aria-current="page"]::after,
body .kw-primary-link[aria-current="location"]::after,
body .kw-topics-menu.is-current > .kw-topics-summary::after {
    right: .48rem;
    bottom: .2rem;
    left: .48rem;
}

body .kw-topics-summary {
    gap: .38rem;
}

body .kw-topics-summary .nav-summary-mark {
    width: .95rem;
    height: .95rem;
    font-size: .64rem;
}

body .kw-topics-panel {
    top: calc(100% + .28rem) !important;
}

body .kw-pathway-inner {
    grid-template-columns: max-content minmax(0, 1fr) !important;
    align-items: center;
    gap: .45rem !important;
    min-height: var(--kw-pathway-compact-height);
    padding-block: .28rem !important;
}

body .kw-pathway-context {
    display: flex !important;
    align-items: center;
    align-content: center;
    gap: .34rem !important;
    max-width: 17rem;
    padding: 0 .52rem 0 0 !important;
    white-space: nowrap;
}

body .kw-pathway-context .section-nav-eyebrow {
    display: none !important;
}

body .kw-pathway-context strong {
    flex: 0 0 auto;
    font-size: .72rem !important;
}

body .kw-pathway-context .section-nav-description {
    display: block !important;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: .55rem !important;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}

body .kw-pathway-disclosure {
    overflow: hidden;
}

body .kw-pathway-disclosure > summary {
    display: none !important;
}

body .kw-pathway-cards {
    display: flex !important;
    grid-template-columns: none !important;
    gap: .3rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 0 .08rem !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(57, 217, 200, .34) transparent;
    scroll-snap-type: x proximity !important;
}

body .kw-pathway-card {
    flex: 0 0 auto;
    width: auto !important;
    min-width: max-content;
    min-height: 2.14rem !important;
    flex-direction: row;
    align-items: center;
    gap: .22rem;
    border-radius: 8px !important;
    padding: .34rem .56rem !important;
    scroll-snap-align: start !important;
    white-space: nowrap !important;
}

body .kw-pathway-card[aria-current="page"] {
    box-shadow: inset 2px 0 var(--primary);
}

body .kw-pathway-card span {
    font-size: .62rem !important;
    line-height: 1.1;
    white-space: nowrap !important;
}

body .kw-pathway-card small {
    display: none !important;
}

@media (max-width: 1360px) and (min-width: 1181px) {
    body .kw-primary-link,
    body .kw-topics-summary {
        padding-inline: .5rem !important;
        font-size: .63rem !important;
    }

    body .kw-brand {
        min-width: 9.7rem !important;
    }

    body .kw-pathway-context .section-nav-description {
        max-width: 10rem;
    }
}

@media (max-width: 1180px) {
    body .kw-ecosystem-inner {
        min-height: 2.35rem !important;
        padding-block: .18rem !important;
    }

    body .kw-ecosystem-product {
        min-height: 1.95rem !important;
        padding: .24rem .4rem !important;
    }

    body .kw-header-inner {
        min-height: 3.35rem !important;
        padding-block: .22rem !important;
    }

    body .kw-nav-toggle {
        width: 2.38rem;
        height: 2.38rem;
        border-radius: 8px;
    }

    body .kw-primary-nav {
        max-height: calc(100dvh - 3.7rem);
    }

    body .kw-pathway-inner {
        grid-template-columns: max-content minmax(0, 1fr) !important;
        gap: .38rem !important;
        min-height: 2.72rem;
        padding-block: .25rem !important;
    }

    body .kw-pathway-context {
        padding: 0 .42rem 0 0 !important;
        border-right: 1px solid rgba(151, 194, 176, .18) !important;
        border-bottom: 0 !important;
    }

    body .kw-pathway-context .section-nav-description {
        display: none !important;
    }

    body .kw-pathway-cards {
        display: flex !important;
        margin: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    body .kw-pathway-card {
        width: auto !important;
        min-height: 2.05rem !important;
        overflow: visible !important;
    }
}

@media (max-width: 820px) {
    body .kw-product-copy {
        display: block;
    }

    body .kw-ecosystem-product .ecosystem-product-role {
        display: none !important;
    }

    body .kw-ecosystem-product .ecosystem-product-role::before {
        content: none;
    }

    body .kw-pathway-inner {
        grid-template-columns: max-content minmax(0, 1fr) !important;
        gap: .34rem !important;
        padding-block: .22rem !important;
    }

    body .kw-pathway-context {
        padding: 0 .38rem 0 0 !important;
        border-right: 1px solid rgba(151, 194, 176, .18) !important;
        border-bottom: 0 !important;
    }

    body .kw-pathway-disclosure > summary {
        display: none !important;
    }

    body .kw-pathway-cards {
        grid-template-columns: none !important;
        margin-top: 0 !important;
    }
}

@media (max-width: 560px) {
    body .kw-ecosystem-products {
        gap: .2rem !important;
    }

    body .kw-ecosystem-product {
        display: flex !important;
        justify-content: center;
        min-height: 1.85rem !important;
        padding: .2rem .24rem !important;
        text-align: center;
    }

    body .kw-product-index,
    body .kw-ecosystem-product .external-mark,
    body .kw-ecosystem-product .current-mark {
        display: none !important;
    }

    body .kw-ecosystem-product .ecosystem-product-name {
        font-size: .56rem !important;
    }

    body .kw-header-inner {
        min-height: 3.15rem !important;
    }

    body .kw-brand {
        grid-template-columns: 1.62rem minmax(0, 1fr);
        gap: .38rem;
    }

    body .kw-brand .brand-mark {
        width: 1.58rem;
    }

    body .kw-nav-toggle {
        width: 2.3rem;
        height: 2.3rem;
    }

    body .kw-pathway-inner,
    body .kw-pathway-disclosure,
    body .kw-pathway-cards {
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }

    body .kw-pathway-card {
        width: auto !important;
        min-width: max-content;
    }
}

@media print {
    body .kw-ecosystem-rail,
    body .kw-main-header,
    body .kw-pathway-nav {
        display: none !important;
    }
}

/* ---------- Release 1.24 overlay stacking correction ----------
   Keep every disclosure above the layers it visually crosses. The ecosystem
   rail itself must not create a low stacking context, otherwise its Tools
   popover is trapped beneath the sticky primary header regardless of the
   popover's own z-index. */
:root {
    --kw-z-pathway: 20;
    --kw-z-sticky-header: 100;
    --kw-z-header-popover: 130;
    --kw-z-ecosystem-popover: 160;
}

body .kw-ecosystem-rail {
    z-index: auto !important;
    overflow: visible !important;
}

body .kw-ecosystem-inner,
body .kw-site-tools {
    overflow: visible !important;
}

body .kw-site-tools {
    z-index: auto;
}

body .kw-site-tools[open] {
    z-index: var(--kw-z-ecosystem-popover);
}

body .kw-site-tools-menu {
    z-index: 1;
}

body .kw-main-header {
    z-index: var(--kw-z-sticky-header) !important;
    overflow: visible !important;
    isolation: isolate;
}

body .kw-header-inner,
body .kw-primary-links {
    overflow: visible !important;
}

body .kw-topics-panel {
    z-index: var(--kw-z-header-popover);
}

body .kw-pathway-nav {
    z-index: var(--kw-z-pathway);
    isolation: isolate;
}

@media (min-width: 1181px) {
    body .kw-primary-nav {
        overflow: visible !important;
    }
}
