/* Shared, crawlable product header. Keep this file last in the product CSS stack. */
.product-global-header {
    position: sticky;
    top: 0.65rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1440px, calc(100% - 1.5rem));
    min-height: 64px;
    margin: 0.65rem auto 0;
    padding: 0.55rem 0.65rem;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.76);
    box-shadow: 0 14px 38px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(20px) saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.theme-light .product-global-header {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

.product-global-header__identity,
.product-global-header__brand,
.product-global-header__breadcrumbs,
.product-global-header__actions,
.product-global-header__action {
    display: flex;
    align-items: center;
}

.product-global-header__identity {
    min-width: 0;
    gap: 0.8rem;
}

.product-global-header__brand {
    flex: 0 0 auto;
    gap: 0.6rem;
    color: #f8fafc;
    text-decoration: none;
}

.theme-light .product-global-header__brand {
    color: #0f172a;
}

.product-global-header__radar {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 38px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--product-accent, #10b981) 42%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--product-accent, #10b981) 9%, transparent);
}

.product-global-header__radar i {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 48%;
    height: 1px;
    background: linear-gradient(90deg, var(--product-accent, #10b981), transparent);
    transform-origin: left center;
    animation: product-header-radar 5s linear infinite;
}

.product-global-header__radar svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: color-mix(in srgb, var(--product-accent, #10b981) 72%, #94a3b8);
    stroke-width: 2;
    opacity: 0.78;
}

.product-global-header__brand-copy {
    display: grid;
    gap: 0.08rem;
    min-width: 0;
}

.product-global-header__brand-copy span,
.product-global-header__breadcrumbs {
    color: #94a3b8;
    font-family: var(--ait-font-mono, "Share Tech Mono", monospace);
    font-size: 0.62rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.product-global-header__brand-copy strong {
    max-width: 14rem;
    overflow: hidden;
    color: inherit;
    font-size: 0.88rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-global-header__breadcrumbs {
    min-width: 0;
    gap: 0.4rem;
}

.product-global-header__breadcrumbs a,
.product-global-header__breadcrumbs span {
    overflow: hidden;
    color: #94a3b8;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theme-light .product-global-header__breadcrumbs a,
.theme-light .product-global-header__breadcrumbs span,
.theme-light .product-global-header__brand-copy span {
    color: #64748b;
}

.product-global-header__breadcrumbs a:hover,
.product-global-header__breadcrumbs a:focus-visible {
    color: var(--product-accent, #10b981);
}

.product-global-header__actions {
    position: relative;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.45rem;
}

.product-global-header__materials {
    position: relative;
}

.product-global-header__materials summary {
    list-style: none;
}

.product-global-header__materials summary::-webkit-details-marker {
    display: none;
}

.product-global-header__materials[open] summary {
    border-color: var(--product-accent, #10b981);
    color: var(--product-accent, #10b981);
}

.product-global-header__materials-menu {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    display: grid;
    min-width: 13rem;
    padding: 0.4rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 13px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.28);
}

.theme-light .product-global-header__materials-menu {
    border-color: rgba(15, 23, 42, 0.13);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.14);
}

.product-global-header__material-link {
    display: flex;
    min-height: 40px;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0 0.7rem;
    border-radius: 9px;
    color: #e2e8f0;
    font: 650 0.75rem/1.2 var(--ait-font-body, "Inter", sans-serif);
    text-decoration: none;
}

.theme-light .product-global-header__material-link {
    color: #334155;
}

.product-global-header__material-link:hover,
.product-global-header__material-link:focus-visible {
    background: color-mix(in srgb, var(--product-accent, #10b981) 10%, transparent);
    color: var(--product-accent, #10b981);
    outline: none;
}

.product-global-header__material-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
}

.product-global-header__action {
    appearance: none;
    justify-content: center;
    gap: 0.45rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.75rem;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.7);
    color: #e2e8f0;
    font: 700 0.7rem/1 var(--ait-font-body, "Inter", sans-serif);
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.theme-light .product-global-header__action {
    border-color: rgba(15, 23, 42, 0.13);
    background: rgba(248, 250, 252, 0.92);
    color: #334155;
}

.product-global-header__action svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
}

.product-global-header__action--blog {
    border-color: color-mix(in srgb, var(--product-accent, #10b981) 42%, transparent);
    background: color-mix(in srgb, var(--product-accent, #10b981) 11%, rgba(15, 23, 42, 0.72));
    color: color-mix(in srgb, var(--product-accent, #10b981) 62%, #ffffff);
}

.theme-light .product-global-header__action--blog {
    background: color-mix(in srgb, var(--product-accent, #10b981) 8%, #ffffff);
    color: color-mix(in srgb, var(--product-accent, #10b981) 76%, #0f172a);
}

.product-global-header__action--icon {
    width: 44px;
    padding: 0;
}

.product-global-header__action:hover,
.product-global-header__action:focus-visible {
    border-color: var(--product-accent, #10b981);
    color: var(--product-accent, #10b981);
    outline: none;
    transform: translateY(-1px);
}

@keyframes product-header-radar {
    to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
    .product-global-header__breadcrumbs {
        display: none;
    }
}

@media (max-width: 620px) {
    .product-global-header {
        top: 0;
        width: 100%;
        min-height: 58px;
        margin-top: 0;
        padding: 0.45rem 0.55rem;
        border-width: 0 0 1px;
        border-radius: 0;
    }

    .product-global-header__identity {
        gap: 0;
    }

    .product-global-header__radar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .product-global-header__brand-copy span,
    .product-global-header__action--blog span,
    .product-global-header__materials summary span {
        display: none;
    }

    .product-global-header__brand-copy strong {
        max-width: 8rem;
        font-size: 0.78rem;
    }

    .product-global-header__actions {
        gap: 0.3rem;
    }

    .product-global-header__action,
    .product-global-header__action--blog,
    .product-global-header__materials summary {
        width: 42px;
        min-width: 42px;
        min-height: 42px;
        padding: 0;
    }
}

@media (max-width: 390px) {
    .product-global-header__brand-copy {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-global-header__radar i {
        animation: none;
    }

    .product-global-header__action {
        transition: none;
    }
}
