/* OpenSource UI Depth Outline: adapted edge, hover and press treatments.
   Scope is the shared public header; no content, panel or global button rules. */
.ac-premium .header[data-ac-header] { isolation:isolate; z-index:50; }
.ac-premium .header .nav { min-height:100px; gap:24px; padding-block:18px; }
.ac-premium .header .brand { flex-shrink:0; font-size:26px; gap:10px; min-height:44px; }
.ac-premium .header .navlinks {
  margin-left:auto; gap:2px; padding:4px; border:1px solid #26333d;
  border-radius:12px; background:#11191f; box-shadow:inset 0 1px 0 #ffffff06;
}
.ac-premium .header .navlinks>a {
  display:inline-flex; position:relative; align-items:center; justify-content:center;
  min-height:44px; padding:8px 14px; border-radius:8px;
  color:#b7c4cd; font:500 13px/1.4 var(--font); white-space:nowrap;
  transition:color .2s var(--ease),background .2s var(--ease),box-shadow .2s var(--ease);
}
.ac-premium .header .navlinks>a:hover { background:#202d37; color:#f4f8fa; }
.ac-premium .header .navlinks>a[aria-current=page] {
  background:#22333e; color:#d7f7ff; box-shadow:inset 0 0 0 1px #446170;
}
.ac-premium .header .navlinks>a[aria-current=page]:after {
  content:''; position:absolute; bottom:5px; left:calc(50% - 9px);
  width:18px; height:2px; border-radius:1px; background:#58d8f4;
}
.ac-premium .header .nav-actions { margin-left:0; gap:10px; flex-shrink:0; }
.ac-premium .header .ac-nav-icon { width:18px; height:18px; flex:0 0 18px; display:block; }
.ac-premium .header :is(.login,.language-picker>summary,.menu-btn) {
  min-height:46px; align-items:center; justify-content:center; gap:9px;
  padding:10px 14px; border:1px solid #435460; border-radius:9px;
  color:#eef5f8; background:linear-gradient(180deg,#1c2831,#121d25);
  box-shadow:0 2px 4px #0002,inset 0 1px 0 #ffffff10,inset 0 -1px 1px #0003;
  font:500 13px/1.45 var(--font); text-decoration:none; cursor:pointer;
  transition:background .2s var(--ease),border-color .2s var(--ease),box-shadow .2s var(--ease),transform .2s var(--ease);
}
.ac-premium .header .login .ac-nav-icon { color:#9ab6c7; }
.ac-premium .header :is(.login,.language-picker>summary) { display:inline-flex; }
.ac-premium .header :is(.login,.language-picker>summary,.menu-btn):hover {
  background:linear-gradient(#283843,#1d2c36); border-color:#718c9d;
  box-shadow:0 4px 12px #0003,inset 0 1px 0 #ffffff18;
}
.ac-premium .header :is(.login,.language-picker>summary,.menu-btn):active {
  transform:translateY(1px); box-shadow:inset 0 2px 4px #0004;
}
.ac-premium .header .nav-actions>.btn.primary {
  padding:8px 9px 8px 16px; gap:12px; min-height:46px; border-radius:9px;
  font-size:13px; line-height:1.45; white-space:nowrap;
}
.ac-premium .header .ac-action-arrow {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 28px;
  width:28px; height:28px; border-radius:6px; background:#062b3414;
  box-shadow:inset 0 0 0 1px #0e566420; transition:background .2s var(--ease);
}
.ac-premium .header .btn:hover .ac-action-arrow { background:#062b3428; }
.ac-premium .header .language-picker { position:relative; z-index:60; }
.ac-premium .header .language-picker>summary { gap:7px; padding-inline:11px; min-width:82px; list-style:none; }
.ac-premium .header .language-picker>summary::-webkit-details-marker { display:none; }
.ac-premium .header .language-picker>summary:after { content:none; }
.ac-premium .header .ac-chevron { width:14px; height:14px; flex-basis:14px; color:#9fb1bf; transition:transform .2s var(--ease); }
.ac-premium .header .language-picker[open] .ac-chevron { transform:rotate(180deg); }
.ac-premium .header .language-picker[open]>summary { border-color:#6aaabb; background:#20323e; }
.ac-premium .header .language-picker>nav {
  position:absolute; top:calc(100% + 12px); right:0; min-width:200px;
  padding:6px; border:1px solid #4a606d; border-radius:12px;
  background:#14212bf7; backdrop-filter:blur(16px); box-shadow:0 16px 36px #0007;
}
.ac-premium .header .language-picker nav a {
  position:relative; display:flex; align-items:center; min-height:44px;
  padding:10px 36px 10px 14px; border:0; border-radius:7px;
  font:500 13px/1.5 var(--font); color:#d8e4eb; white-space:nowrap;
}
.ac-premium .header .language-picker nav a:hover { background:#2b3d4a; color:white; }
.ac-premium .header .language-picker nav a[aria-current=page] { background:#23404b; color:#c2f5ff; }
.ac-premium .header .language-picker nav a[aria-current=page]:after {
  content:''; position:absolute; right:17px; width:6px; height:10px;
  border:solid #83e5f7; border-width:0 2px 2px 0; transform:translateY(-2px) rotate(45deg);
}
.ac-premium .header :is(a,button,summary):focus-visible { outline:2px solid #78e8fc; outline-offset:4px; }
.ac-premium .header .menu-btn { display:none; min-width:46px; padding:10px; }
.ac-premium .header .ac-menu-line { transform-origin:center; transition:transform .2s var(--ease); }
.ac-premium .header .menu-btn[aria-expanded=true] .ac-menu-top { transform:translateY(4px) rotate(45deg); }
.ac-premium .header .menu-btn[aria-expanded=true] .ac-menu-bottom { transform:translateY(-4px) rotate(-45deg); }
.ac-premium .header .mobile-nav.open {
  padding:8px; gap:4px; inset:calc(100% - 1px) 28px auto;
  border-radius:12px; background:#14212bfa; border:1px solid #4a606d;
  box-shadow:0 18px 40px #0007; backdrop-filter:blur(16px);
  max-height:calc(100dvh - 170px); overflow-y:auto; overscroll-behavior:contain;
}
.ac-premium .header .mobile-nav a {
  min-height:48px; padding:12px 16px; display:flex; align-items:center; gap:12px;
  border:0; border-radius:8px; color:#e2ecf2; font:500 14px/1.5 var(--font);
}
.ac-premium .header .mobile-nav a:hover,.ac-premium .header .mobile-nav a[aria-current=page] { background:#263c49; }
.ac-premium .header .mobile-nav a:last-child { border-top:1px solid #3c505e; margin-top:4px; border-radius:0 0 8px 8px; color:#9ce8f7; }
@media(max-width:1180px) {
  .ac-premium .header .navlinks { display:none; }
  .ac-premium .header .nav-actions { margin-left:auto; }
  .ac-premium .header .menu-btn { display:inline-flex; }
  .ac-premium .header .mobile-nav.open { display:grid; }
}
@media(min-width:1181px) { .ac-premium .header .mobile-nav { display:none!important; } }
@media(max-width:650px) {
  .ac-premium .header .nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 10px; padding-block:16px; min-height:0; width:calc(100% - 32px); }
  .ac-premium .header .brand { grid-column:1; grid-row:1; font-size:23px; gap:7px; width:max-content; }
  .ac-premium .header .brand img { width:30px; height:30px; }
  .ac-premium .header .nav-actions { display:contents; }
  .ac-premium .header .language-picker { grid-column:2; grid-row:1; justify-self:end; margin-right:52px; }
  .ac-premium .header .language-picker>summary { min-height:44px; min-width:68px; padding:8px; gap:4px; font-size:12px; }
  .ac-premium .header .language-picker .ac-globe { width:16px; height:16px; flex-basis:16px; }
  .ac-premium .header .menu-btn { grid-column:2; grid-row:1; justify-self:end; width:44px; min-width:44px; min-height:44px; }
  .ac-premium .header .login { display:flex; grid-column:1; grid-row:2; align-self:stretch; min-height:48px; padding:10px; gap:8px; }
  .ac-premium .header .nav-actions>.btn.primary { display:flex; grid-column:2; grid-row:2; min-height:48px; padding:8px 9px; gap:6px; font-size:12px; white-space:normal; }
  .ac-premium .header .ac-nav-label { text-align:center; }
  .ac-premium .header .ac-action-arrow { width:24px; height:24px; flex-basis:24px; }
  .ac-premium .header .mobile-nav.open { inset:calc(100% - 1px) 16px auto; max-height:min(420px,65dvh); }
  .ac-premium .header .language-picker>nav { right:-52px; min-width:200px; max-height:65dvh; overflow-y:auto; }
}
@media(prefers-reduced-motion:reduce) {
  .ac-premium .header *,.ac-premium .header *:after { transition:none!important; animation:none!important; }
  .ac-premium .header :is(a,button,summary):active { transform:none!important; }
}
