.cs-brand-page {
    --csb-bg: #fff;
    --csb-surface: #f6f9fb;
    --csb-ink: #101828;
    --csb-text: #1d2939;
    --csb-muted: #667085;
    --csb-line: #dfe7ec;
    --csb-deep: #004d7a;
    --csb-teal: #008793;
    --csb-green: #00bf72;
    --csb-lime: #a8eb12;
    --csb-gradient: linear-gradient(90deg, #004d7a 0%, #008793 38%, #00bf72 72%, #a8eb12 100%);
    --csb-max: 1180px;
    color: var(--csb-text);
    background: var(--csb-bg);
    font-family: OpenSans, "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cs-brand-page *,
.cs-brand-page *::before,
.cs-brand-page *::after {
    box-sizing: border-box;
}

.cs-brand-page a {
    color: inherit;
}

.cs-brand-page [id] {
    scroll-margin-top: 62px;
}

.cs-brand-wrap {
    width: min(calc(100% - 32px), var(--csb-max));
    margin: 0 auto;
}

.cs-brand-eyebrow {
    margin: 0 0 12px;
    color: var(--csb-teal);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.cs-brand-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(76px, 10vw, 132px) 0 clamp(42px, 6vw, 72px);
    background:
        radial-gradient(circle at 9% 20%, rgba(168, 235, 18, .12) 0, rgba(168, 235, 18, 0) 24%),
        radial-gradient(circle at 88% 6%, rgba(0, 135, 147, .15) 0, rgba(0, 135, 147, 0) 28%),
        linear-gradient(135deg, rgba(255, 255, 255, .97) 0%, rgba(246, 249, 251, .97) 45%, rgba(231, 249, 243, .95) 100%);
}

.cs-brand-hero::before,
.cs-brand-hero::after {
    position: absolute;
    content: "";
    pointer-events: none;
}

.cs-brand-hero::before {
    inset: 0;
    opacity: .5;
    background-image:
        linear-gradient(90deg, rgba(0, 135, 147, .08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 135, 147, .08) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(90deg, transparent, #000 34%, #000 100%);
}

.cs-brand-hero::after {
    width: 480px;
    height: 480px;
    right: -180px;
    bottom: -260px;
    border: 1px solid rgba(0, 191, 114, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 72px rgba(0, 135, 147, .05), 0 0 0 144px rgba(0, 77, 122, .035);
}

.cs-brand-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
    gap: clamp(28px, 5vw, 76px);
    align-items: center;
}

.cs-brand-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--csb-ink);
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: .96;
}

.cs-brand-lead {
    max-width: 680px;
    margin: 24px 0 0;
    color: #4f5868;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 600;
    line-height: 1.55;
}

.cs-brand-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.cs-brand-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 18px;
    border: 1px solid rgba(0, 135, 147, .24);
    border-radius: 8px;
    background: #fff;
    color: var(--csb-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .035em;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.cs-brand-button:hover,
.cs-brand-button:focus-visible {
    border-color: rgba(0, 135, 147, .5);
    box-shadow: 0 14px 34px rgba(0, 77, 122, .14);
    text-decoration: none;
    transform: translateY(-1px);
}

.cs-brand-button.is-primary {
    border-color: transparent;
    background: var(--csb-gradient);
    color: #fff;
}

.cs-brand-specimen {
    overflow: hidden;
    border: 1px solid rgba(0, 135, 147, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 26px 70px rgba(0, 77, 122, .16);
    backdrop-filter: blur(18px);
}

.cs-brand-specimen-top {
    padding: 28px;
    border-bottom: 1px solid var(--csb-line);
    background: #fff;
}

.cs-brand-wordmark {
    display: block;
    width: 100%;
    height: auto;
}

.cs-brand-specimen-bottom {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    align-items: center;
    padding: 24px;
    background: var(--csb-ink);
    color: #fff;
}

.cs-brand-icon-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: var(--csb-gradient);
}

.cs-brand-icon-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-brand-specimen-meta strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.cs-brand-specimen-meta p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.cs-brand-nav {
    position: sticky;
    top: 0;
    z-index: 80;
    border-top: 1px solid var(--csb-line);
    border-bottom: 1px solid var(--csb-line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}

body.admin-bar .cs-brand-nav {
    top: 32px;
}

.cs-brand-nav-list {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    scrollbar-width: none;
}

.cs-brand-nav-list::-webkit-scrollbar {
    display: none;
}

.cs-brand-nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #4f5868;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.cs-brand-nav-list a:hover,
.cs-brand-nav-list a:focus-visible {
    background: var(--csb-surface);
    color: var(--csb-teal);
    text-decoration: none;
}

.cs-brand-section {
    padding: clamp(56px, 8vw, 96px) 0;
    border-bottom: 1px solid var(--csb-line);
    background: #fff;
}

.cs-brand-section.is-soft {
    background: var(--csb-surface);
}

.cs-brand-section.is-dark {
    border-bottom: 0;
    background: var(--csb-ink);
    color: #fff;
}

.cs-brand-section-head {
    display: block;
    margin-bottom: 34px;
}

.cs-brand-section-title {
    max-width: 100%;
    margin: 0;
    color: inherit;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.05;
}

.cs-brand-section-copy {
    max-width: 100%;
    margin: 18px 0 0;
    color: var(--csb-muted);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.65;
}

.cs-brand-section.is-dark .cs-brand-section-copy {
    color: rgba(255, 255, 255, .7);
}

.cs-brand-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.cs-brand-grid.is-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cs-brand-card {
    overflow: hidden;
    border: 1px solid var(--csb-line);
    border-radius: 8px;
    background: #fff;
}

.cs-brand-card-body {
    padding: 22px;
}

.cs-brand-card h3,
.cs-brand-asset-card h3 {
    margin: 0 0 10px;
    color: var(--csb-ink);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
}

.cs-brand-card p,
.cs-brand-asset-card p {
    margin: 0;
    color: var(--csb-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.cs-brand-logo-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 28px;
    background:
        linear-gradient(90deg, rgba(223, 231, 236, .7) 1px, transparent 1px),
        linear-gradient(180deg, rgba(223, 231, 236, .7) 1px, transparent 1px),
        #fff;
    background-size: 28px 28px;
}

.cs-brand-logo-demo.is-dark {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
        var(--csb-ink);
    background-size: 28px 28px;
}

.cs-brand-logo-demo img {
    display: block;
    max-width: min(100%, 360px);
    height: auto;
}

.cs-brand-logo-demo .cs-brand-compact-icon {
    width: 132px;
    height: 132px;
    border-radius: 8px;
}

.cs-brand-color-card {
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--csb-line);
    border-radius: 8px;
    background: #fff;
}

.cs-brand-swatch {
    display: flex;
    align-items: flex-end;
    min-height: 150px;
    padding: 18px;
    color: var(--swatch-text);
    background: var(--swatch-color);
}

.cs-brand-swatch code {
    padding: 7px 9px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .22);
    color: inherit;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.cs-brand-color-card h3 {
    margin: 0 0 8px;
    color: var(--csb-ink);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.cs-brand-color-card p {
    margin: 0;
    color: var(--csb-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.cs-brand-gradient-strip {
    height: 12px;
    margin-top: 16px;
    border-radius: 8px;
    background: var(--csb-gradient);
}

.cs-brand-type-sample {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 16px;
}

.cs-brand-type-panel {
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid var(--csb-line);
    border-radius: 8px;
    background: #fff;
}

.cs-brand-type-panel h3 {
    margin: 0 0 18px;
    color: var(--csb-ink);
    font-size: clamp(42px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: .98;
}

.cs-brand-type-panel p {
    margin: 0;
    color: var(--csb-muted);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
}

.cs-brand-type-scale {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-brand-type-scale li {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--csb-line);
}

.cs-brand-type-scale li:last-child {
    border-bottom: 0;
}

.cs-brand-type-scale code {
    color: var(--csb-teal);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
}

.cs-brand-type-scale strong {
    color: var(--csb-ink);
    font-weight: 800;
    line-height: 1.2;
}

.cs-brand-type-scale .is-h1 { font-size: 34px; }
.cs-brand-type-scale .is-h2 { font-size: 26px; }
.cs-brand-type-scale .is-body { font-size: 17px; font-weight: 600; }
.cs-brand-type-scale .is-meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.cs-brand-voice-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .055);
}

.cs-brand-voice-card span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: var(--csb-gradient);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.cs-brand-voice-card h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.cs-brand-voice-card p {
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.cs-brand-usage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cs-brand-usage-panel {
    padding: 26px;
    border: 1px solid var(--csb-line);
    border-radius: 8px;
    background: #fff;
}

.cs-brand-usage-panel h3 {
    margin: 0 0 18px;
    color: var(--csb-ink);
    font-size: 22px;
    font-weight: 800;
}

.cs-brand-usage-panel ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-brand-usage-panel li {
    position: relative;
    padding-left: 25px;
    color: var(--csb-muted);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.cs-brand-usage-panel li::before {
    position: absolute;
    top: .14em;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.cs-brand-usage-panel.is-do li::before {
    content: "+";
    background: rgba(0, 191, 114, .13);
    color: #008f5a;
}

.cs-brand-usage-panel.is-dont li::before {
    content: "−";
    background: rgba(16, 24, 40, .08);
    color: var(--csb-ink);
}

.cs-brand-assets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cs-brand-asset-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 100%;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.cs-brand-asset-card:hover,
.cs-brand-asset-card:focus-visible {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .1);
    text-decoration: none;
    transform: translateY(-2px);
}

.cs-brand-asset-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 148px;
    padding: 22px;
    background: #fff;
}

.cs-brand-asset-preview img {
    display: block;
    max-width: 100%;
    max-height: 104px;
    object-fit: contain;
}

.cs-brand-asset-preview .cs-brand-asset-icon {
    width: 104px;
    height: 104px;
    border-radius: 8px;
}

.cs-brand-asset-card .cs-brand-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
}

.cs-brand-asset-card h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
}

.cs-brand-asset-card p {
    color: rgba(255, 255, 255, .72);
}

.cs-brand-asset-card small {
    display: block;
    margin-top: auto;
    color: rgba(255, 255, 255, .54);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.cs-brand-footer-rule {
    height: 1px;
    margin: 0;
    border: 0;
    background: rgba(255, 255, 255, .14);
}

@media (max-width: 1024px) {
    .cs-brand-hero-grid,
    .cs-brand-type-sample {
        grid-template-columns: 1fr;
    }

    .cs-brand-grid,
    .cs-brand-grid.is-four,
    .cs-brand-assets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cs-brand-specimen {
        max-width: 620px;
    }
}

@media (max-width: 782px) {
    body.admin-bar .cs-brand-nav { top: 46px; }
}

@media (max-width: 680px) {
    .cs-brand-hero {
        padding-top: 56px;
    }

    .cs-brand-hero-grid,
    .cs-brand-grid,
    .cs-brand-grid.is-four,
    .cs-brand-usage,
    .cs-brand-assets {
        grid-template-columns: 1fr;
    }

    .cs-brand-hero h1 {
        font-size: clamp(42px, 13vw, 64px);
    }

    .cs-brand-specimen-bottom {
        grid-template-columns: 82px 1fr;
        padding: 18px;
    }

    .cs-brand-icon-tile {
        width: 82px;
    }

    .cs-brand-logo-demo {
        min-height: 176px;
    }

    .cs-brand-type-scale li {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cs-brand-button,
    .cs-brand-asset-card {
        transition: none;
    }
}
