/* Extracted from header.php */

:root{
    --qrj-bg:#f7fbff;
    --qrj-card:#ffffff;
    --qrj-text:#102033;
    --qrj-muted:#63758c;
    --qrj-line:#dbe8f5;
    --qrj-primary:#1d8cf8;
    --qrj-primary-dark:#0f6fd0;
    --qrj-accent:#16c7a7;
    --qrj-danger:#ef476f;
    --qrj-danger-dark:#b81f48;
    --qrj-shadow-sm:0 10px 30px rgba(23, 72, 123, .09);
    --qrj-max:1380px;
  }

  .qrj-site-header{
    position:sticky;
    top:0;
    z-index:1000;
    width:100%;
    background:rgba(247,251,255,.86);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(219,232,245,.78);
  }

  .qrj-header-container{
    width:min(var(--qrj-max), calc(100% - 36px));
    margin:0 auto;
    padding:16px 0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
  }

  .qrj-brand{
    display:flex;
    align-items:center;
    gap:12px;
    color:var(--qrj-text);
    text-decoration:none;
    min-width:max-content;
  }

  .qrj-brand-mark{
    width:44px;
    height:44px;
    border-radius:15px;
    display:grid;
    place-items:center;
    color:#fff;
    font-weight:950;
    letter-spacing:-.05em;
    background:linear-gradient(135deg, var(--qrj-primary), var(--qrj-accent));
    box-shadow:0 12px 24px rgba(29,140,248,.22);
  }

  .qrj-brand-name{
    display:grid;
    line-height:1.1;
  }

  .qrj-brand-name strong{
    font-size:17px;
    letter-spacing:-.02em;
    color:var(--qrj-text);
  }

  .qrj-brand-name span{
    font-size:12px;
    color:var(--qrj-muted);
    font-weight:750;
  }

  .qrj-nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
  }

  .qrj-nav a{
    text-decoration:none;
  }

  .qrj-btn,
  .qrj-user-pill{
    min-height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:11px 16px;
    border:1px solid var(--qrj-line);
    border-radius:999px;
    background:rgba(255,255,255,.82);
    color:var(--qrj-text);
    text-decoration:none;
    font-weight:850;
    box-shadow:0 1px 0 rgba(255,255,255,.8) inset;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
    white-space:nowrap;
  }

  .qrj-btn:hover,
  .qrj-user-pill:hover{
    transform:translateY(-2px);
    border-color:#c7d9eb;
    box-shadow:var(--qrj-shadow-sm);
  }

  .qrj-btn:focus-visible,
  .qrj-user-pill:focus-visible{
    outline:4px solid rgba(29,140,248,.18);
    outline-offset:3px;
  }

  .qrj-btn-primary{
    color:#fff !important;
    border-color:transparent !important;
    background:linear-gradient(135deg, var(--qrj-primary), var(--qrj-primary-dark)) !important;
    box-shadow:0 14px 28px rgba(29,140,248,.24) !important;
    font-weight:950;
  }

  .qrj-btn-primary:hover{
    box-shadow:0 18px 36px rgba(29,140,248,.28) !important;
  }

  .qrj-user-pill{
    max-width:230px;
    color:var(--qrj-primary-dark) !important;
    border-color:#cde3fa !important;
    background:#fff !important;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .qrj-btn-logout{
    color:var(--qrj-danger-dark) !important;
    border-color:rgba(239,71,111,.25) !important;
    background:#fff0f4 !important;
  }

  .qrj-mobile-menu-btn{
    display:none;
    width:44px;
    height:44px;
    border:1px solid var(--qrj-line);
    border-radius:14px;
    background:#fff;
    color:var(--qrj-text);
    font-size:24px;
    font-weight:900;
    cursor:pointer;
    box-shadow:var(--qrj-shadow-sm);
  }

  @media (max-width:860px){
    .qrj-header-container{
      width:min(var(--qrj-max), calc(100% - 24px));
      flex-wrap:wrap;
    }

    .qrj-mobile-menu-btn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      margin-left:auto;
    }

    .qrj-nav{
      display:none;
      width:100%;
      padding:12px;
      border-radius:22px;
      background:#fff;
      border:1px solid var(--qrj-line);
      box-shadow:var(--qrj-shadow-sm);
      justify-content:stretch;
    }

    .qrj-site-header.menu-open .qrj-nav{
      display:grid;
      grid-template-columns:1fr;
    }

    .qrj-nav a,
    .qrj-user-pill,
    .qrj-btn{
      width:100%;
      max-width:none;
    }

    .qrj-brand-name span{
      display:none;
    }
  }

  @media (max-width:420px){
    .qrj-brand-mark{
      width:40px;
      height:40px;
      border-radius:14px;
    }

    .qrj-brand-name strong{
      font-size:15px;
    }
  }

  @media (prefers-reduced-motion:reduce){
    .qrj-btn,
    .qrj-user-pill{
      transition:none;
    }
  }
