* {
    box-sizing: border-box;
}

.site-header {
    width: 100%;
    border-bottom: 1px solid #dadce0;
    background: #fff;
}

.site-header-inner {
    display: flex;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 18px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    color: #202124;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.site-nav a {
    display: inline-flex;
    min-height: 36px;
    padding: 7px 13px;
    align-items: center;
    justify-content: center;
    border: 1px solid #b8bdc6;
    border-radius: 999px;
    background: #fff;
    color: #202124;
    font-size: 0.9rem;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.site-nav a:hover {
    border-color: #202124;
    background: #f5f6f7;
}

.site-nav a[aria-current="page"] {
    border-color: #202124;
    background: #202124;
    color: #fff;
}

.site-brand:focus-visible,
.site-nav a:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}

/* Keep the preview page's readable content aligned with the homepage while
   allowing its simulated device frames to use the full viewport width. */
.preview-intro,
.example-heading,
.note,
.section-intro {
    max-width: 860px !important;
}

@media (max-width: 680px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px 12px;
    }

    .site-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .site-nav a {
        flex: 1 1 auto;
    }
}
