:root {
    --ink: #171717;
    --muted: #6f7275;
    --line: #e9ece8;
    --paper: #ffffff;
    --wash: #f7f8f6;
    --site-content-top-gap: 8px;
}

* {
    letter-spacing: 0;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
}

main {
    flex: 1 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.header-bar {
    min-height: 51px;
    display: grid;
    grid-template-columns: 38px minmax(96px, 141px) 1fr;
    align-items: center;
    gap: 18px;
    padding: 0 28px 0 18px;
}

.brand,
.drawer-brand {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
}

.brand img,
.drawer-brand img {
    width: auto;
    max-width: 96px;
    max-height: 27px;
    object-fit: contain;
    display: block;
}

.menu-button {
    width: 38px;
    height: 38px;
    display: inline-grid;
    align-content: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    color: var(--ink);
    background: transparent;
    padding: 0;
}

.menu-button span {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 28px;
}

.top-nav .nav-link {
    color: var(--ink);
    padding: 4px 0;
    font-size: 13px;
    font-weight: 520;
    text-transform: uppercase;
    text-decoration: none;
}

.top-nav-icon {
    display: none;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.site-drawer {
    --bs-offcanvas-width: min(88vw, 430px);
    border: 0;
    color: var(--ink);
    background: #fff;
}

.drawer-head {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 28px 30px 18px;
}

.drawer-close {
    position: relative;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0;
}

.drawer-close::before,
.drawer-close::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 14px;
    width: 2px;
    height: 28px;
    background: var(--ink);
}

.drawer-close::before {
    transform: rotate(45deg);
}

.drawer-close::after {
    transform: rotate(-45deg);
}

.drawer-body {
    padding: 36px 30px 44px;
}

.drawer-nav {
    display: grid;
    gap: 22px;
}

.drawer-group {
    display: grid;
    gap: 8px;
}

.drawer-link {
    color: var(--ink);
    text-decoration: none;
    text-transform: uppercase;
}

.drawer-parent {
    font-size: 18.48px;
    line-height: 1.18;
    font-weight: 520;
}

.drawer-toggle {
    appearance: none;
    width: auto;
    max-width: 100%;
    display: inline-grid;
    grid-template-columns: auto 14px;
    align-items: center;
    justify-content: start;
    gap: 8px;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.drawer-toggle::after {
    content: "";
    width: 9px;
    height: 9px;
    justify-self: end;
    border-right: 1.8px solid #9b9f9c;
    border-bottom: 1.8px solid #9b9f9c;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .18s ease;
}

.drawer-toggle.is-open::after {
    transform: translateY(3px) rotate(225deg);
}

.drawer-link-label {
    min-width: 0;
}

.drawer-submenu {
    display: none;
    gap: 9.6px;
    padding: 0;
}

.drawer-group.is-open > .drawer-submenu {
    display: grid;
}

.drawer-child {
    color: #2c2c2c;
    font-size: 14.9688px;
    line-height: 1.22;
    font-weight: 430;
}

.drawer-category {
    margin-top: 22px;
}

.drawer-subgroup {
    display: grid;
    gap: 8px;
    margin: 0;
}

.drawer-grandchild {
    color: #3b3b3b;
    font-weight: 430;
}

.offcanvas-backdrop.show {
    opacity: 1;
    background: rgba(0, 0, 0, .42);
}

.page-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.page-hero {
    padding: var(--site-content-top-gap) 16px 18px;
}

.hero-copy {
    max-width: 760px;
}

.site-breadcrumbs {
    max-width: 100%;
    margin: 0 0 14px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.site-breadcrumbs::-webkit-scrollbar {
    display: none;
}

.site-breadcrumbs ol {
    display: inline-flex;
    align-items: center;
    min-width: max-content;
    gap: 7px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
    list-style: none;
    white-space: nowrap;
}

.site-breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.site-breadcrumbs li + li::before {
    content: "›";
    color: #9a9a9a;
}

.site-breadcrumbs a {
    color: var(--ink);
    text-decoration: none;
}

.site-breadcrumbs a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-breadcrumbs span {
    color: var(--muted);
}

h1 {
    margin: 0;
    font-size: 30.6px;
    line-height: .98;
    font-weight: 500;
}

.content-block {
    padding: 20px 16px 28px;
    max-width: 700px;
    line-height: 1.75;
}

.content-block p {
    margin-bottom: 15px;
}

.child-grid {
    display: grid;
    gap: 1px;
    padding: 0 16px 40px;
    background: var(--line);
}

.child-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    color: var(--ink);
    background: var(--paper);
    text-decoration: none;
}

.child-card span {
    font-size: 18px;
    font-weight: 500;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-inner {
    padding: 20px 16px;
    font-size: 13px;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}

.footer-link {
    color: var(--muted);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--ink);
}

@media (min-width: 992px) {
    .header-bar {
        grid-template-columns: 38px 141px 1fr;
        gap: 28px;
        min-height: 58px;
        padding: 0 27px 0 17px;
    }

    .site-drawer {
        --bs-offcanvas-width: min(45vw, 520px);
    }

    .drawer-head {
        padding: 34px 38px 22px;
    }

    .drawer-body {
        padding: 48px 38px 54px;
    }

    .page-hero {
        padding: var(--site-content-top-gap) 28px 28px;
    }

    h1 {
        font-size: 49.2px;
    }

    .content-block {
        padding: 26px 28px 42px;
    }

    .child-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 28px 56px;
    }

    .footer-inner {
        padding: 26px 28px;
    }
}

@media (max-width: 767.98px) {
    .header-bar {
        grid-template-columns: 38px minmax(68px, 82px) minmax(0, 1fr);
        gap: 10px;
        padding: 0 10px 0 12px;
    }

    .brand,
    .top-nav {
        min-width: 0;
    }

    .brand img {
        max-width: 78px;
    }

    .top-nav {
        gap: 7px;
    }

    .top-nav .nav-link.has-top-nav-icon {
        position: relative;
        width: 30px;
        height: 38px;
        display: grid;
        place-items: center;
        padding: 0;
    }

    .top-nav .nav-link.has-top-nav-icon .top-nav-icon {
        display: block;
    }

    .top-nav .nav-link.has-top-nav-icon .top-nav-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        clip-path: inset(50%);
        white-space: nowrap;
    }
}


body.drawer-open {
    overflow: hidden;
}

.site-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1055;
    width: min(88vw, 430px);
    color: var(--ink);
    background: #fff;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s ease;
    overflow-y: auto;
}

.site-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.site-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    border: 0;
    background: rgba(0, 0, 0, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.site-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

.site-header {
    z-index: 1200;
}

.menu-button {
    position: relative;
    z-index: 1201;
    cursor: pointer;
    text-decoration: none;
    pointer-events: auto;
}

.site-drawer:target {
    transform: translateX(0);
    visibility: visible;
}

.site-drawer:target + .site-drawer-target-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.site-drawer-target-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    background: rgba(0, 0, 0, .42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.drawer-close {
    display: block;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
    z-index: 1060;
}

.drawer-close::before,
.drawer-close::after {
    display: block;
}

.site-drawer {
    z-index: 1300;
}

.site-drawer-backdrop,
.site-drawer-target-backdrop {
    z-index: 1290;
}

.drawer-close {
    z-index: 1310;
}

.drawer-head {
    position: relative;
    z-index: 1310;
}

.drawer-close {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: var(--ink) !important;
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    text-decoration: none !important;
}

.drawer-close::before,
.drawer-close::after {
    content: none !important;
}

/* Final drawer behavior: the header stays fixed, and the hamburger turns into the close control. */
.site-header {
    z-index: 1400;
}

.menu-button {
    position: relative;
    display: block;
    width: 38px;
    height: 38px;
    z-index: 1401;
}

.menu-button span {
    position: absolute;
    left: 6px;
    top: 50%;
    width: 25px;
    height: 2px;
    background: currentColor;
    transform-origin: center;
    transition: transform .22s ease, opacity .16s ease;
}

.menu-button span:nth-child(1) {
    transform: translateY(-8px);
}

.menu-button span:nth-child(2) {
    transform: translateY(0);
}

.menu-button span:nth-child(3) {
    transform: translateY(8px);
}

body.drawer-open .menu-button span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

body.drawer-open .menu-button span:nth-child(2) {
    opacity: 0;
}

body.drawer-open .menu-button span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

.site-drawer {
    z-index: 1300;
}

.site-drawer-backdrop,
.site-drawer-target-backdrop {
    z-index: 1250;
}

.drawer-head {
    display: none !important;
}

.drawer-body {
    padding: 30px 30px 44px;
}

.drawer-child {
    font-size: 14.9688px;
    line-height: 1.28;
}

.menu-button {
    transform: translateY(-2px);
}

body.drawer-open .menu-button span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

body.drawer-open .menu-button span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

.menu-button {
    transform: none;
}

.brand {
    transform: translate(-2px, 2px);
}

@media (min-width: 992px) {
    .menu-button {
        transform: translateX(5px);
    }

    .brand {
        transform: translate(-6px, 2px);
    }
}

@media (min-width: 860px) {
    :root {
        --site-content-top-gap: 20px;
    }
}
