/* Vergi Akademisi v7.4 — brand identity + accessible header refinement.
   This file is enqueued after the existing theme stylesheet. */
.site-header{z-index:300;background:rgba(255,255,255,.985)}
.header-inner{min-height:80px;gap:clamp(12px,1.5vw,22px)}
.brand{gap:7px;min-width:0;white-space:nowrap}
.brand .va-brand-image{width:79px;max-width:none;height:auto;aspect-ratio:740/525;object-fit:contain;flex:0 0 auto;display:block;background:transparent;border:0;box-shadow:none;border-radius:0}
.brand .brand-text{font-size:14px;line-height:1.12;letter-spacing:.055em;color:var(--navy)}
.brand .brand-text span{font-size:10.8px;letter-spacing:.11em;margin-top:3px;color:var(--navy)}
.brand .custom-logo{max-width:195px;max-height:56px;object-fit:contain}
.primary-nav{flex:1 1 auto;min-width:0;margin-left:12px}
.primary-nav ul{justify-content:center;gap:clamp(13px,1.55vw,24px)}
.primary-nav a{white-space:nowrap;font-size:13px;font-weight:740;color:var(--ink);padding:10px 0}
.header-actions{margin-left:auto;gap:12px;flex-shrink:0}
.header-cta{min-height:42px;padding:12px 14px;font-size:12px;border-radius:10px}
.va-header-login{display:inline-flex;align-items:center;justify-content:center;color:#20575b;font-size:13px;font-weight:800;white-space:nowrap;padding:10px 12px;border:1px solid #cfdfdc;border-radius:10px}
.va-header-login:hover{background:#eaf4ef;color:#0a535b}
.va-account-dropdown{position:relative;flex:none}
.va-account-trigger{display:flex;align-items:center;gap:8px;padding:5px 8px 5px 6px;border:1px solid #d8e5e1;background:#fff;border-radius:12px;min-height:43px;max-width:170px;color:#21454a;cursor:pointer;box-shadow:0 3px 9px rgba(8,51,54,.025)}
.va-account-trigger:hover,.va-account-trigger[aria-expanded="true"]{background:#f0f7f5;border-color:#a5cac5}
.va-account-trigger:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.va-account-avatar{display:flex;align-items:center;justify-content:center;color:#0a6163;background:#e7f2ee;border-radius:9px;width:30px;height:30px;flex:none}
.va-account-avatar svg{width:18px;height:18px}
.va-account-label{font-size:12px;font-weight:800;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.va-account-trigger>svg{width:14px;height:14px;color:#698488}
.va-account-options{position:absolute;top:calc(100% + 10px);right:0;width:210px;background:#fff;border:1px solid #dfe9e5;box-shadow:0 20px 45px rgba(13,44,50,.16);border-radius:13px;z-index:320;padding:7px}
.va-account-options[hidden]{display:none!important}
.va-account-options a{display:block;font-size:13px;line-height:1.4;color:#24484c;font-weight:730;padding:11px 12px;border-radius:8px;white-space:normal}
.va-account-options a:hover,.va-account-options a:focus-visible{background:#eef5f2;color:#0d5e64}
.va-account-options a.va-account-signout{color:#9f4946;border-top:1px solid #e7eeec;margin-top:3px;padding-top:12px}
/* At laptop widths the menu switches to a well-spaced, full-width dropdown.
   This avoids collisions even with existing custom WordPress menu items. */
@media(max-width:1120px){
  .header-inner{justify-content:space-between;gap:12px;min-height:76px}
  .primary-nav{position:absolute;top:100%;left:0;right:0;z-index:300;display:none;margin:0;padding:12px max(24px,calc((100vw - 1020px)/2)) 18px;background:#fff;border-bottom:1px solid #dfe7e4;box-shadow:0 17px 28px rgba(6,40,42,.12);max-height:calc(100vh - 115px);overflow-y:auto}
  .primary-nav.is-open{display:block}
  .primary-nav ul{display:flex;flex-direction:column;align-items:stretch;gap:0}
  .primary-nav a{padding:12px 8px;border-bottom:1px solid #edf1ee;white-space:normal;font-size:14px}
  .primary-nav .sub-menu{position:static;display:block;box-shadow:none;min-width:0;border:0;padding:0 0 0 18px;border-radius:0}
  .mobile-nav-utility{display:flex;flex-direction:column;border-top:1px solid #dfe9e5;margin-top:11px;padding-top:11px}
  .mobile-nav-utility a{display:block;font-size:14px;font-weight:750;padding:11px 8px;color:#0b5559}
  .mobile-toggle{display:grid;place-items:center;width:44px;height:43px;padding:0;border:1px solid #dfe9e5;background:#fff;border-radius:10px;color:#12474c}
  .header-cta{display:none}
}
@media (min-width:783px) and (max-width:1120px){.admin-bar .site-header{top:32px}}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:800px){
  .va-account-dropdown,.va-header-login{display:none}
  .header-inner{min-height:72px}
  .brand .va-brand-image{width:65px}
  .brand .brand-text{font-size:12px}
  .brand .brand-text span{font-size:9.5px}
  .primary-nav{padding:11px 20px 18px}
}
@media(max-width:450px){
  .header-inner{gap:8px}
  .brand{gap:6px}
  .brand .va-brand-image{width:57px}
  .brand .brand-text{font-size:11.2px}
  .brand .brand-text span{font-size:8.9px}
}
