/* Site header for signed-in members, desktop (2026-11-15).
   gacnoba.life: a white bar with a hairline, the wordmark in its own wine colour (as on phones).
   gacnoba.info: its wordmark file is white, so the brand band stays, with the same refined controls.
   Loaded after every other stylesheet. */
@media(min-width:1000px){
  html body .touch-header{
    --hd-ink:#222;--hd-muted:#6a6a6a;--hd-hair:#ebebeb;--hd-soft:#f5f5f5;
    min-height:64px;padding:10px 24px;gap:20px;box-shadow:none!important;
  }

  /* ── life: white bar ── */
  html[data-site-domain="life"] body .touch-header{
    background:rgba(255,255,255,.94)!important;-webkit-backdrop-filter:saturate(1.6) blur(12px);backdrop-filter:saturate(1.6) blur(12px);
    color:var(--hd-ink)!important;border-bottom:1px solid var(--hd-hair)!important;
  }
  html[data-site-domain="life"] body .touch-header .brand-logo-image,
  html[data-site-domain="life"] body .touch-header .brand-logo-image img{filter:none!important}

  /* ── centre navigation: quiet icon buttons, the current page marked ── */
  html body .touch-header .touch-bottom{gap:6px}
  html body .touch-header .touch-bottom>a{
    position:relative;display:grid;place-items:center;width:46px;height:42px;border-radius:12px;
    color:var(--hd-muted)!important;background:transparent;transition:background-color .15s ease,color .15s ease,transform .12s ease;
  }
  html body .touch-header .touch-bottom>a .site-icon{width:22px!important;height:22px!important;color:inherit!important}
  html body .touch-header .touch-bottom>a:active{transform:scale(.94)}
  html body .touch-header .touch-bottom>a[aria-current="page"]{color:var(--wine)!important;background:var(--rose)!important}
  html body .touch-header .touch-bottom>a[aria-current="page"]::after{
    content:"";position:absolute;left:50%;bottom:-11px;width:22px;height:3px;border-radius:3px 3px 0 0;background:var(--wine);transform:translateX(-50%);
  }
  html body .touch-header .touch-bottom .nav-count{
    position:absolute;top:2px;right:4px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;
    display:grid;place-items:center;background:var(--wine)!important;color:#fff!important;border:0!important;font-size:11px;font-weight:700;line-height:1;
    box-shadow:0 0 0 2px #fff;font-variant-numeric:tabular-nums;
  }
  html body .touch-header .touch-bottom .nav-count[hidden]{display:none}

  /* ── search: a soft pill ── */
  html body .touch-header .toolbar-member-search{position:relative}
  html body .touch-header .toolbar-member-search input{
    width:240px;height:40px;padding:0 40px 0 16px;border:1px solid transparent!important;border-radius:999px!important;
    background:var(--hd-soft)!important;color:var(--hd-ink)!important;font-size:14px;box-shadow:none!important;
    transition:background-color .15s ease,border-color .15s ease,width .25s cubic-bezier(.22,1,.36,1);
  }
  html body .touch-header .toolbar-member-search input::placeholder{color:#767676}
  html body .touch-header .toolbar-member-search input:hover{background:#efefef!important}
  html body .touch-header .toolbar-member-search input:focus{outline:none;width:280px;background:#fff!important;border-color:var(--hd-ink)!important}
  html body .touch-header .toolbar-member-search button{
    position:absolute;right:4px;top:50%;width:32px;height:32px;margin:0;padding:0;display:grid;place-items:center;
    border:0;border-radius:50%;background:transparent!important;color:var(--hd-muted)!important;transform:translateY(-50%);
  }
  html body .touch-header .toolbar-member-search button .site-icon{width:18px!important;height:18px!important;color:inherit!important}

  /* ── account: avatar with a ring ── */
  html body .touch-header .toolbar-account>summary{display:flex;align-items:center;gap:6px;padding:3px 8px 3px 3px;border:1px solid var(--hd-hair);border-radius:999px;background:#fff;color:var(--hd-ink);transition:border-color .15s ease,box-shadow .15s ease}
  html body .touch-header .toolbar-account>summary:hover{border-color:#cfcfcf;box-shadow:0 1px 4px rgba(0,0,0,.08)}
  html body .touch-header .toolbar-account>summary img,
  html body .touch-header .toolbar-account>summary .default-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover}
  html body .touch-header .toolbar-account .account-chevron{width:14px;height:14px;color:var(--hd-muted)}

  /* ── admin link: a small outlined pill ── */
  html body .touch-header .header-admin-link{
    display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border:1px solid var(--hd-hair);border-radius:999px;
    background:#fff;color:var(--wine)!important;font-size:12px;font-weight:700;text-decoration:none;
  }

  @media(hover:hover) and (pointer:fine){
    html body .touch-header .touch-bottom>a:not([aria-current="page"]):hover{background:var(--hd-soft)!important;color:var(--hd-ink)!important}
    html body .touch-header .header-admin-link:hover{border-color:var(--wine)}
  }

  /* ── info: keep the blue band, adapt the controls to it ── */
  html[data-site-domain="info"] body .touch-header{background:var(--wine)!important;border-bottom:0!important;color:#fff!important}
  html[data-site-domain="info"] body .touch-header .touch-bottom>a{color:rgba(255,255,255,.78)!important}
  html[data-site-domain="info"] body .touch-header .touch-bottom>a[aria-current="page"]{color:#fff!important;background:rgba(255,255,255,.16)!important}
  html[data-site-domain="info"] body .touch-header .touch-bottom>a[aria-current="page"]::after{background:#fff}
  html[data-site-domain="info"] body .touch-header .touch-bottom .nav-count{background:#fff!important;color:var(--wine)!important;box-shadow:0 0 0 2px var(--wine)}
  html[data-site-domain="info"] body .touch-header .toolbar-member-search input{background:rgba(255,255,255,.95)!important}
  html[data-site-domain="info"] body .touch-header .toolbar-account>summary{border-color:rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:#fff}
  html[data-site-domain="info"] body .touch-header .toolbar-account .account-chevron{color:#fff}
  html[data-site-domain="info"] body .touch-header .header-admin-link{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3);color:#fff!important}
  @media(hover:hover) and (pointer:fine){
    html[data-site-domain="info"] body .touch-header .touch-bottom>a:not([aria-current="page"]):hover{background:rgba(255,255,255,.12)!important;color:#fff!important}
  }
}
/* ── left sidebar for members: a flush rail joined to the header and the left edge, square corners ── */
@media(min-width:1000px){
  html body .touch-header{height:60px;min-height:60px;box-sizing:border-box}
  html body .desktop-layout:has(>.desktop-sidebar-auth){margin:0 20px 0 0!important;column-gap:28px;align-items:start}
  html body .desktop-layout:has(>.desktop-sidebar-auth)>:is(main,.desktop-extra,.header-presence){margin-top:20px!important}
  html body .desktop-layout:has(>.desktop-sidebar-auth):has(>.header-presence)>main{margin-top:0!important}

  html body .desktop-sidebar.desktop-sidebar-auth{
    --sb-ink:#222;--sb-muted:#6a6a6a;--sb-hair:#ebebeb;--sb-soft:#f6f6f6;
    position:sticky;top:60px!important;align-self:start;height:calc(100vh - 60px);max-height:none;overflow-y:auto;overscroll-behavior:contain;
    margin:0!important;padding:20px 0 24px!important;border:0!important;border-right:1px solid var(--sb-hair)!important;border-radius:0!important;
    background:#fff!important;box-shadow:none!important;scrollbar-width:thin;scrollbar-color:#d6d6d6 transparent;
  }

  /* identity: avatar beside name, facts and rank */
  html body .desktop-sidebar-auth .sidebar-identity{
    display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:14px;row-gap:4px;align-items:center;
    margin:0 0 12px;padding:0 20px 18px;border:0;border-bottom:1px solid var(--sb-hair);border-radius:0;background:none;text-align:left;
  }
  html body .desktop-sidebar-auth .sidebar-avatar{grid-row:1 / span 3;width:64px;height:64px;margin:0;padding:0;border:0;border-radius:50%;overflow:hidden;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--sb-hair)}
  html body .desktop-sidebar-auth .sidebar-avatar img,html body .desktop-sidebar-auth .sidebar-avatar svg{display:block;width:100%;height:100%;object-fit:cover}
  html body .desktop-sidebar-auth .sidebar-identity h2{margin:0;font-family:var(--font-sans,inherit);font-size:16px;font-weight:700;line-height:1.25;color:var(--sb-ink);text-transform:none;letter-spacing:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
  html body .desktop-sidebar-auth .sidebar-profile-facts{display:flex;flex-wrap:wrap;gap:2px 10px;margin:0;justify-content:flex-start}
  html body .desktop-sidebar-auth .sidebar-profile-facts>span,html body .desktop-sidebar-auth .sidebar-profile-rank{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--sb-muted)}
  html body .desktop-sidebar-auth .sidebar-profile-rank{justify-self:start;margin:2px 0 0;padding:2px 8px;border-radius:999px;background:var(--rose);color:var(--wine)}
  html body .desktop-sidebar-auth .sidebar-identity .site-icon{width:13px!important;height:13px!important;min-width:13px!important}

  /* navigation: full-width rows, square, a bar on hover */
  html body .desktop-sidebar-auth nav{display:block;margin:0;padding:0}
  html body .desktop-sidebar-auth nav .drawer-section-title{margin:16px 0 4px;padding:0 20px;font-family:var(--font-sans,inherit);font-size:11px;font-weight:700;letter-spacing:.04em;color:#767676;text-transform:none}
  html body .desktop-sidebar-auth nav>a,html body .desktop-sidebar-auth nav form button{
    position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:40px;margin:0;padding:0 20px;border:0;border-radius:0!important;
    background:none!important;color:var(--sb-ink)!important;font:inherit;font-size:14px;font-weight:500;text-align:left;text-decoration:none;box-shadow:none!important;
    transition:background-color .12s ease,color .12s ease;
  }
  html body .desktop-sidebar-auth nav>a .site-icon,html body .desktop-sidebar-auth nav form button .site-icon{width:20px!important;height:20px!important;min-width:20px!important;color:var(--wine)!important;margin:0}
  html body .desktop-sidebar-auth nav>a::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;background:var(--wine);transform:scaleY(0);transition:transform .15s ease}
  @media(hover:hover) and (pointer:fine){
    html body .desktop-sidebar-auth nav>a:hover,html body .desktop-sidebar-auth nav form button:hover{background:var(--sb-soft)!important}
    html body .desktop-sidebar-auth nav>a:hover::before{transform:scaleY(1)}
  }
  html body .desktop-sidebar-auth nav>a[aria-current="page"]{background:var(--rose)!important;color:var(--wine)!important;font-weight:700}
  html body .desktop-sidebar-auth nav>a[aria-current="page"]::before{transform:scaleY(1)}
  html body .desktop-sidebar-auth nav>a:focus-visible{outline:2px solid var(--wine);outline-offset:-2px}
  html body .desktop-sidebar-auth .header-navigation-duplicate{display:none!important}

  /* round 2: every icon in the same small tile, calm colours, a clear current page */
  html body .desktop-sidebar-auth nav{padding:4px 12px 0}
  html body .desktop-sidebar-auth nav .drawer-section-title{
    display:flex;align-items:center;gap:10px;margin:18px 0 6px;padding:0 8px;
    font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#9a9a9a;
  }
  html body .desktop-sidebar-auth nav .drawer-section-title::after{content:"";flex:1;height:1px;background:var(--sb-hair)}
  html body .desktop-sidebar-auth nav>.drawer-section-title:first-of-type{margin-top:6px}
  html body .desktop-sidebar-auth nav>a,html body .desktop-sidebar-auth nav form button{
    min-height:44px;margin:1px 0;padding:0 8px;gap:12px;border-radius:10px!important;font-size:14px;font-weight:500;color:#333!important;
  }
  html body .desktop-sidebar-auth nav>a::before{display:none}
  html body .desktop-sidebar-auth nav>a>.detail-3d-icon{display:contents}
  html body .desktop-sidebar-auth nav>a>svg.site-icon,
  html body .desktop-sidebar-auth nav>a>.detail-3d-icon>svg.site-icon,
  html body .desktop-sidebar-auth nav form button>svg.site-icon{
    box-sizing:content-box!important;flex:none;width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;padding:7px!important;border-radius:9px!important;
    background:#f3f3f3!important;color:#5c5c5c!important;transition:background-color .15s ease,color .15s ease;
  }
  @media(hover:hover) and (pointer:fine){
    html body .desktop-sidebar-auth nav>a:hover,html body .desktop-sidebar-auth nav form button:hover{background:var(--sb-soft)!important;color:var(--sb-ink)!important}
    html body .desktop-sidebar-auth nav>a:hover svg.site-icon{background:var(--rose)!important;color:var(--wine)!important}
  }
  html body .desktop-sidebar-auth nav>a:active{transform:scale(.985)}
  html body .desktop-sidebar-auth nav>a[aria-current="page"]{background:var(--rose)!important;color:var(--wine)!important;font-weight:700}
  html body .desktop-sidebar-auth nav>a[aria-current="page"] svg.site-icon{background:var(--wine)!important;color:#fff!important}
  html body .desktop-sidebar-auth nav>a:focus-visible{outline:2px solid var(--wine);outline-offset:-2px}
}
@media(prefers-reduced-motion:reduce){html body .touch-header *,html body .desktop-sidebar-auth *{transition:none!important}}

/* Friend-request badge next to the menu link */
html body a .nav-count.side-nav-count{position:static!important;inset:auto!important;display:inline-grid;place-items:center;min-width:24px;height:20px;margin:0 0 0 auto!important;padding:0 7px;border:0;border-radius:999px;background:#991344;color:#fff;font:700 11px/1 Mersad,ui-sans-serif,system-ui,sans-serif;transform:none!important;box-shadow:none}
html body a .nav-count.side-nav-count[hidden]{display:none!important}
html body .header-shortcuts a{position:relative}
html body .header-shortcuts a .nav-count.side-nav-count{position:absolute!important;top:0;left:calc(50% + 8px);right:auto!important;height:18px;min-width:22px;padding:0 5px;margin:0!important;font-size:10px;box-shadow:0 0 0 2px #fff}
html body nav.header-shortcuts a b.nav-count.side-nav-count{top:-4px!important;left:calc(50% + 6px)!important;right:auto!important;bottom:auto!important}

/* Quick links are rendered twice (bottom bar for phones, header for desktop); show only the right copy. */
@media(min-width:1000px){html body .touch-bottom:not(.is-desktop-copy),html body .header-shortcuts:not(.is-desktop-copy){display:none!important}}
@media(max-width:999px){html body .is-desktop-copy{display:none!important}}
