/* Bluedify Group bar (M137, Bulut 19 Nov): one thin strip, fixed on every page, above that page's own header.
   It links the Group front page and the four division sites. CSP: no inline styles, no external hosts. */
:root { --gbar-h: 36px; }
:root:has(.top) { --top-h: 100px; }   /* warm-design pages: bar + 64px header */
:root:not(:has(.gbar)) { --gbar-h: 0px; }   /* M151-e: division sites carry no Group bar */
:root:has(.top):not(:has(.gbar)) { --top-h: 64px; }
:root:has(.dk-top):not(:has(.gbar)) { --top-h: 60px; }

.gbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px;
  height: var(--gbar-h); padding-inline: clamp(12px, 3vw, 40px); background: #161210; color: #EDE4D8;
  font: 500 12.5px/1 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; }
.gbar a { color: inherit; text-decoration: none; }
.gbar-home { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.gbar-home span { color: #9C8F84; font-weight: 500; transition: color .25s ease; }
.gbar-home:hover span, .gbar-home[aria-current="page"] span { color: #EDE4D8; }
.gbar-d { display: flex; justify-content: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.gbar-d::-webkit-scrollbar { display: none; }
.gd { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; transition: background .25s ease, color .25s ease; }
.gd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dc); transition: transform .25s ease; }
.gd:hover { background: rgba(237, 228, 216, .1); }
.gd:hover::before { transform: scale(1.35); }
.gd[aria-current="page"] { background: #EDE4D8; color: #161210; }
.gd-beauty { --dc: #D2774F; }
.gd-audio { --dc: #E2A84E; }
.gd-computing { --dc: #8FB6D8; }
.gd-tools { --dc: #6CBF8B; }
.gbar-r { display: flex; gap: 18px; white-space: nowrap; color: #B9AEA3; }
.gbar-r a:hover { color: #FFFDF9; }
.gbar :focus-visible { outline: 2px solid #EDE4D8; outline-offset: 2px; }

/* warm-design pages (t.css): the fixed header moves under the bar */
.gbar ~ .top { top: var(--gbar-h); height: calc(var(--top-h) - var(--gbar-h)); }
/* older pages (tema.css): their sticky header sits under the bar */
body:has(.th) { padding-top: var(--gbar-h); }
.gbar ~ .th { top: var(--gbar-h); }

@media (max-width: 720px) {
  .gbar { grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
  .gbar-r, .gbar-home span { display: none; }
  .gbar-d { justify-content: flex-start; }
  .gd { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) { .gd, .gd::before, .gbar-home span { transition: none; } }
@media print { .gbar { display: none; } }
