/* Base layout */
.layout{
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* Main frame */
.layout__content{
  width:100%;
  min-width:0;
}

/* Sidebar */
.layout__sidebar{
  width:100%;
  min-width:0;
}

/* Desktop */
@media (min-width: 992px){
  .layout{
    flex-direction:row;
    align-items:flex-start;
  }

  .layout__content{
    flex:0 0 75%;
    max-width:75%;
  }

  .layout__sidebar{
    flex:0 0 25%;
    max-width:25%;
  }
}

/* Optional boxes */
.content-box,
.sidebar-box{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  padding:16px;
}

/* Sidebar spacing */
.sidebar-box + .sidebar-box{
  margin-top:14px;
}


/* Header layout */
.headerbar{
  display:flex;
  align-items:stretch;              /* kartlar aynı yükseklik hissi */
  justify-content:space-between;
  gap:4px;
  flex-wrap:wrap;                   /* daralınca kırılabilsin */
}

/* Logo (kart gibi) */
.headerbar__logo{
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background:#fff;

  display:flex;
  align-items:center;

  flex:0 0 auto;
  min-width:0;
}

.headerbar__logo img{
  display:block;
  height:80px;
  width:auto;
}

/* Ticker area */
.headerbar__ticker{
  flex:1 1 0;
  min-width:0;                      /* önemli: taşma engel */
}

/* Mobil: alt alta + %100 */
@media (max-width: 767px){
  .headerbar{
    flex-direction:column;
    align-items:stretch;            /* <-- %100 genişlik için kritik */
  }

  .headerbar__logo{
    width:100%;
    flex:0 0 auto;
    justify-content:flex-start;         /* center: flex-start */
  }

  .headerbar__ticker{
    width:100%;
  }

  .headerbar__logo img{
    height:70px;
  }
}

/* Desktop: aynı satır, ticker sağa yaslı gibi */
@media (min-width: 768px){
  .headerbar{
    flex-direction:row;
    align-items:stretch;
    flex-wrap:nowrap;               /* desktopta tek satır */
  }

  .headerbar__ticker{
    display:flex;
    justify-content:flex-end;       /* kurlar sağ tarafta dursun */
    min-width:0;
  }
 
  .headerbar__logo{
    width:auto;
  }
}



.headerbar__logo svg{
  width:100%;
  max-width:260px;   /* desktop limiti */
  height:auto;
}

@media (max-width: 767px){
  .headerbar__logo svg{
    max-width:none;  /* %100 açılır */
  }
}

.dark .headerbar__logo text{
  fill:#fff;
}
.headerbar__logo{
  color:#333;
}