/* Shared topbar (brand + search), loaded on every page from base.html after
   the page stylesheet. Self-contained: defines the few tokens it needs, and
   .topbar-inner carries its own container sizing, so pages that don't load
   style.css (the legal pages) render it identically. Moved out of style.css
   when the topbar became shared chrome. */

:root{
    --gold-hi: #f8e8a6;
    --gold:    #d4af37;
    --gold-lo: #8d6b1f;
}

.topbar{
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(15,17,21,0.55);
    border-bottom: 1px solid rgba(212,175,55,0.08);
}

.topbar-inner{
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 12px clamp(14px, 3vw, 28px);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Brand */
.brand{
    display:flex;
    flex: 0 0 auto;
    min-width: 0;
    align-items:center;
    gap:10px;
    text-decoration:none;
    height: 44px;
    padding: 0;
}

.brand-mark{
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.brand-mark-svg{
    width: 40px;
    height: 40px;
    overflow: visible;
}

.mark{
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mark-gold{
    stroke: url(#piGold);
    stroke-width: 5;
    opacity: 0.95;
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.18));
}

.mark-node{
    filter: drop-shadow(0 0 8px rgba(120,214,176,0.35));
}

.brand-text{
    display:flex;
    flex-direction:column;
    line-height: 1.05;
    min-width: 0;
}

.brand-name{
    font-weight: 860;
    letter-spacing: -0.2px;
    font-size: 19px;
}

.brand-sub{
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(246,226,122,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 8px rgba(212,175,55,0.15);
    opacity: 0.90;
}

.brand-price{
    color: rgba(245,245,245,0.92);
}

/* Scoped to the topbar: landing.css has its own, different .gold. */
.topbar .gold{
    background: linear-gradient(92deg, var(--gold-hi), var(--gold), var(--gold-lo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Search pill */
.nav-search{
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding-left: 16px;
    padding-right: 6px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
}

.nav-search:focus-within{
    border-color: rgba(20,92,68,0.45);
    box-shadow:
        0 0 0 1px rgba(20,92,68,0.25),
        0 0 18px rgba(20,92,68,0.18);
}

.nav-search-input{
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: rgba(245,245,245,0.92);
    outline: none;
    font-size: 15.5px;
    padding: 2px 6px;
}

.nav-search-input::placeholder{ color: rgba(245,245,245,0.45); }

.nav-search-btn{
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: transparent;
    border: none;
    padding: 0;
}

.nav-search-btn:hover{
    background: rgba(255,255,255,0.06);
}

.nav-search-btn .icon{
    width: 18px;
    height: 18px;
    fill: none;
    stroke: rgba(245,245,245,0.82);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-search-btn:hover .icon{
    stroke: rgba(248,232,166,0.92);
}

@media (max-width: 640px){
    .topbar-inner{
        flex-direction: column;
        align-items: stretch;
    }
}
